Add NPC system scaffold, loot-table gold drops, and remove stash VIP gate
This commit is contained in:
@@ -165,7 +165,7 @@ public sealed partial class DungeonHandler
|
||||
|
||||
var (layout, layoutV2) = await GenerateDungeonLayoutWithFallbackAsync(seed, tier, ct);
|
||||
|
||||
var simulation = new DungeonSimulation(layout, tier, _mobDefinitions, bracketMin, _abilityDefinitions, _mobSpriteConfigs, _abilityAnimationMappings);
|
||||
var simulation = new DungeonSimulation(layout, tier, _mobDefinitions, bracketMin, _abilityDefinitions, _mobSpriteConfigs, _abilityAnimationMappings, _npcDefinitions);
|
||||
|
||||
var instance = new DungeonInstance
|
||||
{
|
||||
@@ -476,7 +476,7 @@ public sealed partial class DungeonHandler
|
||||
var db = scope.ServiceProvider.GetRequiredService<GameDbContext>();
|
||||
var vnext = new DungeonGeneratorVNext(db, persisted.Seed, persisted.Tier);
|
||||
var layout = await vnext.GenerateAsync();
|
||||
var simulation = new DungeonSimulation(layout, persisted.Tier, _mobDefinitions, persisted.LevelBracketMin, _abilityDefinitions, _mobSpriteConfigs, _abilityAnimationMappings);
|
||||
var simulation = new DungeonSimulation(layout, persisted.Tier, _mobDefinitions, persisted.LevelBracketMin, _abilityDefinitions, _mobSpriteConfigs, _abilityAnimationMappings, _npcDefinitions);
|
||||
var mobStatePayload = DeserializePersistedMobPayload(persisted.MobStateJson);
|
||||
var persistedMobStates = mobStatePayload?.Mobs;
|
||||
|
||||
@@ -623,7 +623,7 @@ public sealed partial class DungeonHandler
|
||||
|
||||
// IMPORTANT: Reuse the existing layout to preserve mob spawn positions.
|
||||
var layout = instance.Simulation.Layout;
|
||||
var freshSimulation = new DungeonSimulation(layout, instance.Tier, _mobDefinitions, instance.LevelBracketMin, _abilityDefinitions, _mobSpriteConfigs, _abilityAnimationMappings);
|
||||
var freshSimulation = new DungeonSimulation(layout, instance.Tier, _mobDefinitions, instance.LevelBracketMin, _abilityDefinitions, _mobSpriteConfigs, _abilityAnimationMappings, _npcDefinitions);
|
||||
|
||||
// Clear and rebuild mobs, keeping those with loot
|
||||
instance.Simulation.Mobs.Clear();
|
||||
|
||||
Reference in New Issue
Block a user