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.

Docs and comments: 3 Nov audit NITs, plus invariant settings and nav-log numbers (#2357)

Eyal Golan9527d3234895
diff --git a/changelog.d/e21-wA-nits.md b/changelog.d/e21-wA-nits.md
new file mode 100644
index 000000000..c9ecd2662
--- /dev/null
+++ b/changelog.d/e21-wA-nits.md
@@ -0,0 +1,4 @@
+### Fixed
+
+- The saved UI scale and the navigation diagnostics log write their numbers with the invariant culture, whatever the
+ system's language; the saved scales stay 100, 125 and 150.
diff --git a/content/schema/map-overrides.schema.json b/content/schema/map-overrides.schema.json
index 9f1c6c686..f7caa0eb6 100644
--- a/content/schema/map-overrides.schema.json
+++ b/content/schema/map-overrides.schema.json
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "content/map/overrides.yaml",
- "description": "The map editor's overrides (#1009), applied after the generated map data. terrain: a land hex's biome (one of the land biomes in map/hexes.json). control: one period (an id in map/control_hexes_1948_49.yaml) of one hex, set to one of that file's codes. locations: a settlement's (map/settlements_1948.yaml) or map location's (map/locations_1948.yaml) land hex; its sourced coordinates stay in its own file.",
+ "description": "The map editor's overrides (#1009), applied after the generated map data. terrain: a land hex's biome (one of the land biomes in map/hexes.json). control: one period (an id in map/control_hexes_1948_49.yaml) of one hex, set to one of that file's codes. locations: a settlement's (map/settlements_1948.yaml) or map location's (map/locations_1948.yaml) land hex; its sourced coordinates stay in its own file. Each target has at most one override: one terrain override per hex, one control override per hex and period, one location override per id.",
"type": "object",
"additionalProperties": false,
"required": ["terrain", "control", "locations"],
diff --git a/content/schema/regions.schema.json b/content/schema/regions.schema.json
index f10e63cdc..9c1544671 100644
--- a/content/schema/regions.schema.json
+++ b/content/schema/regions.schema.json
@@ -42,7 +42,7 @@
"id": { "$ref": "#/$defs/id" },
"capital_location": { "$ref": "#/$defs/id" },
"member_hexes": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/hex" } },
- "member_locations": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } },
+ "member_locations": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/id" }, "description": "Each location's effective hex (after map overrides) must be one of this region's member_hexes, and a location may belong to at most one region." },
"field_hexes": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/hex" }, "description": "Optional opening field hexes (#1691 Q4), each one of this region's member_hexes. Data only." },
"design_note": { "type": "string", "minLength": 1 },
"sources": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } },
diff --git a/docs/WRITING_EVENTS.md b/docs/WRITING_EVENTS.md
index 8df5631d4..2e346d905 100644
--- a/docs/WRITING_EVENTS.md
+++ b/docs/WRITING_EVENTS.md
@@ -1,6 +1,6 @@
# Writing an event
-An event is one YAML file in `content/events/`. The game shows it as a card with two or more options; each option
+An event is one YAML file in `content/events/`. The game shows it as a card with one or more options; each option
moves some numbers. This guide takes you from an empty file to a passing test run. Everything here was checked
against the loader (`sim/Statecraft.Sim/ContentLoader.cs`, `EventRules.cs`, `Content.cs`, `ReleaseGate.cs`); if the
code and this page disagree, the code wins and the page has a bug (please open an issue).
@@ -112,7 +112,8 @@ overlaps the window. Turns are a month long and end on the 15th (15 June 1948, 1
end on 15 January 1952), so a window shorter than a turn can still fire, late. For a decision card, open the window on
the 15th on or before the historical decision, so the card reaches the player on the turn before it (R-TURN-002;
`EventRetimingTests` pins each card's turn). Put a comment above `from` saying why you chose the date, as the example
-does. The loader only requires `from`, and that `to` is later than `from`.
+does. The loader requires `from`. When `to` is present, it must be later than `from`. An event may not span an era
+boundary; split its window at the boundary. An open window with no `to` is allowed only in the last era.
### conditions
diff --git a/docs/WRITING_UI.md b/docs/WRITING_UI.md
index f37101aaf..609df5912 100644
--- a/docs/WRITING_UI.md
+++ b/docs/WRITING_UI.md
@@ -151,6 +151,7 @@ Status: gershayim adopted (maintainer, #630); other language recommendations nee
- Settled since 14 October: the recording credit no longer keeps a name in Latin letters. It is "הקלטה: ראלף הלינגר, ארכיון המדינה" (`start.recording_credit`), spelt as the Israel State Archives' own description spells it, and the Hebrew UI test now rejects Latin letters in any static Hebrew text, names included.
- How to test: the original explicit-language path was pinned by `HebrewIsOnlyAskedForByHand`; since #1058 Settings also offers English / עברית. Test the current switch and the `?lang=he` path (#506).
- Address and register on buttons and instructions: the Israeli National Digital Agency's guide to government language (section 1.3.3, read by the author as rendered slides; reuse terms not found, paraphrased) says not to address users only in the masculine singular and not to use slash or dot forms. It prefers, in order: a setting that adapts the form to the user; a second person without a gender marker (words ending in ך, ת or ה, such as "שלך"); a neutral first person; then an action noun, an infinitive, or rephrasing such as "יש לשלוח". The strings already follow this apart from one masculine imperative: "הסתר" (`event.hide`). Examples using "יש ל..." include (`info.hint`, `newgame.confirm`, `why.empty`, `budget.unsaved`, `boot.failed`) and action labels use action nouns ("הקמת מעברה", "בניית דיור", "מינוי לתפקיד", "פתיחת מסך הביטחון"). Candidate: replace "הסתר" with "הסתרה" or "להסתיר". A setting that lets the player choose a form of address is the guide's first priority, but it is a design decision for the owner. The native reviewer confirms all of this.
+- Then changed (3 Nov 2026): the live Hebrew `info.hint` uses action nouns ("לחיצה ...", "גרירה ..."), not "יש ל...".
Check: a pattern search over the strings files.
### UI-17 Plurals
@@ -185,6 +186,8 @@ Check: manual.
| `info.control_none` | No sourced front line here on this date | Good, says what is missing | UI-10 |
| `info.localities` (he) | יישובים ב-1948: {0} | Hyphen where the Academy points to the maqaf | UI-16 |
+Then changed (3 Nov 2026): the live `info.hint` (in the table above) now reads "Click a unit, then a hex, to move it. Click the map, or Tab and Enter, to inspect a hex; drag to move the map".
+
## Review checklist
Run in order. A "no" is a finding, cited by rule ID.
diff --git a/docs/WRITING_UI_HE.md b/docs/WRITING_UI_HE.md
index 826adc4d9..7da604374 100644
--- a/docs/WRITING_UI_HE.md
+++ b/docs/WRITING_UI_HE.md
@@ -37,11 +37,11 @@ Use when writing or reviewing Hebrew for Statecraft: Israel. Never present a pro
1. Hebrew mirrors English key for key, with the same placeholders (HE-01).
2. One Hebrew word per concept, from the glossary. Do not introduce a second word for a concept already in use (HE-02).
3. Do not use the masculine imperative or slash forms. Prefer an action noun, "יש ל...", a word ending in ך or ת, or a neutral first person (HE-03).
-4. Write counts as "Label: N". Do not build sentences whose wording changes with the number (HE-04).
+4. Use the established singular and plural selector families where wording changes with the number; otherwise prefer "Label: N" (HE-04).
5. Full spelling (ktiv male) for modern text (HE-05).
6. Punctuation is ASCII, as in English. Acronyms take gershayim before the last letter. Use the typographic gershayim ״ (U+05F4) everywhere, in strings and in content (HE-06, settled in #630).
7. A prefix before a numeral or Latin letters takes a maqaf, per the Academy (HE-07).
-8. Digits are Latin. Do not type dates or money into a string. Month names come from the `date.*` keys; money is not yet localised (HE-08).
+8. Digits are Latin. Do not type dates or money into a string, except the six sourced citation and credit dates listed in HE-08. Month names come from the `date.*` keys; money is not yet localised (HE-08).
9. Inserted values are wrapped in direction marks by the UI (#543). Static Hebrew text has no Latin letters, names included. Do not put a colon or bracket directly after a Latin word typed in a Hebrew sentence without checking the display. Preview with `?lang=he` (HE-09).
10. No left or right, above or below (HE-11).
11. Do not write a verb or pronoun after a placeholder in a form that only fits one gender, when the placeholder can be a body or a person of either gender (HE-15).
@@ -76,13 +76,13 @@ For the native reviewer: choose the word for each open concept above and record
### HE-03 Form of address
Status: proposed, native; source read directly. Source: the Israeli National Digital Agency's guide to government language, section 1.3.3 (paraphrased; reuse terms not found). It says: do not address users only in the masculine singular; do not use slash or dot forms; first priority is a setting that adapts the form to the user; second, a second person without a gender marker (words ending in ך, ת or ה); then a neutral first person; then an action noun, an infinitive, or rephrasing such as "יש לשלוח".
- The strings already follow this apart from one masculine imperative: "הסתר" (`event.hide`). Candidate: "הסתרה" or "להסתיר".
-- Examples using "יש ל..." include "יש ללחוץ על המפה, או לעבור אליה ב־Tab וללחוץ Enter, כדי לבדוק משבצת; גרירה בלחצן הימני מזיזה את המפה" (`info.hint`). Action-noun labels include "הקמת מעברה ({0})" (`info.build_camp`), "הגשת התקציב" (`budget.submit`), "העלאת הדרגה" (`defence.raise`), "השמעת ההקלטה" (`start.listen`) and "איפוס" (`budget.reset`). One uses the ך ending: "{0} (מינוי שלך)" (`card.appointed_name`).
+- Examples using neutral instructions include "לחיצה על יחידה ואז על משבצת מזיזה אותה; לחיצה על המפה, או Tab ו־Enter, בודקת משבצת; גרירה מזיזה את המפה" (`info.hint`). Action-noun labels include "הקמת מעברה ({0})" (`info.build_camp`), "הגשת התקציב" (`budget.submit`), "העלאת הדרגה" (`defence.raise`), "השמעת ההקלטה" (`start.listen`) and "איפוס" (`budget.reset`). One uses the ך ending: "{0} (מינוי שלך)" (`card.appointed_name`).
- Two forms the reviewer should look at: "טוען את ההקלטה…" (`start.loading`), a masculine present-tense form with the program as its implied subject; and "המשך" (`start.continue`), which reads as a noun and also matches a masculine imperative. The Hebrew README addresses the reader as "אתם" (plural), a different choice again.
- A player setting for the form of address is the guide's first priority. It is a design decision for the owner and is not proposed here.
For the native reviewer: confirm that "יש ל..." and action nouns are right for a game, rule on the two forms above, and choose between "הסתרה" and "להסתיר".
### HE-04 Counts and plurals
-Status: observed in the Hebrew strings, maintainer for a mechanism. Reason: Hebrew has three plural categories for cardinal numbers (one, two, other; Unicode CLDR 48), and the game has no general way to choose a form by count. The Hebrew file already writes counts as "Label: N": "החלטות ממתינות נוספות: {0}" (`event.more`), which needs no plural form, and a repo test pins it as count-neutral. The top bar picks between two keys by count: "{0:0} נקודה" (`hud.say_point`) and "{0:0} נקודות" (`hud.say_points`). The objective early/late month messages also have singular variants selected in EventCardPresenter.ObjectiveLine. The city panel adds city.groups_one/city.groups and city.turns_one/city.turns (#869). These explicit selectors do not provide a general language-category mechanism; native review must assess their wording.
+Status: observed in the Hebrew strings, maintainer for a mechanism. Reason: Hebrew has three plural categories for cardinal numbers (one, two, other; Unicode CLDR 48), and the game has no general way to choose a form by count. Nine explicit selector families change the Hebrew wording by count. The top bar picks between two keys: "{0:0} נקודה" (`hud.say_point`) and "{0:0} נקודות" (`hud.say_points`). "החלטות ממתינות נוספות: {0}" (`event.more`) is written as "Label: N" and a repo test pins it; a count of one uses `event.more_one` (`EventCardTests`: "the owner's singular label (25 Oct)"). The objective early/late month messages have singular variants (`event.objective_early_one`, `event.objective_late_one`) selected in EventCardPresenter.ObjectiveLine. The city panel adds city.groups_one/city.groups and city.turns_one/city.turns (#869). The other three are `why.line.unit_moved_one` / `why.line.unit_moved`, `info.map_action_reason.too_far_one` / `info.map_action_reason.too_far_many` and `workshop.refused_built_one` / `workshop.refused_built`. These explicit selectors do not provide a general language-category mechanism; native review must assess their wording.
- Gendered numerals (the form of a number depends on the gender of the counted noun) are a separate question. No source was found, and the rule is not written here.
For the native reviewer: list any strings where a number appears next to a noun and say which form is needed, and say whether the two-key form of `hud.say_point` is enough for a digit numeral.
@@ -94,7 +94,7 @@ For the native reviewer: confirm full spelling for all UI text, and decide the s
Status: gershayim adopted (maintainer, #630), subject to a native-reviewer overrule in #564. Other punctuation recommendations remain proposed for native review.
- Hebrew uses ASCII punctuation: full stop, comma, question mark, exclamation mark and colon work as in English, and the question mark is not mirrored (r12a).
- Acronyms take gershayim before the last letter, for example "הרמטכ״ל" and "האו״ם". The correct character is the typographic gershayim ״ (U+05F4); a straight quote is a common substitute because of keyboards, and r12a notes it sits too high (r12a). The Academy's own examples use the straight quote and do not discuss the typographic character. The strings checked use ״, including defence.command, defence.ceasefire, defence.ceasefire_stops, defence.ceasefire_starts and the newer cabinet.reason.is_chief_of_staff / cabinet.reason.not_career_officer (#985). The abbreviation mark geresh is the typographic ׳ (U+05F3), in "מס׳ 1" (`start.source`) and in `info.hex`. The gershayim choice ״ was adopted in #630 for strings and content. A native reviewer may overrule it in #564. Geresh and quotation-style recommendations still need native review.
-- Quotation marks are not paired. In principle ” opens and closes and ’ nests, but straight quotes are common in practice (r12a). The strings contain no double quotation marks. The one string that put straight single quotes around a placeholder, `order.unknown`, no longer does: since #651 it reads "לא ניתן לזהות {0}" and shows no id (UI-07). No string quotes a value now. Choose one style before content needs it.
+- Quotation marks are not paired. In principle ” opens and closes and ’ nests, but straight quotes are common in practice (r12a). Nine values use the typographic gershayim ״ (U+05F4) at both ends of a quotation: `advisor.page.objectives.text`, `advisor.page.why.title`, `advisor.page.why.text`, `advisor.page.cabinet.text`, `advisor.page.arms.text`, `advisor.page.arms.gdd03.text`, `advisor.page.truces.text`, `advisor.page.capture.text` and `report.all`. The one string that put straight single quotes around a placeholder, `order.unknown`, no longer does: since #651 it reads "לא ניתן לזהות {0}" and shows no id (UI-07). No string quotes a value now.
- #630 made the content match the strings. `content/offices.yaml` gives the Haganah post as רמטכ״ל ההגנה, and a scan of `content/parties.yaml` and `content/offices.yaml` found no straight quote inside a Hebrew word. The strings and the content now use ״ alike. The #630 description also lists a title and one person's name; those were not re-checked here.
For the native reviewer: record any overrule of the adopted ״ convention, and choose a quotation style.
@@ -111,6 +111,7 @@ For the native reviewer: confirm the maqaf for prefixes before numerals and Lati
Status: proposed, maintainer, code.
- Digits are Latin. A range written with a hyphen-minus reads left to right inside Hebrew text (r12a), while the Academy writes a numeric range right to left with an en dash, the first number at the right (פרקים 5 to 12, not 12 to 5). The two behave differently under the bidi algorithm, so avoid typed ranges, as the strings already do with "מ־{0} עד {1}" (`why.turn`), and test any range in Unity before adopting one.
- The map, top bar, Budget, Why and info panel use localized date.* keys via Control1948.DateText or LineDateText (#687, #701). PlayerText.Date itself remains English; remaining callers need individual checks. Money still uses PlayerText.Money and its currency prefix from content. UiText.Format wraps inserted values without Hebrew in U+200E marks, which addresses direction but does not translate the value.
+- Six sourced citation or credit strings intentionally type their dates, matching the English catalogue: `start.source`, `map.caption_adjusted`, `advisor.quote.q1.source`, `advisor.credit.ben_gurion`, `advisor.credit.meyerson` and `advisor.credit.dayan`. This is the exception to the no-typed-dates rule; gameplay dates still use the `date.*` keys.
- Currency needs a decision. The money format is "IL 1.2m". For the years the game covers, "IL" is, as far as is known, the Israeli pound (an inference, not checked in a source), not the new shekel, so the shekel sign ₪ that Hebrew UI guidance normally uses would be wrong. How the Israeli pound is written in Hebrew is a question for the native reviewer and Eyal.
For the native reviewer: confirm the twelve month names as the style the game should use, supply the Hebrew way to write the Israeli pound, and the format for large amounts ("1.2m"). The spoken form already says "מיליון" (`hud.say_million`).
@@ -119,7 +120,7 @@ Status: proposed, native, test in Unity. Reason: Hebrew runs right to left and e
- To test: "לא ניתן היה להפעיל את Statecraft: {0}. יש לטעון את הדף מחדש." (`boot.failed`), where a colon follows a Latin word and a placeholder follows it.
- To test: "לחיצה, Enter או רווח לדילוג · Esc מדלג על הכול" (`outcome.skip`), which is new since 14 October.
- Settled since 14 October: the recording credit keeps no Latin name. It is "הקלטה: ראלף הלינגר, ארכיון המדינה" (`start.recording_credit`), as the Israel State Archives spell the name, and the Hebrew UI test rejects Latin letters in any static Hebrew text, names included.
-- Already in place: each text takes its direction from its own first letter (`InHebrewEachTextTakesItsDirectionFromItsOwnWords`), and the Hebrew test bans the explicit embedding and override characters U+202A to U+202E. Since #543 every value inserted into a Hebrew pattern is wrapped in left-to-right marks (U+200E), and `HebrewValuesTests` renders the lines to check that a minus sign and an English date draw correctly and that the marks draw nothing. Those tests cover the inserted-value cases described; they do not establish correctness for every mixed-direction string. A Latin word typed inside a Hebrew sentence is not covered by the tests reviewed.
+- Already in place: each text takes its direction from its own first letter (`InHebrewEachTextTakesItsDirectionFromItsOwnWords`), and the Hebrew catalogue test bans the explicit embedding and override characters U+202A to U+202E in string values. Since #543 every value inserted into a Hebrew pattern is wrapped in left-to-right marks (U+200E), and `HebrewValuesTests` renders the lines to check that a minus sign and an English date draw correctly and that the marks draw nothing. The code-level exception is the end screen: `EndScreenPresenter` wraps each Hebrew date in RLE and PDF (U+202B and U+202C, #2060), because UI Toolkit's text generator still misordered that date with the isolates (measured on Unity 6000.3). Those tests cover the inserted-value cases described; they do not establish correctness for every mixed-direction string. A Latin word typed inside a Hebrew sentence is not covered by the tests reviewed.
- How to see it: open the game with `?lang=he`.
- To test: "ספיטפייר LF Mk IXe" (`unit.aircraft.spitfire`).
- To test: in the game, the lines that receive an English date or amount, to confirm the marks do what the rendered test describes (HE-08).
@@ -185,7 +186,7 @@ Run in order. A "no" is a finding, cited by rule ID.
For the maintainer:
- Review any remaining English date callers and decide the localized money format (HE-08). The main date surfaces listed above are already localized.
-- Where else to isolate a value (HE-09). The text generator honours the isolates (#1414, `HebrewValuesTests`), and per-text direction is already tested.
+- Where else to isolate a value (HE-09). The text generator honours the isolates (#1414, `HebrewValuesTests`), and per-text direction is already tested; end-screen dates retain the measured RLE/PDF exception above.
- Hebrew for content, and its review (HE-12, #55).
- A player setting for the form of address (HE-03).
- Whether the two-key plural is enough, or a general mechanism is wanted (HE-04).
diff --git a/docs/mvp-checklist.md b/docs/mvp-checklist.md
index 50dd1ecfe..298affc72 100644
--- a/docs/mvp-checklist.md
+++ b/docs/mvp-checklist.md
@@ -75,7 +75,7 @@ The design of record is [the GDD](GDD.md), especially "MVP scope 1948 to 1951".
- [x] **Done: `docs/rules/mvp.md`, R-COMBAT-001 to R-COMBAT-006.** PR 8 combat, with its Arms cost (#1194; #747 closed).
- [x] **Done: `docs/rules/mvp.md`, R-COMBAT-007, R-COMBAT-008 and R-UNIT-008.** PR 9 artillery and the armoured car: combat (#1245) and training at a military camp (#1346; #748 closed).
- [ ] **Open: #749.** PR 10 enemy AI. Part 1, the scripted positions and the truce guard, is on `main` (#1263; R-ENEMY-001 to R-ENEMY-004 and R-ENEMY-006); part 2, R-ENEMY-005, the operation cards' orders, remains.
-- [x] **Done: `docs/rules/mvp.md`, R-WAR-001 to R-WAR-004.** PR 11 war state, call-up retirement and truces (#1148, #1310, #1339 merged; #750 closed).
+- [x] **Done: `docs/rules/mvp.md`, R-WAR-002 to R-WAR-004.** PR 11 war state, call-up retirement and truces (#1148, #1310, #1339 merged; #750 closed).
- [ ] **Open: #751.** PR 12 prisoners. The mechanism is on `main` (#1264, #1271; R-POW-001 to R-POW-005); the four sourced exchange cards remain.
- [ ] **Open: #752.** PR 13 objective 1, the war and its goldens.
- [x] **Done: `UnitRoster.FromState`.** PR 14 Unity roster from the state, figures by Q-UI-3 (#1205; #753 closed).
diff --git a/docs/rules/mvp.md b/docs/rules/mvp.md
index 62925e9b9..60e09ede5 100644
--- a/docs/rules/mvp.md
+++ b/docs/rules/mvp.md
@@ -332,7 +332,7 @@ R-COMBAT-007: Artillery (a type of class `artillery`, which needs a `range` and
R-COMBAT-008: A military type may carry a `combat_percent` (at least 1; none is 100): its units' strength counts at that percent in the ratio, attacking and defending, in integers (R-COMBAT-002). The armoured car's is 150 (real value), with its 5 movement points (R-MOVE-001) and no other rule (Q-ARTY-2). Under `gdd-0.3`, armour's movement allowance is the catalogue value 3 (R-MOVE-001); combat factors and other mechanics remain unchanged.
-Phase 5 PR 11, slice 2 (#750): the truce cards bind the player's attack orders (Q-WAR-3). The windows and the two rulings below are the owner's of 21 and 22 October 2026 (https://github.com/eyalgolan/statecraft-israel/issues/750#issuecomment-6327133246). The card-to-window binding by `ChosenOptions` is an agent default of this PR; the rest of #750's war state replaces R-ENEMY-006's date-alone guard in its own slices.
+Phase 5 PR 11, slice 2 (#750): the truce cards bind the player's attack orders (Q-WAR-3). The windows and the two rulings below are the owner's of 21 and 22 October 2026 (https://github.com/eyalgolan/statecraft-israel/issues/750#issuecomment-6327133246). The card-to-window binding by `ChosenOptions` is an agent default of this PR. R-ENEMY-006's date-driven enemy guard remains separate from the player's card-driven truce state.
R-COMBAT-009: From accepting a truce card until its window ends, the player's attack orders are refused with "A truce is in force": from `first_truce`'s `accept` on the turns that start before 8 July 1948, and from `second_truce`'s `comply` on the turns that start before 15 October 1948, on the sourced dates of `events/first_truce.yaml`, `events/ten_days.yaml`, `events/second_truce.yaml` and `events/operation_yoav.yaml` (R-ENEMY-006's windows). A refused or defied card binds nothing: only the accepting option starts the binding. A complying player attacks again from the 15 October 1948 turn (owner ruling 1). The rule reads its turn by the turn's first day (the date the HUD shows) and R-ENEMY-006 by the turn's middle day; on monthly turns the two agree: the turns of 15 June to 15 September 1948 are bound, 15 October is free. Movement and every other order stand. The enemy side's own guard is untouched. The truce's refusal takes nothing: the order names its hex before the truce is checked, the state and the Attention are preserved, and no Arms are paid.
@@ -350,7 +350,7 @@ R-ENEMY-003: An enemy unit off its script attacks the first neighbouring hex, in
R-ENEMY-004: No enemy unit arrives or grows in Phase 5 (Q-ENEMY-3): no turn adds an enemy unit, until a dated per-army figure is chosen under CONTENT_POLICY section 1.
-R-ENEMY-006: No enemy unit attacks inside a truce window (owner, 21 October 2026, #749): the first truce from 11 June to 8 July 1948 and the second from 18 July to 15 October 1948, half-open, the dates of `events/first_truce.yaml`, `events/second_truce.yaml`, `events/ten_days.yaml` and `events/operation_yoav.yaml` (the same windows as `map/control_hexes_1948_49.yaml`'s truce periods). A turn is in a truce when its middle day is (agent default): a monthly turn spans a truce's edge, and the middle puts it on the side that holds most of its days. So the turns of 15 June to 15 September 1948 are truce turns, and those of 15 May and 15 October 1948 are not. On a truce turn every enemy unit's standing attack ends first, whatever the unit then does (owner, #1263): it may still move on its script (R-ENEMY-002), and a unit off its script fortifies (R-ENEMY-003's else branch). The guard is by date alone, in every mode, whatever the truce cards' answers: #750 replaces it with the full war state.
+R-ENEMY-006: No enemy unit attacks inside a truce window (owner, 21 October 2026, #749): the first truce from 11 June to 8 July 1948 and the second from 18 July to 15 October 1948, half-open, the dates of `events/first_truce.yaml`, `events/second_truce.yaml`, `events/ten_days.yaml` and `events/operation_yoav.yaml` (the same windows as `map/control_hexes_1948_49.yaml`'s truce periods). A turn is in a truce when its middle day is (agent default): a monthly turn spans a truce's edge, and the middle puts it on the side that holds most of its days. So the turns of 15 June to 15 September 1948 are truce turns, and those of 15 May and 15 October 1948 are not. On a truce turn every enemy unit's standing attack ends first, whatever the unit then does (owner, #1263): it may still move on its script (R-ENEMY-002), and a unit off its script fortifies (R-ENEMY-003's else branch). The guard remains date-driven in every mode, whatever the truce cards' answers; #750 separately made accepted truce cards bind the player's attacks (R-COMBAT-009).
## The war state
diff --git a/sim/Statecraft.Sim/EnemyAI.cs b/sim/Statecraft.Sim/EnemyAI.cs
index 9284dd088..c78d5e6ac 100644
--- a/sim/Statecraft.Sim/EnemyAI.cs
+++ b/sim/Statecraft.Sim/EnemyAI.cs
@@ -21,8 +21,8 @@ namespace Statecraft.Sim
/// 11 June) to 8 July, when Egypt renewed the fighting (first_truce.yaml, ten_days.yaml; the 11 June anchors' `to` in
/// map/units_1948.yaml). The second from 18 July 1948 (second_truce.yaml: 19:00 on 18 July) to 15 October, Operation
/// Yoav (second_truce.yaml; operation_yoav.yaml `from`). The same windows as the map's display-only truce periods
- /// (docs/rules/mvp.md R-ENEMY-006). A stopgap by date: #750 replaces it with the full war state (a refused truce, the
- /// security rung), so a refused truce card does not lift it yet.</summary>
+ /// (docs/rules/mvp.md R-ENEMY-006). This enemy guard remains date-driven in every mode; #750 separately made accepted
+ /// truce cards bind the player's attacks (R-COMBAT-009).</summary>
static readonly (DateTime From, DateTime Until)[] Truces =
{
(new DateTime(1948, 6, 11), new DateTime(1948, 7, 8)),
diff --git a/unity/Assets/Scripts/UI/NavEventLog.cs b/unity/Assets/Scripts/UI/NavEventLog.cs
index 5bf77601a..1b373d2d7 100644
--- a/unity/Assets/Scripts/UI/NavEventLog.cs
+++ b/unity/Assets/Scripts/UI/NavEventLog.cs
@@ -1,4 +1,5 @@
#nullable enable
+using System;
using System.Collections.Generic;
using Statecraft.Game.Boot;
using UnityEngine.InputSystem;
@@ -72,16 +73,15 @@ namespace Statecraft.Game.UI
var card = hud.Q(name);
if (card == null || card.resolvedStyle.display == DisplayStyle.None) continue;
var b = card.worldBound;
- parts.Add($"{name}{Classes(card)} opacity={card.resolvedStyle.opacity:0.00} "
- + $"box=({b.x:0}, {b.y:0}, {b.width:0}x{b.height:0}) enabled={card.enabledInHierarchy}");
+ parts.Add(FormattableString.Invariant($"{name}{Classes(card)} opacity={card.resolvedStyle.opacity:0.00} box=({b.x:0}, {b.y:0}, {b.width:0}x{b.height:0}) enabled={card.enabledInHierarchy}"));
}
return parts.Count == 0 ? "-" : string.Join(" | ", parts);
}
- void OnDown(PointerDownEvent e) => DiagLog.NavLine($"ui pointerdown id={e.pointerId} at ({e.position.x:0}, {e.position.y:0}) target={Name(e.target)} path={Path(e.target)} modals={Modals()}");
- void OnUp(PointerUpEvent e) => DiagLog.NavLine($"ui pointerup id={e.pointerId} at ({e.position.x:0}, {e.position.y:0}) target={Name(e.target)}");
+ void OnDown(PointerDownEvent e) => DiagLog.NavLine(FormattableString.Invariant($"ui pointerdown id={e.pointerId} at ({e.position.x:0}, {e.position.y:0}) target={Name(e.target)} path={Path(e.target)} modals={Modals()}"));
+ void OnUp(PointerUpEvent e) => DiagLog.NavLine(FormattableString.Invariant($"ui pointerup id={e.pointerId} at ({e.position.x:0}, {e.position.y:0}) target={Name(e.target)}"));
void OnClick(ClickEvent e) => DiagLog.NavLine($"ui click count={e.clickCount} target={Name(e.target)}");
- void OnButtonUp(PointerUpEvent e) => DiagLog.NavLine($"button pointerup at ({e.position.x:0}, {e.position.y:0}) on={Name(e.currentTarget)} inside={((VisualElement)e.currentTarget).worldBound.Contains(e.position)}");
+ void OnButtonUp(PointerUpEvent e) => DiagLog.NavLine(FormattableString.Invariant($"button pointerup at ({e.position.x:0}, {e.position.y:0}) on={Name(e.currentTarget)} inside={((VisualElement)e.currentTarget).worldBound.Contains(e.position)}"));
void OnCaptureOut(PointerCaptureOutEvent e) => DiagLog.NavLine($"button capture out on={Name(e.currentTarget)}");
/// <summary>Every raw mouse state event the Input System processes (after any merging), with its position and buttons.</summary>
@@ -90,7 +90,7 @@ namespace Statecraft.Game.UI
if (!(d is Mouse m) || !(e.IsA<StateEvent>() || e.IsA<DeltaStateEvent>())) return;
var at = m.position.ReadValueFromEvent(e);
var left = m.leftButton.ReadValueFromEvent(e);
- DiagLog.NavLine($"raw mouse left={left:0} at ({at.x:0}, {at.y:0}) t={e.time:0.000}");
+ DiagLog.NavLine(FormattableString.Invariant($"raw mouse left={left:0} at ({at.x:0}, {at.y:0}) t={e.time:0.000}"));
}
void OnSubmit(NavigationSubmitEvent e) => DiagLog.NavLine($"ui submit target={Name(e.target)}");
diff --git a/unity/Assets/Scripts/UI/SettingsPresenter.cs b/unity/Assets/Scripts/UI/SettingsPresenter.cs
index fbfa46c4f..d16102205 100644
--- a/unity/Assets/Scripts/UI/SettingsPresenter.cs
+++ b/unity/Assets/Scripts/UI/SettingsPresenter.cs
@@ -1,6 +1,7 @@
#nullable enable
using System;
using System.Collections.Generic;
+using System.Globalization;
using System.IO;
using Statecraft.Game.Map;
using Statecraft.Sim;
@@ -153,7 +154,7 @@ namespace Statecraft.Game.UI
return (b, percent, pick);
});
var storedScale = store?.Read(UiScaleKey);
- int startScale = Array.Find(UiScales, p => p.ToString() == storedScale); // 0 when the file names none of them
+ int startScale = Array.Find(UiScales, p => p.ToString(CultureInfo.InvariantCulture) == storedScale); // 0 when the file names none of them
chosen = startScale > 0 ? startScale : UiScales[0];
ApplyScale(Fits(chosen) ? chosen : UiScales[0]);
// The fit depends on the window's shape, which a resize changes: the offer and the applied scale follow the
@@ -282,7 +283,7 @@ namespace Statecraft.Game.UI
chosen = percent;
ApplyScale(percent);
Show();
- try { store?.Write(UiScaleKey, percent.ToString()); }
+ try { store?.Write(UiScaleKey, percent.ToString(CultureInfo.InvariantCulture)); }
catch (Exception e) when (e is IOException || e is UnauthorizedAccessException)
{
Debug.LogWarning($"Settings: could not keep the UI scale ({e.Message}); it holds until the page is closed");
diff --git a/unity/Assets/Tests/EditMode/TalWeaponsShots.cs b/unity/Assets/Tests/EditMode/TalWeaponsShots.cs
index d6f4811d2..549aa6b1e 100644
--- a/unity/Assets/Tests/EditMode/TalWeaponsShots.cs
+++ b/unity/Assets/Tests/EditMode/TalWeaponsShots.cs
@@ -23,7 +23,7 @@ using Object = UnityEngine.Object;
/// plays the attack as the game does (UnitTokenMotion.PlayAttack; the layer adds the motion only in play mode, so the still
/// adds it the same way) and advances it to half its length; an Animator does not run in edit mode, so every figure's
/// Animator is advanced by hand by the same time. Explicit.</summary>
-[Explicit("writes stills for a pull request, not a check")]
+[Explicit("writes pull-request stills or logs weapon load; not a check")]
public class TalWeaponsShots
{
string saveDir = "";