A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
sim: the GDD project limit no longer mentions map actions (follow-up to #1255, refs #735) (#1267)
Beri871d5fbf57ef
diff --git a/changelog.d/gdd-project-limit-text.md b/changelog.d/gdd-project-limit-text.mdnew file mode 100644index 000000000..dc3cc48dd--- /dev/null+++ b/changelog.d/gdd-project-limit-text.md@@ -0,0 +1,4 @@+### Changed++- **The GDD turn limit on city projects no longer mentions map actions.** The refusal now reads "No more than 2 city+ projects in one turn", in English and Hebrew, as the GDD loop builds no map action (R-PROJ-004, follow-up to #1255, #735).diff --git a/sim/Statecraft.Sim.Tests/CityProjectsTests.cs b/sim/Statecraft.Sim.Tests/CityProjectsTests.csindex 2eeef8f46..dc743f732 100644--- a/sim/Statecraft.Sim.Tests/CityProjectsTests.cs+++ b/sim/Statecraft.Sim.Tests/CityProjectsTests.cs@@ -116,7 +116,7 @@ public class CityProjectsTestss.Attention = 10;var two = new Command[] { Housing(1, 1), new StartProject("industry", "town_a", 2, 0) };var r = Step(c, s, two.Append(new StartProject("industry", "town_a", 0, 1)).ToArray());- Assert.Equal("No more than 2 map actions and city projects in one turn", Assert.Single(r.Rejected).Reason);+ Assert.Equal("No more than 2 city projects in one turn", Assert.Single(r.Rejected).Reason);Assert.Equal(Step(c, s, two).State.Hash(), r.State.Hash());Assert.Empty(Step(c, r.State, new StartProject("industry", "town_a", 0, 1)).Rejected);}diff --git a/sim/Statecraft.Sim.Tests/MapActionTests.cs b/sim/Statecraft.Sim.Tests/MapActionTests.csindex 26fbc8c9e..0facde2bf 100644--- a/sim/Statecraft.Sim.Tests/MapActionTests.cs+++ b/sim/Statecraft.Sim.Tests/MapActionTests.cs@@ -106,6 +106,7 @@ public class MapActionTestsAssert.Equal("gdd_loop", reason!.Kind);Assert.Empty(reason.Values);Assert.Equal("Map actions are not part of this game: start a city project instead", reason.Text);+ Assert.Equal("gdd_loop", MapActions.CheckReason(c, s, "no_such_action", 1, 1)!.Kind); // the guard comes before the id is readvar r = Simulation.Step(c, s, new Command[] { new MapAction("transit_camp", 2, 0), new MapAction("housing", 1, 1) });Assert.Equal(new[] { reason.Text, reason.Text }, r.Rejected.Select(x => x.Reason));Assert.Empty(r.State.Placements);diff --git a/sim/Statecraft.Sim/Projects.cs b/sim/Statecraft.Sim/Projects.csindex 2ded1ab2b..1ad2ed338 100644--- a/sim/Statecraft.Sim/Projects.cs+++ b/sim/Statecraft.Sim/Projects.cs@@ -236,7 +236,7 @@ namespace Statecraft.Sim/// (q, r) now, else the reason. Refused for an unknown kind or city; a kind whose resource the city lacks (R-PROJ-005); a/// transit camp without the ma'abarot policy (Q-HOUSE-3, D-D3: the policy carries its sourced date); a hex that is not/// land, is further than map_action_max_distance from the city's settlement hex, or holds a placement or another city- /// project (Q-PROJ-2); and once map_actions_per_turn map actions and city projects together were started this turn+ /// project (Q-PROJ-2); and once map_actions_per_turn city projects were started this turn/// (Q-PROJ-4). A short Treasury is not a reason: it borrows (Q-MONEY-3). The reference player asks this before it orders.</summary>public static string? CheckCity(Content c, GameState s, string kind, string city, int q, int r) => CheckCityReason(c, s, kind, city, q, r)?.Text;@@ -271,7 +271,7 @@ namespace Statecraft.Sim// Last, as for map actions, so a player over the cap still sees the specific reason an order is illegal. The count// is the map actions' own (one national limit, Q-PROJ-4).if ((s.MapActionsTurnDate == s.Date ? s.MapActionsThisTurn : 0) >= rules.MapActionsPerTurn)- return new MapActionReason("turn_cap", FormattableString.Invariant($"No more than {rules.MapActionsPerTurn} map actions and city projects in one turn"),+ return new MapActionReason("turn_cap", FormattableString.Invariant($"No more than {rules.MapActionsPerTurn} city projects in one turn"),rules.MapActionsPerTurn.ToString(System.Globalization.CultureInfo.InvariantCulture));return null;}diff --git a/unity/Assets/UI/strings.en.yaml b/unity/Assets/UI/strings.en.yamlindex 0acddbbfa..9d154af2c 100644--- a/unity/Assets/UI/strings.en.yaml+++ b/unity/Assets/UI/strings.en.yaml@@ -452,7 +452,7 @@ city.project_ordered: "Ordered: {0}"city.project_building: "{0} for {1}: {2} left"city.project_built: "{0} for {1}, finished on {2}"city.project_reason.no_resource: "{0} has no {1} for {2}"-city.project_reason.turn_cap: "No more than {0} map actions and city projects in one turn"+city.project_reason.turn_cap: "No more than {0} city projects in one turn"# The toggle that folds a city's own projects on a stacked bar or a short window (owner ruling on #1150).city.projects_toggle: "City projects ({0})"site.available: "A designated site for a new yishuv"diff --git a/unity/Assets/UI/strings.he.yaml b/unity/Assets/UI/strings.he.yamlindex bc26e9007..8317bdf1e 100644--- a/unity/Assets/UI/strings.he.yaml+++ b/unity/Assets/UI/strings.he.yaml@@ -481,7 +481,8 @@ city.project_ordered: "הוזמנה הקמת {0}"city.project_building: "{0} עבור {1}: עוד {2}"city.project_built: "{0} עבור {1}: הבנייה הושלמה ב־{2}"city.project_reason.no_resource: "ב־{0} אין {1} עבור {2}"-city.project_reason.turn_cap: "אי אפשר להתחיל יותר מ־{0} פעולות מפה ומיזמים עירוניים בתור אחד"+# turn_cap: approved by Beri, a native speaker, on #1267 (21 Oct 2026).+city.project_reason.turn_cap: "אי אפשר להתחיל יותר מ־{0} מיזמים עירוניים בתור אחד"# The toggle that folds a city's own projects on a stacked bar or a short window (owner ruling on #1150), {0} the# number of kinds. For the native reviewer (#564).city.projects_toggle: "מיזמי העיר ({0})"