mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-16 17:02:42 +00:00
J3 D10: T4/T5 anchor-room variety (2nd elite + trap per zone)
In-place node kind swaps on fork branches — no node added/removed, longest path unchanged — adding one Elite + one Trap of anchor variety to each T4/T5 zone, placed to keep fork-choice risk/loot asymmetric: underdark +Elite drow_gate (R2->R4 region-guardian) +Trap silenced_chamber feywild +Elite singing_orchard (grove branch) +Trap mire_steps (marsh) dragons_lair+Elite coin_strewn_hall (treasure spur) +Trap hidden_passage (hoard spur) abyss_portal+Elite wardens_hall (R3 guardian) +Trap hush_corridor, seam_threshold abyss_portal shipped with zero trap nodes; D10 gives it two. A/B sim corpus (n=480/side): boss-clear flat (+1.5pp aggregate, per-cell within n=15 noise), median day-counts stable, combats/run rose where anchors hit common paths. New Test*Graph_*Anchors tests lock the per-zone trap/elite counts.
This commit is contained in:
@@ -111,3 +111,32 @@ func TestDragonsLairGraph_LootBiasEscalation(t *testing.T) {
|
||||
t.Errorf("hoard_pillar LootBias = %v, want >= 2.5 (T5 secret)", hoard.Content.LootBias)
|
||||
}
|
||||
}
|
||||
|
||||
// TestDragonsLairGraph_D10Anchors verifies the D10 anchor-variety pass:
|
||||
// the treasure_vault spur gains a guarding Elite (Coin-Strewn Hall) to
|
||||
// mirror the ash_bridge spur's Trap, and the hoard_pillar SECRET capstone
|
||||
// spur gains a Trap (Hidden Passage). Counts: 2 traps, 2 elites.
|
||||
func TestDragonsLairGraph_D10Anchors(t *testing.T) {
|
||||
g := zoneDragonsLairGraph()
|
||||
var trapCount, eliteCount int
|
||||
for _, n := range g.Nodes {
|
||||
switch n.Kind {
|
||||
case NodeKindTrap:
|
||||
trapCount++
|
||||
case NodeKindElite:
|
||||
eliteCount++
|
||||
}
|
||||
}
|
||||
if trapCount != 2 {
|
||||
t.Errorf("trap nodes = %d, want 2 (ash_bridge + D10 hidden_passage)", trapCount)
|
||||
}
|
||||
if eliteCount != 2 {
|
||||
t.Errorf("elite nodes = %d, want 2 (wyrmlings_nest + D10 coin_strewn_hall)", eliteCount)
|
||||
}
|
||||
if g.Nodes["dragons_lair.coin_strewn_hall"].Kind != NodeKindElite {
|
||||
t.Error("D10: coin_strewn_hall (treasure_vault spur) should be an Elite")
|
||||
}
|
||||
if g.Nodes["dragons_lair.hidden_passage"].Kind != NodeKindTrap {
|
||||
t.Error("D10: hidden_passage (hoard_pillar spur) should be a Trap")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user