RestoredHullsTests: the entrance throw is reached by a single-root zone (several roots give the station a root to orbit)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-17 05:55:53 +02:00
commit f5329e50a2

View file

@ -461,6 +461,8 @@ public sealed class RestoredHullsTests
var zoneSettings = TutorialZoneSettings();
zoneSettings.RosetteProbability = 0;
zoneSettings.MassFloor = 1e9f;
// One subzone: the zone's only body is a parentless root. (Several roots give the station a root to orbit.)
zoneSettings.SubZoneCount = new ExponentialLerp { Exponent = 1, Minimum = 0, Maximum = 0 };
Assert.Throws<InvalidOperationException>(() =>
ZoneGenerator.GenerateZone(items, zoneSettings, AuthoredPlanetSettings(), galaxy, galaxy.Entrance, isTutorial: true));