summaryrefslogtreecommitdiff
path: root/scripts/Entities/Items/ScrollConsumable.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-09-13 11:06:46 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-09-13 11:06:46 -0300
commit539fd4820f37aa54df8878091db9680d89ee027a (patch)
tree41f9f5d6aa123058e3549c1baba4155fa5a85279 /scripts/Entities/Items/ScrollConsumable.cs
parentb8962990ddb75b874a49c83d8eeaba7b7e45c196 (diff)
pergaminho
Diffstat (limited to 'scripts/Entities/Items/ScrollConsumable.cs')
-rw-r--r--scripts/Entities/Items/ScrollConsumable.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/Entities/Items/ScrollConsumable.cs b/scripts/Entities/Items/ScrollConsumable.cs
new file mode 100644
index 0000000..d260263
--- /dev/null
+++ b/scripts/Entities/Items/ScrollConsumable.cs
@@ -0,0 +1,25 @@
+using Godot;
+using TheLegendOfGustav.Entities.Actions;
+using TheLegendOfGustav.Entities.Actors;
+using TheLegendOfGustav.Magic;
+using TheLegendOfGustav.Map;
+using TheLegendOfGustav.Utils;
+
+namespace TheLegendOfGustav.Entities.Items;
+
+public partial class ScrollConsumable(Vector2I initialPosition, MapData map, ScrollConsumableDefinition definition) : ConsumableItem(initialPosition, map, definition)
+{
+ private ScrollConsumableDefinition definition = definition;
+
+ public SpellResource Spell { get; private set; } = definition.Spell;
+
+
+ public override bool Activate(ItemAction action)
+ {
+ Player consumer = action.Player;
+
+ MessageLogData.Instance.AddMessage("Foste cuckado");
+ ConsumedBy(consumer);
+ return true;
+ }
+} \ No newline at end of file