diff options
Diffstat (limited to 'scripts/Entities/Actions/ItemAction.cs')
| -rw-r--r-- | scripts/Entities/Actions/ItemAction.cs | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/scripts/Entities/Actions/ItemAction.cs b/scripts/Entities/Actions/ItemAction.cs index 14c5d93..a2ca1a2 100644 --- a/scripts/Entities/Actions/ItemAction.cs +++ b/scripts/Entities/Actions/ItemAction.cs @@ -5,32 +5,15 @@ namespace TheLegendOfGustav.Entities.Actions; public partial class ItemAction : Action { - private ConsumableItem item; - private Player player; + protected ConsumableItem item; public ItemAction(Player player, ConsumableItem item) : base(player) { - Item = item; + this.item = item; Player = player; } - public Player Player - { - get => player; - private set - { - player = value; - } - } - - protected ConsumableItem Item - { - get => item; - set - { - item = value; - } - } + public Player Player { get; private set; } public override bool Perform() { |
