A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
Art checkpoint: shoot the close checks with the settlement trees off (#520)
Eyal Golan94bfdc9c96b9
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 458a6da27..ed605caec 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -421,6 +421,9 @@ adds a line under **Unreleased**; CI's `Changelog` job checks this (see `CONTRIBrecords and member pages (Internet Archive copies) and, for Weizmann and Shazar, the President's Office pages, inplace of Wikipedia. Wikipedia stays only where those records give no value or a different one. No value changed(refs #457).+- The art checkpoint's close checks (`hero06judea`, `hero06negev`) are shot with the settlement trees off, as the haze+ already was: one tree's crown had filled `hero06judea`, so it no longer showed the ground it is there to check+ (audit 2026-10-13). The game itself is unchanged.- The Unity build has no compiler warnings again. The panel trim's corner ornament no longer uses`MeshWriteData.uvRegion`, which Unity 6000.3 marks obsolete (CS0618); the renderer now maps texture coordinates itself.The pixels are unchanged.diff --git a/unity/Assets/Scripts/Map/VisualShots.cs b/unity/Assets/Scripts/Map/VisualShots.csindex 564f7dad6..844c361ac 100644--- a/unity/Assets/Scripts/Map/VisualShots.cs+++ b/unity/Assets/Scripts/Map/VisualShots.cs@@ -35,17 +35,34 @@ namespace Statecraft.Game.Mapyield return $"SHOT {name} {i + 1}/{n} {b64.Substring(i * ChunkChars, Math.Min(ChunkChars, b64.Length - i * ChunkChars))}";}+ /// <summary>The visual toggles that are off for the close checks, which look at the ground itself (the baked+ /// shading's steps): the haze, and the settlement trees, since one kit tree's crown filled hero06judea once the 1948+ /// localities had trees (audit 2026-10-13).</summary>+ public static readonly string[] OffForCloseChecks = { "haze", "trees" };+public static IEnumerator Run(CameraRig rig, GeoFrame frame, Action<string> log){foreach (var pose in PromoPose.All) yield return Shoot(rig, frame, pose, log);- // The close checks look at the ground itself, so the haze (if registered) is off for them and restored after.- bool haze = VisualToggles.Names.Contains("haze");- if (haze) VisualToggles.Set("haze", false);+ var off = TurnOff(OffForCloseChecks);try { foreach (var pose in PromoPose.CloseChecks) yield return Shoot(rig, frame, pose, log); }- finally { if (haze && VisualToggles.Names.Contains("haze")) VisualToggles.Set("haze", true); }+ finally { TurnOn(off); }log("SHOT done");}+ /// <summary>Turns off each of <paramref name="names"/> that is registered and returns those (TurnOn puts them back).</summary>+ public static List<string> TurnOff(IEnumerable<string> names)+ {+ var off = names.Where(n => VisualToggles.Names.Contains(n)).ToList();+ foreach (var n in off) VisualToggles.Set(n, false);+ return off;+ }++ /// <summary>Turns on each of <paramref name="names"/> that is still registered.</summary>+ public static void TurnOn(IEnumerable<string> names)+ {+ foreach (var n in names) if (VisualToggles.Names.Contains(n)) VisualToggles.Set(n, true);+ }+static IEnumerator Shoot(CameraRig rig, GeoFrame frame, PromoPose pose, Action<string> log){pose.Apply(rig, frame);diff --git a/unity/Assets/Tests/EditMode/VisualHarnessTests.cs b/unity/Assets/Tests/EditMode/VisualHarnessTests.csindex 6f83a7602..2bbe7b1c0 100644--- a/unity/Assets/Tests/EditMode/VisualHarnessTests.cs+++ b/unity/Assets/Tests/EditMode/VisualHarnessTests.cs@@ -71,6 +71,23 @@ public class VisualHarnessTestsAssert.AreEqual("grade again True", log.Last());}+ /// <summary>Audit 2026-10-13: the close checks look at the ground, so the shots turn the haze and the settlement trees+ /// off for them (a kit tree's crown had filled hero06judea) and back on after; other toggles and unregistered names are+ /// left alone.</summary>+ [Test]+ public void TheCloseChecksAreShotWithoutHazeOrTrees()+ {+ var state = new Dictionary<string, bool>();+ foreach (var n in new[] { "haze", "trees", "kits", "grade" }) { var name = n; state[name] = true; VisualToggles.Register(name, on => state[name] = on); }+ CollectionAssert.AreEquivalent(new[] { "haze", "trees" }, VisualShots.OffForCloseChecks);+ var off = VisualShots.TurnOff(VisualShots.OffForCloseChecks.Append("fog"));+ CollectionAssert.AreEquivalent(new[] { "haze", "trees" }, off, "only registered toggles are turned off");+ Assert.IsFalse(state["haze"]); Assert.IsFalse(state["trees"]);+ Assert.IsTrue(state["kits"], "the kits stay"); Assert.IsTrue(state["grade"]);+ VisualShots.TurnOn(off);+ Assert.IsTrue(state.Values.All(on => on), "all back on after the close checks");+ }+[Test]public void ShotsSplitIntoNumberedChunksAfterAHashedHeader(){