summaryrefslogtreecommitdiff
path: root/scripts/Entities/Actions/DropAction.cs
blob: 51d4ce6d3a7db7cf0d3a16c92076f9d65c29dd00 (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;
	}
}