feat(hs): spawn statues+guards at random walkable spots (hunt-the-statue)

Instead of a fixed lane, each statue (and its 4 guards) now spawns at a random
walkable coordinate anywhere on the map; breaking one reveals the next at a new
random spot, so players must search for it. Falls back to the fixed positions.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Acentech Dev
2026-07-21 12:35:17 +03:00
parent fcf2e80570
commit e45ad4f8d7

View File

@@ -654,7 +654,10 @@ public class HeykelSavasiContext : MiniGameContext
return; return;
} }
var pos = positions[index]; // Each statue (and its guards) spawns at a RANDOM walkable spot anywhere on the map, so
// after breaking one statue players must hunt for the next one across the arena. Falls back
// to the fixed line position if the terrain can't yield a random coordinate.
var pos = this.Map.Terrain.RandomWalkableCoordinate ?? positions[index];
var statueDefinition = this._gameContext.Configuration.Monsters.FirstOrDefault(m => m.Number == StatueMonsterNumber); var statueDefinition = this._gameContext.Configuration.Monsters.FirstOrDefault(m => m.Number == StatueMonsterNumber);
if (statueDefinition is null) if (statueDefinition is null)