Skip to content

Commit

Permalink
Add fixes to improve chance of clear path exit geo spawning
Browse files Browse the repository at this point in the history
  • Loading branch information
brgmnn committed Nov 12, 2023
1 parent 8f266c1 commit d200d5e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion AutogenRundown/src/DataBlocks/LevelLayout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -939,10 +939,19 @@ public static LevelLayout Build(Level level, BuildDirector director, WardenObjec
}

var last = prev;
var lastZone = (Zone)level.Planner.GetZone(last)!;
var lastZone = level.Planner.GetZone(last)!;

var secondLast = (ZoneNode)level.Planner.GetBuildFrom(last)!;
var secondLastZone = level.Planner.GetZone(secondLast)!;

var subcomplex = GenSubComplex(level.Complex);

// Some adjustments to try and reduce the chance of the exit geo not
// spawning due to being trapped by a small penultimate zone
secondLastZone.ZoneExpansion = ZoneExpansion.Expansional;
secondLastZone.Coverage = new CoverageMinMax { Min = 35, Max = 45 };
lastZone.StartPosition = ZoneEntranceBuildFrom.Furthest;

// The final zone is the extraction zone
lastZone.Coverage = new CoverageMinMax { Min = 50, Max = 50 };
lastZone.SubComplex = subcomplex;
Expand Down

0 comments on commit d200d5e

Please sign in to comment.