Tests: compile fixes (does not isolate a build until this commit)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
2409eed0dc
commit
0dc7e4bae3
2 changed files with 2 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ using CultMath;
|
|||
using GameCult.Caching;
|
||||
using Xunit;
|
||||
using Xunit.Abstractions;
|
||||
using static CultMath.math;
|
||||
using float2 = CultMath.float2;
|
||||
|
||||
// Aetheria gravity, children within reach: the production generator's zones (every zone of seeds 1-6, ambient off) read back
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ public sealed class StationPlacementTests : IDisposable
|
|||
// group (or, for a body, its whole family), at no Lagrange point.
|
||||
var rootKey = orbit.Data.Parent.Key;
|
||||
Assert.False(zone.Orbits[rootKey].Data.Parent.IsSet(), $"seed {built.Seed}: a station with no source orbit does not orbit a root node");
|
||||
var innermost = zone.Orbits.Where(o => o.Value.Data.Parent.IsSet() && o.Value.Data.Parent.Key.Equals(rootKey) && zone.Wells.Reach(o.Key) > 0f && o.Key != station.OrbitData)
|
||||
var innermost = zone.Orbits.Where(o => o.Value.Data.Parent.IsSet() && o.Value.Data.Parent.Key.Equals(rootKey) && zone.Wells.Reach(o.Key) > 0f && !o.Key.Equals(station.OrbitData))
|
||||
.Min(o => o.Value.Data.Distance);
|
||||
Assert.True(orbit.Data.Distance >= zone.Wells.Support(rootKey) * .999f || orbit.Data.Distance >= (1 + GravityField.RingReach) * GravityField.Beta * innermost * .999f,
|
||||
$"seed {built.Seed}: a root-node station at {orbit.Data.Distance} sits inside its node's family");
|
||||
|
|
|
|||
Loading…
Reference in a new issue