summaryrefslogtreecommitdiff
path: root/scripts/Entities/Actions/DropAction.cs
blob: 920c04cdfeaceec560830abef7650bc62bc86c2a (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, Item item) : base(player, item)
	{
	}

	public override bool Perform()
	{
		Player.Inventory.Drop(item);
		return true;
	}
}