Skip to content

A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.

UI: the population-tier badge's values are owner-approved, and Rosh Pinna keeps tier 1 from 350 (fixes #710) (#991)

Eyal Golance647bbf2674
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9a5a1a25d..fa337641a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -52,6 +52,11 @@ adds a line under **Unreleased**; CI's `Changelog` job checks this (see `CONTRIB
pennant, only once those figures arrive; the other Arab forces stay data only. Until a model arrives, and if its
bundle is missing, the code-built Israeli figures stay. The pioneer veteran's model now stands at his walk's first
frame instead of a T-pose.
+### Changed
+- The population-tier badge on the twelve city and town pills keeps the values it shipped with, now owner-approved: tiers 1
+ to 9 doubling from 1,000 people, at every zoom, at the start of the name and mirrored in Hebrew (owner, 18 October 2026,
+ "Accept as shipped"). Rosh Pinna keeps tier 1 from its May 1948 figure of 350, which the data marks `wikipedia-only`
+ ("Keep tier 1 from 350"). Nothing changes in the game; EditMode tests pin both rulings (#710).
### Fixed
- The Unity golden checks play every golden in `sim/Statecraft.Sim.Tests/golden/manifest.txt` (`hash1950`, `hash1952`,
diff --git a/unity/Assets/Scripts/UI/MapLabelsPresenter.cs b/unity/Assets/Scripts/UI/MapLabelsPresenter.cs
index 894fb4720..8737cb38f 100644
--- a/unity/Assets/Scripts/UI/MapLabelsPresenter.cs
+++ b/unity/Assets/Scripts/UI/MapLabelsPresenter.cs
@@ -77,8 +77,9 @@ namespace Statecraft.Game.UI
public const float MaxKitCover = 0.1f;
/// <summary>The population-tier badge (issue #710) inside a city's or town's pill, and the class that makes room for it.</summary>
public const string TierClass = "map-label-tier", WithTierClass = "map-label-with-tier";
- /// <summary>DESIGN VALUES (proposed on #710, not yet owner-ruled): tiers 1 to 9, doubling from 1,000 people (under
- /// 1,000 is tier 1, 1,000-1,999 tier 2, ..., 128,000 and over tier 9), eight distinct tiers across the twelve cities.</summary>
+ /// <summary>OWNER-APPROVED DESIGN VALUES (#710, 18 October 2026, "Accept as shipped"): tiers 1 to 9, doubling
+ /// from 1,000 people (under 1,000 is tier 1, 1,000-1,999 tier 2, ..., 128,000 and over tier 9). The badge is at
+ /// the start of the name, mirrored in Hebrew, and remains part of the pill at every zoom where the pill is shown.</summary>
public const int TierBase = 1000, TierCount = 9;
/// <summary>The badge's inset from its pill's edge (Statecraft.uss ".map-label-with-tier" leaves the room), and its width
/// (".map-label-tier"); in the Hebrew UI the badge is inset from the right edge (owner, on #897).</summary>
diff --git a/unity/Assets/Tests/EditMode/MapLabelTests.cs b/unity/Assets/Tests/EditMode/MapLabelTests.cs
index 71d74bba8..17a219167 100644
--- a/unity/Assets/Tests/EditMode/MapLabelTests.cs
+++ b/unity/Assets/Tests/EditMode/MapLabelTests.cs
@@ -340,18 +340,36 @@ public class MapLabelTests
finally { labels.Dispose(); hd.Dispose(); }
}
- /// <summary>Issue #710 (owner, 15 October 2026): a city's or town's pill starts with its static 1948 population tier, from
- /// cities.yaml's people; a pill with no 1948 figure (an Arab town, a kibbutz, a locality) has no badge. The tiers double
- /// from 1,000 (the proposed design values): 999 is tier 1, 1,000 tier 2, 128,000 and up tier 9, which gives eight distinct
- /// tiers across the twelve rows. The badge sits inside its pill, at the left, before the name; with the pointer over
- /// Haifa's pill the tooltip explains the number.</summary>
- [UnityTest]
- public IEnumerator CitiesWearTheirStatic1948PopulationTier()
+ /// <summary>Owner, 18 October 2026, on #710 ("Accept as shipped"): tiers 1 to 9, doubling from 1,000 people. 999 is
+ /// tier 1, 1,000 tier 2, 128,000 and up tier 9.</summary>
+ [Test]
+ public void PopulationTierBoundariesDoubleFromOneThousandAndCapAtNine()
{
Assert.AreEqual(1, MapLabelsPresenter.Tier(999)); Assert.AreEqual(2, MapLabelsPresenter.Tier(1000));
Assert.AreEqual(2, MapLabelsPresenter.Tier(1999)); Assert.AreEqual(3, MapLabelsPresenter.Tier(2000));
Assert.AreEqual(8, MapLabelsPresenter.Tier(127999)); Assert.AreEqual(9, MapLabelsPresenter.Tier(128000));
Assert.AreEqual(9, MapLabelsPresenter.Tier(248459));
+ }
+
+ /// <summary>Owner, 18 October 2026, on #710 ("Keep tier 1 from 350"): Rosh Pinna's badge comes from its May 1948 figure
+ /// of 350, which is Hebrew Wikipedia only (CBS lists no population), so the data marks it wikipedia-only.</summary>
+ [Test]
+ public void RoshPinnaKeepsTierOneFromItsWikipediaOnlyFigure()
+ {
+ var roshPinna = Statecraft.Sim.ContentLoader.Load(Statecraft.Game.Paths.Content).Cities.Single(c => c.Id == "rosh_pinna");
+ var people = roshPinna.People ?? throw new AssertionException("Rosh Pinna has no population figure");
+ Assert.AreEqual("wikipedia-only", people.Status);
+ Assert.AreEqual(350m, people.Value); Assert.AreEqual("1948-05", people.Date);
+ Assert.AreEqual(1, MapLabelsPresenter.Tier(people.Value));
+ }
+
+ /// <summary>Issue #710 (owner, 15 October 2026): a city's or town's pill starts with its static 1948 population tier, from
+ /// cities.yaml's people; a pill with no 1948 figure (an Arab town, a kibbutz, a locality) has no badge. The tiers double
+ /// from 1,000 (owner-approved, 18 October 2026), which gives eight distinct tiers across the twelve rows. The badge sits
+ /// inside its pill, at the left, before the name; with the pointer over Haifa's pill the tooltip explains the number.</summary>
+ [UnityTest]
+ public IEnumerator CitiesWearTheirStatic1948PopulationTier()
+ {
// The game's tooltip comes from map.tier (GameRoot); both languages format it with the tier, the count and the people.
var en = UiText.Parse(AssetDatabase.LoadAssetAtPath<TextAsset>(UiPaths.Strings).text);
var he = UiText.Parse(AssetDatabase.LoadAssetAtPath<TextAsset>(UiPaths.StringsHebrew).text, "strings.he.yaml");