Room Template fixes

This commit is contained in:
dingo
2026-01-10 09:41:09 -05:00
parent ee2a2357e4
commit ecac99ee89
2 changed files with 76 additions and 22 deletions
+13 -1
View File
@@ -176,7 +176,19 @@ public class DungeonSimulation
foreach (var mobSpawn in Layout.MobSpawns)
{
var mobDef = SelectMobDefinition(mobSpawn.MobType, rng);
// Use specific mob if MobDefinitionId is set, otherwise select randomly
DungeonMobDefinition? mobDef = null;
if (mobSpawn.MobDefinitionId.HasValue)
{
_mobDefinitions.TryGetValue(mobSpawn.MobDefinitionId.Value, out mobDef);
}
// Fall back to random selection if no specific mob or mob not found
if (mobDef == null)
{
mobDef = SelectMobDefinition(mobSpawn.MobType, rng);
}
if (mobDef == null) continue;
// Use bracket-aware stat scaling