summaryrefslogtreecommitdiff
path: root/scripts/Entities/Actions/DropAction.cs
blob: 00ddd7e5c9b7cd5c83cbf8fe42749de71c2c8dde (plain)
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;
	}
}