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.

Top bar: the Money and cohesion tips name the debt ceiling and event cards (Refs #2459) (#3079)

Eyal Golanc9b89289c81d
diff --git a/changelog.d/c30-2459-hud-tips.md b/changelog.d/c30-2459-hud-tips.md
new file mode 100644
index 000000000..81b29e224
--- /dev/null
+++ b/changelog.d/c30-2459-hud-tips.md
@@ -0,0 +1,3 @@
+### Fixed
+
+- The Money tip on the top bar now says that an Arms purchase past the debt ceiling is refused, and the Social cohesion tip names event cards. Refs #2459
diff --git a/tools/tests/test_hebrew_ui.py b/tools/tests/test_hebrew_ui.py
index 82ed8128e..5cd29f915 100644
--- a/tools/tests/test_hebrew_ui.py
+++ b/tools/tests/test_hebrew_ui.py
@@ -199,3 +199,19 @@ def test_the_hebrew_plural_of_a_turn_is_torot_never_torim():
'defence.turn_quarter', 'defence.turn_month', 'defence.turn_week',
'advisor.opening.move.text', 'advisor.opening.move.cue.2', 'advisor.ben_gurion.defeat_economy.text'):
assert 'תורות' in he[key], key
+
+
+def test_the_money_and_cohesion_meter_tips_name_the_debt_ceiling_and_event_cards():
+ """#2459: Money's tip says a cost past what we have becomes debt, but an Arms purchase that would take the debt past
+ mvp.debt_ceiling is refused (Pools.BuyArms, RefusedDebtCeiling, R-ARMS-002). The tip shows in every ruleset, so it
+ must not name the arms workshop's waiting cycle (Workshops.Produce, R-ARMS-006), which runs only under gdd-0.3. Event cards move Social cohesion directly (EventSystem's
+ effects through EffectsSystem.Shift on morale, e.g. altalena), as the Security and International support tips
+ already say. Both tips must say so, in English and in Hebrew (the same words as arms.refused_debt_ceiling and
+ hud.tip.security)."""
+ en, he = strings('strings.en.yaml'), strings('strings.he.yaml')
+ assert 'debt ceiling' in en['hud.tip.treasury']
+ assert 'Arms purchase' in en['hud.tip.treasury'] and 'workshop' not in en['hud.tip.treasury']
+ assert 'תקרת החוב' in he['hud.tip.treasury']
+ assert 'רכישת נשק' in he['hud.tip.treasury'] and 'סדנ' not in he['hud.tip.treasury']
+ assert 'event cards' in en['hud.tip.cohesion']
+ assert 'כרטיסי האירוע' in he['hud.tip.cohesion']
diff --git a/unity/Assets/UI/strings.en.yaml b/unity/Assets/UI/strings.en.yaml
index bfa382756..f0258d164 100644
--- a/unity/Assets/UI/strings.en.yaml
+++ b/unity/Assets/UI/strings.en.yaml
@@ -35,17 +35,20 @@ hud.caption.fx: "Foreign currency"
hud.caption.cohesion: "Social cohesion"
# Each meter's tip says what the meter is and what moves it, under its number in words (MeterTip, #2200; owner's option 1:
# one key per HudModel.MeterIds id). treasury, immigration, cohesion and standing are sentences of the encyclopedia pages
-# (advisor.page.money_debt, .immigration, .national_meters), word for word. security, support and fx had no page then and
+# (advisor.page.money_debt, .immigration, .national_meters), word for word, except treasury's debt ceiling sentence
+# (Pools.BuyArms RefusedDebtCeiling, R-ARMS-002; not the arms workshop's waiting cycle, Workshops.Produce R-ARMS-006,
+# which runs only under gdd-0.3, while this tip shows in every ruleset) and cohesion's event cards clause
+# (EventSystem through EffectsSystem.Shift on morale), added for #2459. security, support and fx had no page then and
# are written from the code: security from model.yaml's border_villages_secure effect (its office's competence and budget,
# EffectsSystem.Multiplier) and event shifts; support from EffectsSystem.Approval and model.yaml's voter_groups, with
# coalition stability moving toward it (PoliticsSystem.UpdateStability, R-GOV-001); fx from EconomySystem.Apply's flows,
# EconomySystem.ConvertDollars (R-MONEY-004) and fx_crisis, which stops the Food import (R-FOOD-002), and event effects on
# fx_reserves (R-EFX-001).
-hud.tip.treasury: "Money comes in from taxes and from every filled job, and goes out on government spending, the upkeep of our military formations, training and building. When a cost is more than we have, it is still paid: Money stops at zero and the rest becomes debt."
+hud.tip.treasury: "Money comes in from taxes and from every filled job, and goes out on government spending, the upkeep of our military formations, training and building. When a cost is more than we have, it is still paid: Money stops at zero and the rest becomes debt. But an Arms purchase that would pass the debt ceiling is refused."
hud.tip.immigration: "The immigrants arrive as the historical figures bring them, and each city takes a share in proportion to its people. They wait as refugees, and each turn some of them become civilians without work; how many depends on the minister in charge of immigration."
hud.tip.security: "Security moves with the choices made on event cards. Border villages add to it, more with an able and well-funded Minister of Agriculture."
hud.tip.support: "Public support is the average approval of the voter groups, each weighing two of Social cohesion, Security, housing and Food. Coalition stability moves toward it every turn."
-hud.tip.cohesion: "Social cohesion rises and falls with housing, work, Food, rationing and Security."
+hud.tip.cohesion: "Social cohesion rises and falls with housing, work, Food, rationing and Security, and with the choices made on event cards."
hud.tip.standing: "International support moves with the choices made on event cards."
hud.tip.fx: "Foreign currency comes in from exports, donations and loans, and goes out on imports, which grow with the population, and on dollars converted into Money on the Defence screen during the war. Event cards can add to it or take from it. Once it runs out, the Food import stops until it recovers."
# The other static texts of Game.uxml, each set by the presenter that owns its element (#193). Each English string is
diff --git a/unity/Assets/UI/strings.he.yaml b/unity/Assets/UI/strings.he.yaml
index 849d3439f..bfb6faa73 100644
--- a/unity/Assets/UI/strings.he.yaml
+++ b/unity/Assets/UI/strings.he.yaml
@@ -34,11 +34,13 @@ hud.caption.cohesion: "לכידות חברתית"
# sentences of the reviewed encyclopedia pages (advisor.page.money_debt, .immigration, .national_meters), split from them;
# security, support and fx are new. Agent-drafted Hebrew, all seven: native review: owner, 3 Nov 2026 (HE batch 1:
# "All fine as they are").
-hud.tip.treasury: "כסף נכנס ממסים ומכל משרה מאוישת, ויוצא על הוצאות הממשלה, על אחזקת העוצבות הצבאיות שלנו, על אימון ועל בנייה. כשעלות גבוהה ממה שיש לנו, היא משולמת בכל זאת: הכסף נעצר באפס והיתרה הופכת לחוב."
+# For the native reviewer (#564): agent-drafted, #2459 (the debt ceiling sentence; the rest is as reviewed)
+hud.tip.treasury: "כסף נכנס ממסים ומכל משרה מאוישת, ויוצא על הוצאות הממשלה, על אחזקת העוצבות הצבאיות שלנו, על אימון ועל בנייה. כשעלות גבוהה ממה שיש לנו, היא משולמת בכל זאת: הכסף נעצר באפס והיתרה הופכת לחוב. אבל רכישת נשק שהייתה חוצה את תקרת החוב נדחית."
hud.tip.immigration: "העולים מגיעים לפי הנתונים ההיסטוריים, וכל עיר מקבלת חלק לפי מספר האנשים בה. הם ממתינים כפליטים, ובכל תור חלק מהם הופכים לאזרחים ללא עבודה; כמה מהם, תלוי בשר האחראי על העלייה."
hud.tip.security: "הביטחון זז בעקבות הבחירות בכרטיסי האירוע. יישובי הספר מוסיפים לו, ויותר מכך כששר החקלאות מוכשר ומשרדו מתוקצב היטב."
hud.tip.support: "התמיכה הציבורית היא ממוצע התמיכה של קבוצות הבוחרים, וכל קבוצה שוקלת שניים מבין הלכידות החברתית, הביטחון, הדיור והמזון. יציבות הקואליציה נעה לעברה בכל תור."
-hud.tip.cohesion: "הלכידות החברתית עולה ויורדת עם הדיור, התעסוקה, המזון, הקיצוב והביטחון."
+# For the native reviewer (#564): agent-drafted, #2459 (the event cards clause; the rest is as reviewed)
+hud.tip.cohesion: "הלכידות החברתית עולה ויורדת עם הדיור, התעסוקה, המזון, הקיצוב והביטחון, ובעקבות הבחירות בכרטיסי האירוע."
hud.tip.standing: "התמיכה הבינלאומית זזה בעקבות הבחירות בכרטיסי האירוע."
hud.tip.fx: "מטבע החוץ נכנס מיצוא, מתרומות ומהלוואות, ויוצא על יבוא שגדל עם האוכלוסייה ועל דולרים שמומרים לכסף במסך הביטחון בזמן המלחמה. כרטיסי האירוע יכולים להוסיף לו או לגרוע ממנו. כשהוא אוזל, יבוא המזון נעצר עד שהוא מתאושש."
# Native review: owner, 3 Nov 2026 (HE batch 5: "approve all"; recorded on #564, issuecomment-6610635087).