Gravity potential-owner tests: fixtures keep the brush-input curves Planet still reads
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
021c4cbcbf
commit
fde8062931
2 changed files with 4 additions and 0 deletions
|
|
@ -10,6 +10,8 @@ internal static class WellFixture
|
|||
public static void Dig(CultCache cache, ZonePack pack, PlanetSettings settings, float strength, float coreRadius, float2 at = default)
|
||||
{
|
||||
settings.BodyRadius = new ExponentialCurve();
|
||||
settings.GravityRadius = new ExponentialCurve(); // brush inputs, read by Planet until grid-lowering deletes them
|
||||
settings.GravityDepth = new ExponentialCurve();
|
||||
settings.OrbitPeriod = new ExponentialCurve();
|
||||
settings.WellStrength = new ExponentialCurve { Constant = strength };
|
||||
settings.CoreRadius = new ExponentialCurve { Constant = coreRadius };
|
||||
|
|
|
|||
|
|
@ -44,6 +44,8 @@ public sealed class ZonePlacedAtBuildTests : IDisposable
|
|||
{
|
||||
OrbitPeriod = Flat(Period),
|
||||
BodyRadius = Flat(20f),
|
||||
GravityRadius = Flat(0f), // brush inputs, read by Planet until grid-lowering deletes them
|
||||
GravityDepth = Flat(0f),
|
||||
WellStrength = Flat(100f),
|
||||
CoreRadius = Flat(20f),
|
||||
RocheLimit = Flat(30f),
|
||||
|
|
|
|||
Loading…
Reference in a new issue