From 1e17a31e3eeed8ccf76982534002513cee6593f1 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 14 Sep 2025 10:41:08 -0300 Subject: Magicas --- scripts/Map/DungeonGenerator.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'scripts/Map') diff --git a/scripts/Map/DungeonGenerator.cs b/scripts/Map/DungeonGenerator.cs index 6f239ac..f2f00a9 100644 --- a/scripts/Map/DungeonGenerator.cs +++ b/scripts/Map/DungeonGenerator.cs @@ -23,7 +23,8 @@ public partial class DungeonGenerator : Node private static readonly Godot.Collections.Array items = [ GD.Load("res://assets/definitions/Items/small_healing_potion.tres"), - GD.Load("res://assets/definitions/Items/mana_bolt_scroll.tres") + GD.Load("res://assets/definitions/Items/mana_bolt_scroll.tres"), + GD.Load("res://assets/definitions/Items/mana_bolt_grimoire.tres") ]; #endregion @@ -293,10 +294,15 @@ public partial class DungeonGenerator : Node { HealingConsumable item = new(position, data, hcDefinition); data.InsertEntity(item); - } else if (definition is ScrollConsumableDefinition scroll) + } + else if (definition is ScrollConsumableDefinition scroll) { ScrollConsumable item = new(position, data, scroll); data.InsertEntity(item); + } else if (definition is GrimoireConsumableDefinition grimoire) + { + GrimoireConsumable item = new(position, data, grimoire); + data.InsertEntity(item); } } } -- cgit v1.2.3