diff options
Diffstat (limited to 'scripts/Entities/Items/GrimoireConsumable.cs')
| -rw-r--r-- | scripts/Entities/Items/GrimoireConsumable.cs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/scripts/Entities/Items/GrimoireConsumable.cs b/scripts/Entities/Items/GrimoireConsumable.cs deleted file mode 100644 index e5157a7..0000000 --- a/scripts/Entities/Items/GrimoireConsumable.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Godot; -using TheLegendOfGustav.Entities.Actions; -using TheLegendOfGustav.Entities.Actors; -using TheLegendOfGustav.Magic; -using TheLegendOfGustav.Map; - -namespace TheLegendOfGustav.Entities.Items; - -public partial class GrimoireConsumable(Vector2I initialPosition, MapData map, GrimoireConsumableDefinition definition) : ConsumableItem(initialPosition, map, definition) -{ - private SpellResource spell = definition.Spell; - - public override bool Activate(ItemAction action) - { - Player consumer = action.Player; - - consumer.SpellBook.LearnSpell(spell); - - ConsumedBy(consumer); - return true; - } -}
\ No newline at end of file |
