Skip to content

validate source inventory type on drop#11

Open
KascadeKyle wants to merge 1 commit intoclockworklabs:masterfrom
KascadeKyle:validate_drop
Open

validate source inventory type on drop#11
KascadeKyle wants to merge 1 commit intoclockworklabs:masterfrom
KascadeKyle:validate_drop

Conversation

@KascadeKyle
Copy link

Summary

Prevents dropping items from inventories that are already of type Dropped.

Changes

  • Added inventory_helper::validate_drop() to validate drop source inventory type.
  • Called the validation in item_drop after validate_interact.
  • Future inventory types that are not allowed to be dropped from can be added to validate_drop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant