A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
Map: town landmarks read the built city projects, so a GDD camp shows its ma'abara (Fixes #1275) (#1291)
Beri9fcfab64f728
diff --git a/changelog.d/map-town-landmarks-city-projects-1275.md b/changelog.d/map-town-landmarks-city-projects-1275.mdnew file mode 100644index 000000000..6b04c9f2c--- /dev/null+++ b/changelog.d/map-town-landmarks-city-projects-1275.md@@ -0,0 +1,4 @@+### Fixed+- A transit camp or housing built as a city project (the GDD loop) now brings its ma'abara or shikun landmark, from the+ same sourced dates as a placed one: the map's town landmarks read the built city projects as the placement layer does+ (#1123), not only the legacy placements (#1275). No golden moves.diff --git a/unity/Assets/Scripts/UI/GameRoot.cs b/unity/Assets/Scripts/UI/GameRoot.csindex 93a8ae8a3..48eeb60ad 100644--- a/unity/Assets/Scripts/UI/GameRoot.cs+++ b/unity/Assets/Scripts/UI/GameRoot.cs@@ -611,7 +611,9 @@ namespace Statecraft.Game.UIif (Bridge == null) return;Statecraft.Game.Map.Routes.RouteLayer.ShowAt(map, Bridge.State.Date); // dated routes (the Burma Road from June 1948)// Tal Heuberger's whole-town models on their towns far off (#663, "Whole model far, buildings near"), streamed after the first frame; the ma'abara from its date.- Statecraft.Game.Map.Collection.TownLandmarks.ShowAt(map, Bridge.State.Date, Bridge.State.Placements, Bridge.Content);+ // The camps and housing built as city projects bring theirs too, as the placement layer draws them (#1275).+ Statecraft.Game.Map.Collection.TownLandmarks.ShowAt(map, Bridge.State.Date,+ PlacementLayer.Drawn(Bridge.State.Placements, Bridge.State.CityProjects.Values), Bridge.Content);// Tal Heuberger's ibex and striped hyena, sparse in their sourced terrain zones and visible only at close zoom (#670).Statecraft.Game.Map.Collection.WildlifeLayer.Show(map);// Tal Heuberger's civilian figures at towns and transit camps, ambience only and streamed after the first frame (#666).diff --git a/unity/Assets/Tests/EditMode/GameSceneTests.cs b/unity/Assets/Tests/EditMode/GameSceneTests.csindex 8adf5c89b..47a5a2f5e 100644--- a/unity/Assets/Tests/EditMode/GameSceneTests.cs+++ b/unity/Assets/Tests/EditMode/GameSceneTests.cs@@ -645,6 +645,30 @@ public class GameSceneTestsAssert.IsTrue(Drawn(MapActions.TransitCamp, tlv.Q, tlv.R));}+ // #1275: a transit camp built as a city project (the GDD loop) brings its ma'abara landmark, as a legacy placement does.+ [Test]+ public void ACampBuiltAsACityProjectShowsItsLandmark()+ {+ var root = Boot();+ var c = Inputs.Content;+ var g = GameSession.New(c, GoldenRun.Seed, Mode.Historical);+ while (g.State.Date < new DateTime(1950, 8, 1)) g.Step(HistoricalAI.Commands(c, g.State));+ var bridge = root.Bridge!;+ bridge.Replace(g);+ var tlv = c.SettlementHexes.Single(s => s.Id == "tel_aviv");+ var key = $"{MapActions.TransitCamp}_{tlv.Q}_{tlv.R}";+ Assert.IsNull(bridge.Queue(new StartProject(MapActions.TransitCamp, "tel_aviv", tlv.Q, tlv.R)));+ bridge.EndTurn();+ var camp = bridge.State.CityProjects.Values.Single(p => p.Kind == MapActions.TransitCamp && p.Q == tlv.Q && p.R == tlv.R);+ for (int i = 0; i < 10 && bridge.State.CityProjects[camp.Id].BuiltOn == null; i++) bridge.EndTurn();+ Assert.IsNotNull(bridge.State.CityProjects[camp.Id].BuiltOn, "the transit camp is built");+ Assert.IsFalse(bridge.State.Placements.Any(p => p.Q == tlv.Q && p.R == tlv.R), "the camp is a city project, not a legacy placement");+ var landmarks = Object.FindFirstObjectByType<Statecraft.Game.Map.Collection.TownLandmarks>();+ Assert.IsNotNull(landmarks);+ Assert.AreEqual(1, landmarks.Wanted.Count(w => w.Key == key && w.Model == Statecraft.Game.Map.Collection.TownLandmarks.Maabara),+ "the built camp's ma'abara landmark is wanted");+ }+// Amendment A2: the smoke run answers a pending event by pressing the card's option button.[Test]public void TheSmokeRunAnswersAPendingEventThroughTheCard()