Room Template fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user