diff options
Diffstat (limited to 'scripts/Map')
| -rw-r--r-- | scripts/Map/DungeonGenerator.cs | 10 |
1 files changed, 8 insertions, 2 deletions
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<ConsumableItemDefinition> items = [ GD.Load<HealingConsumableDefinition>("res://assets/definitions/Items/small_healing_potion.tres"), - GD.Load<ScrollConsumableDefinition>("res://assets/definitions/Items/mana_bolt_scroll.tres") + GD.Load<ScrollConsumableDefinition>("res://assets/definitions/Items/mana_bolt_scroll.tres"), + GD.Load<GrimoireConsumableDefinition>("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); } } } |
