Dungeon Browser
This commit is contained in:
@@ -11,6 +11,7 @@ public class DungeonSimulation
|
||||
{
|
||||
public DungeonLayout Layout { get; }
|
||||
public int Tier { get; }
|
||||
public int BracketMin { get; }
|
||||
|
||||
// Tick rate
|
||||
public const int TicksPerSecond = 20;
|
||||
@@ -38,10 +39,11 @@ public class DungeonSimulation
|
||||
private int _nextDroppedItemId = 1;
|
||||
private readonly Dictionary<int, DungeonMobDefinition> _mobDefinitions;
|
||||
|
||||
public DungeonSimulation(DungeonLayout layout, int tier, Dictionary<int, DungeonMobDefinition> mobDefinitions)
|
||||
public DungeonSimulation(DungeonLayout layout, int tier, Dictionary<int, DungeonMobDefinition> mobDefinitions, int bracketMin = 1)
|
||||
{
|
||||
Layout = layout;
|
||||
Tier = tier;
|
||||
BracketMin = bracketMin;
|
||||
_mobDefinitions = mobDefinitions;
|
||||
|
||||
SpawnMobs();
|
||||
@@ -105,7 +107,8 @@ public class DungeonSimulation
|
||||
var mobDef = SelectMobDefinition(mobSpawn.MobType, rng);
|
||||
if (mobDef == null) continue;
|
||||
|
||||
var stats = mobDef.GetStatsForTier(Tier);
|
||||
// Use bracket-aware stat scaling
|
||||
var stats = mobDef.GetStatsForTierAndBracket(Tier, BracketMin);
|
||||
|
||||
Mobs[mobSpawn.Id] = new MobInstance
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user