1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 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; } }