diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-09 19:09:34 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-09 19:09:34 -0300 |
| commit | c6bbb834f7758027c0df338f1520f34fad3befea (patch) | |
| tree | 1818cd23c24be16fbe19b16dd0a510874d440d83 /scripts/Entities/Actions/DropAction.cs | |
| parent | f1b51bed52ffbd90b5b7cc8dcfc6f0484bbbeb3c (diff) | |
Organização
Diffstat (limited to 'scripts/Entities/Actions/DropAction.cs')
| -rw-r--r-- | scripts/Entities/Actions/DropAction.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/Entities/Actions/DropAction.cs b/scripts/Entities/Actions/DropAction.cs new file mode 100644 index 0000000..00ddd7e --- /dev/null +++ b/scripts/Entities/Actions/DropAction.cs @@ -0,0 +1,17 @@ +using TheLegendOfGustav.Entities.Actors; +using TheLegendOfGustav.Entities.Items; + +namespace TheLegendOfGustav.Entities.Actions; + +public partial class DropAction : ItemAction +{ + public DropAction(Player player, ConsumableItem item) : base(player, item) + { + } + + public override bool Perform() + { + Player.Inventory.Drop(Item); + return true; + } +}
\ No newline at end of file |
