From fde806293127c3f73448b5cad99bd952699f0621 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 15 Oct 2026 04:51:20 +0200 Subject: [PATCH] Gravity potential-owner tests: fixtures keep the brush-input curves Planet still reads Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/WellFixture.cs | 2 ++ tests/Aetheria.Shared.Tests/ZonePlacedAtBuildTests.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/Aetheria.Shared.Tests/WellFixture.cs b/tests/Aetheria.Shared.Tests/WellFixture.cs index 0b895e4c0..e732172d9 100644 --- a/tests/Aetheria.Shared.Tests/WellFixture.cs +++ b/tests/Aetheria.Shared.Tests/WellFixture.cs @@ -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 }; diff --git a/tests/Aetheria.Shared.Tests/ZonePlacedAtBuildTests.cs b/tests/Aetheria.Shared.Tests/ZonePlacedAtBuildTests.cs index bdf8822d3..11d514de6 100644 --- a/tests/Aetheria.Shared.Tests/ZonePlacedAtBuildTests.cs +++ b/tests/Aetheria.Shared.Tests/ZonePlacedAtBuildTests.cs @@ -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),