A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
Advisors: the ten-step turn 1 chain and the moved rows (Refs #2933) (#2943)
Eyal Golan6159614a5796
diff --git a/changelog.d/2933-course-chain.md b/changelog.d/2933-course-chain.mdnew file mode 100644index 000000000..5d8920fa1--- /dev/null+++ b/changelog.d/2933-course-chain.md@@ -0,0 +1,5 @@+### Changed++- The first-turn advisor course is now ten steps: the war and its armies, your cities, how to move and give orders, the+ event card, and End turn (Refs #2933). Objectives and the city's two lines left the chain for turns 3 to 5, one a turn.+ The six new steps are in Hebrew too.diff --git a/docs/WRITING_UI_HE.md b/docs/WRITING_UI_HE.mdindex 7a5be8dfb..66fe0e9b7 100644--- a/docs/WRITING_UI_HE.md+++ b/docs/WRITING_UI_HE.md@@ -42,7 +42,7 @@ Use when writing or reviewing Hebrew for Statecraft: Israel. Never present a pro5. 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, 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).+8. Digits are Latin. Do not type dates or money into a string, except the six sourced citation and credit dates and the one advisor line 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).@@ -112,7 +112,7 @@ For the native reviewer: confirm the maqaf for prefixes before numerals and LatiStatus: 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.+- 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. One advisor line is also an exception: `advisor.opening.invasion.text` types "15 May 1948" in both languages, as its English row does (owner, 8 November 2026: "Keep date, add exception (Recommended)").- 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`).diff --git a/docs/superpowers/specs/2026-10-23-advisors-design.md b/docs/superpowers/specs/2026-10-23-advisors-design.mdindex 1a662ad20..ed5b0fd93 100644--- a/docs/superpowers/specs/2026-10-23-advisors-design.md+++ b/docs/superpowers/specs/2026-10-23-advisors-design.md@@ -10,6 +10,10 @@ Nothing is built until this PR is merged, every slice below is its own PR, and n## What changed in this revision+- **8 November 2026, the new-player course** (section 9.2, issue #2933, PR #2943): the opening chain is rewritten.+ It now opens with the war and teaches turn one on a real unit, in ten steps (nine under gdd-0.3); objectives, a city+ and training leave the chain for queue rows on later turns. Where the older text in sections 9.2, 9.3, 15 and 16+ still describes the seven-step chain, the amendment at the end of section 9.2 governs.- **24 October 2026, the media route** (sections 11 and 12, for the owner's approval): real archival photographs,faithfully colorized, animated with ElevenLabs Kling 3.0 Pro and lip-synced with Sync 3 to voices made as close to thereal people as possible (Fish Audio), English first, with a live disclosure label, a credit per clip and a review of@@ -361,6 +365,57 @@ card opens ("A decision is waiting..."), with the card collapsed and the ring onthe card, the popup steps aside at once, and the card's own text explains the options. When the card closes, the chaingoes on.+**Amended 8 November 2026 (issue #2933, PR #2943).** The owner chose "Rewrite, start now (Recommended)" on 7 November+2026 (recorded at https://github.com/eyalgolan/statecraft-israel/issues/2933#issuecomment-6708639509), on the issue's+question 2, which asked to rewrite this chain. The paragraphs above are kept as the record of the S2 design. The chain+is now the `signal: opening` rows of `unity/Assets/Resources/Advisors/advisor-messages.yaml`, in the order of their+`requires` links, not the file's order (`AdvisorPresenter.cs`, `OrderedChain`). Every file:line in this amendment was+read on #2943's tree after its merge of main `597b9367a`, not on this spec's base.++| # | Row | Advisor | Teaches | File line |+|---|---|---|---|---|+| 1 | `opening.greeting` | Ben-Gurion | The greeting, recorded, unchanged | `:19` |+| 2 | `opening.invasion` | Dayan | The armies that invaded on 15 May 1948; a fallback row | `:22` |+| 3 | `opening.units` | Dayan | Whose units are on the map; select one | `:23` |+| 4 | `opening.cities` | Meyerson | What a city holds; select one | `:24` |+| 5 | `opening.attention` | Ben-Gurion | Attention, recorded, unchanged; left out under gdd-0.3 | `:26` |+| 6 | `opening.move_how` | Dayan | How to move a brigade | `:29` |+| 7 | `opening.move` | Dayan | Moves and routes, recorded, unchanged | `:30` |+| 8 | `opening.orders` | Dayan | Standing orders and what holds up End turn | `:31` |+| 9 | `opening.event` | Ben-Gurion | The event card, recorded, unchanged; only while a card waits | `:32` |+| 10 | `opening.end_turn` | Ben-Gurion | End turn and the report after it; a fallback row | `:33` |++- **Steps.** Ten under gdd-0.1. Under gdd-0.3 step 5 is left out, so the chain has nine (`AdvisorPresenter.cs:478-479`,+ `IncludedInTour`). The event step keeps the rule above: it speaks while the card is collapsed (`when:+ { cards_waiting_at_least: 1 }`, `advisor-messages.yaml:32`), and `EventStep` is 8 (`AdvisorPresenter.cs:457`). The new+ rows' English is `strings.en.yaml:960-965` (`unity/Assets/UI/`); they are text only, with no clip.+- **Rows that left the chain.** `opening.objectives`, `opening.city` and `opening.training` are now `signal:+ course_open` rows with no `requires` (`advisor-messages.yaml:35`, `:27`, `:28`). Each waits for a turn floor,+ `turn_at_least` 3, 4 and 5, and lapses after `lapse_after` 6, 7 and 8, game turns counted from 1+ (`AdvisorCatalog.cs:68-69`; `AdvisorSignals.cs:49` reads `State.Turn + 1`). A teaching row still waiting past its+ last turn goes to the history as missed (`AdvisorQueue.cs:54-62`, `:72`). Their words, clips and approved Hebrew are+ unchanged. Because they left the chain, they also left the chain's replay from the encyclopedia.+- **Fallback.** `opening.invasion` and `opening.end_turn` carry `fallback: course_open` and `lapse_after: 3`+ (`advisor-messages.yaml:22`, `:33`). A player who quit, pressed X or chose Continue before seeing them still gets+ them as queue rows, until game turn 3. A fallback row ignores `requires` (`AdvisorQueue.cs:65-68`, `Eligible`). This+ changes the rule above that the chain never shows on a Continue, for these two rows only. The issue's question 6 was+ put to the owner on 7 November 2026 in one question with questions 3, 4, 5 and 7, which read in part "two steps may+ show as queue rows on Continue or after X" and ended "All as recommended?". The owner chose "All as recommended+ (Recommended)" (recorded at https://github.com/eyalgolan/statecraft-israel/issues/2933#issuecomment-6709091558,+ "the two queue rows are allowed on Continue and after X").+- **course_open.** The signal holds once the chain has opened by itself on a new game, which writes+ `advisor_course=open` to the settings file beside `advisor_opening=seen` (`AdvisorSettings.cs:14`, `:60-74`;+ `AdvisorPresenter.cs:229-239`). A returning player whose chain mark predates the course gets no course rows. The+ help-level gate on that auto-open is #2942's and is recorded in `AdvisorPresenter.cs:234-236`.+- **Hebrew.** The six new rows are `he_review: approved` (`advisor-messages.yaml:22-24`, `:29`, `:31`, `:33`). The+ owner's answers of 8 November 2026, in their words: on the six rows, "Approve all six"; on step 2's date, "Keep date,+ add exception (Recommended)"; on step 10's word for the report, "Use the screen title" (recorded at+ https://github.com/eyalgolan/statecraft-israel/issues/2933#issuecomment-6718317501 and in+ `.superpowers/coordination/handover-1107/OWNER-RULINGS-0811-morning.md:17-19`, which is not tracked).+- **Not decided here.** The advisor on each new row is the agent's choice (#2943, "Calls to check", item 2), not an+ owner ruling. Section 9.3's 17 parity tests describe the old steps; the chain's tests in #2943 are the record of+ what the new chain does.+### 9.3 Parity first, tests migrate firstS2 starts by porting `FirstTurnGuideTests.cs`' 17 tests to the opening chain (the targets, the once-only rule, Continue,diff --git a/unity/Assets/Resources/Advisors/advisor-messages.yaml b/unity/Assets/Resources/Advisors/advisor-messages.yamlindex 96084e74f..1c124703e 100644--- a/unity/Assets/Resources/Advisors/advisor-messages.yaml+++ b/unity/Assets/Resources/Advisors/advisor-messages.yaml@@ -17,13 +17,22 @@ messages:# "Approved". opening.move's Hebrew (text and cue.2, בתורות הבאות) changed with a new approval: native review: owner,# 25 Oct 2026 (recommendations page, item 3).- { id: opening.greeting, advisor: ben_gurion, signal: opening, level: new, he_review: approved, media: { picture: opening.greeting.mp4, narration: { en: opening.greeting.en.wav }, cues: { en: [0.00, 4.31, 6.64] }, label: advisor.media_label, credit: advisor.credit.ben_gurion } }+# #2933: the war and its armies, then the first turn's moves on a real unit. The order is the requires links, not the file's.+# The six new rows' Hebrew was approved by the owner, 8 Nov 2026 ("Approve all six"). A fallback row is what a player who quit or pressed X still gets.+ - { id: opening.invasion, advisor: dayan, signal: opening, level: new, he_review: approved, requires: [opening.greeting], fallback: course_open, lapse_after: 3 }+ - { id: opening.units, advisor: dayan, signal: opening, level: new, he_review: approved, requires: [opening.invasion] }+ - { id: opening.cities, advisor: meyerson, signal: opening, level: new, he_review: approved, requires: [opening.units], actions: [{ encyclopedia: cities }] }# opening.attention and opening.event: copy-fix wording approved by the owner in chat, 24 October 2026, 04:14 UTC: "Approve all 8".- - { id: opening.attention, advisor: ben_gurion, signal: opening, level: new, he_review: approved, requires: [opening.greeting], actions: [{ show_me: attention }, { encyclopedia: attention }], media: { picture: opening.attention.mp4, narration: { en: opening.attention.en.wav }, cues: { en: [0.00, 4.44] }, label: advisor.media_label, credit: advisor.credit.ben_gurion } }- - { id: opening.city, advisor: meyerson, signal: opening, level: new, he_review: approved, requires: [opening.attention], actions: [{ show_me: city_housing }, { encyclopedia: cities }], media: { picture: opening.city.mp4, narration: { en: opening.city.en.wav }, cues: { en: [0.00, 4.81] }, label: advisor.media_label, credit: advisor.credit.meyerson } }- - { id: opening.training, advisor: meyerson, signal: opening, level: new, he_review: approved, requires: [opening.city], actions: [{ show_me: city_training }, { encyclopedia: training }], media: { picture: opening.training.mp4, narration: { en: opening.training.en.wav }, cues: { en: [0.00, 4.52, 8.30] }, label: advisor.media_label, credit: advisor.credit.meyerson } }- - { id: opening.move, advisor: dayan, signal: opening, level: new, he_review: approved, requires: [opening.training], actions: [{ show_me: unit_move }, { encyclopedia: units_movement }], media: { picture: opening.move.mp4, narration: { en: opening.move.en.wav }, cues: { en: [0.00, 5.77] }, label: advisor.media_label, credit: advisor.credit.dayan } }- - { id: opening.event, advisor: ben_gurion, signal: opening, level: new, he_review: approved, requires: [opening.move], when: { cards_waiting_at_least: 1 }, actions: [{ show_me: decision_waiting }, { open_card: true }], media: { picture: opening.event.mp4, narration: { en: opening.event.en.wav }, cues: { en: [0.00, 5.38] }, label: advisor.media_label, credit: advisor.credit.ben_gurion } }- - { id: opening.objectives, advisor: ben_gurion, signal: opening, level: new, he_review: approved, requires: [opening.event], actions: [{ show_me: nav_objectives }, { encyclopedia: objectives }] }+ - { id: opening.attention, advisor: ben_gurion, signal: opening, level: new, he_review: approved, requires: [opening.cities], actions: [{ show_me: attention }, { encyclopedia: attention }], media: { picture: opening.attention.mp4, narration: { en: opening.attention.en.wav }, cues: { en: [0.00, 4.44] }, label: advisor.media_label, credit: advisor.credit.ben_gurion } }+ - { id: opening.city, advisor: meyerson, signal: course_open, level: new, he_review: approved, when: { turn_at_least: 4 }, lapse_after: 7, actions: [{ show_me: city_housing }, { encyclopedia: cities }], media: { picture: opening.city.mp4, narration: { en: opening.city.en.wav }, cues: { en: [0.00, 4.81] }, label: advisor.media_label, credit: advisor.credit.meyerson } }+ - { id: opening.training, advisor: meyerson, signal: course_open, level: new, he_review: approved, when: { turn_at_least: 5 }, lapse_after: 8, actions: [{ show_me: city_training }, { encyclopedia: training }], media: { picture: opening.training.mp4, narration: { en: opening.training.en.wav }, cues: { en: [0.00, 4.52, 8.30] }, label: advisor.media_label, credit: advisor.credit.meyerson } }+ - { id: opening.move_how, advisor: dayan, signal: opening, level: new, he_review: approved, requires: [opening.attention], actions: [{ show_me: unit_move }, { encyclopedia: units_movement }] }+ - { id: opening.move, advisor: dayan, signal: opening, level: new, he_review: approved, requires: [opening.move_how], actions: [{ show_me: unit_move }, { encyclopedia: units_movement }], media: { picture: opening.move.mp4, narration: { en: opening.move.en.wav }, cues: { en: [0.00, 5.77] }, label: advisor.media_label, credit: advisor.credit.dayan } }+ - { id: opening.orders, advisor: dayan, signal: opening, level: new, he_review: approved, requires: [opening.move], actions: [{ show_me: unit_orders }, { encyclopedia: standing_orders }] }+ - { id: opening.event, advisor: ben_gurion, signal: opening, level: new, he_review: approved, requires: [opening.orders], when: { cards_waiting_at_least: 1 }, actions: [{ show_me: decision_waiting }, { open_card: true }], media: { picture: opening.event.mp4, narration: { en: opening.event.en.wav }, cues: { en: [0.00, 5.38] }, label: advisor.media_label, credit: advisor.credit.ben_gurion } }+ - { id: opening.end_turn, advisor: ben_gurion, signal: opening, level: new, he_review: approved, requires: [opening.event], fallback: course_open, lapse_after: 3, actions: [{ show_me: end_turn }, { encyclopedia: turns }] }+# #2933: objectives, opening.city and opening.training left the chain for the turns they are of use in; words and Hebrew unchanged.+ - { id: opening.objectives, advisor: ben_gurion, signal: course_open, level: new, he_review: approved, when: { turn_at_least: 3 }, lapse_after: 6, actions: [{ show_me: nav_objectives }, { encyclopedia: objectives }] }# Spec 6's critical warnings (shown at every help level, Off included) and the defeat lines. Their words and speakers are the# recorded clips' (owner, 24 October 2026: "Adopt clip words"; talking-v3/lines.csv): dayan.city_at_risk isdiff --git a/unity/Assets/Scripts/UI/AdvisorPresenter.cs b/unity/Assets/Scripts/UI/AdvisorPresenter.csindex 2a2ba9ad9..c5c1115c3 100644--- a/unity/Assets/Scripts/UI/AdvisorPresenter.cs+++ b/unity/Assets/Scripts/UI/AdvisorPresenter.cs@@ -174,6 +174,9 @@ namespace Statecraft.Game.UI{openingGame = bridge.Session;adopted = session.Chain.PutBack; session.Chain.PutBack = null;+ // A language switch onto a step that is pending in Hebrew goes on to the next approved one; with none left+ // the step stays and hides.+ if (!chain[session.Chain.Step].ApprovedIn(hebrew) && NextChainStep(session.Chain.Step) is int next and >= 0) session.Chain.Step = next;if (chain[session.Chain.Step].ApprovedIn(hebrew) && this.hooks.Card?.Shown != null && !this.hooks.Card.Collapsed)this.hooks.Card.Collapse(takeFocus: false);RenderChain();@@ -451,7 +454,7 @@ namespace Statecraft.Game.UI}// Original catalogue position, retained for existing callers; runtime routing uses message identity.- public const int EventStep = 5;+ public const int EventStep = 8;public IReadOnlyList<AdvisorCatalog.Message> Chain => chain;public bool InChain => session.Chain.Step >= 0 && IsOpen;public int ChainStep => InChain ? session.Chain.Step : -1;@@ -561,7 +564,14 @@ namespace Statecraft.Game.UIvoid RenderChain(){if (session.Chain.Step < 0) return;- if (Turn != session.Chain.OpenTurn) { CloseChain(hooks.Card?.Shown?.Id == session.Chain.CardEvent); return; }+ if (Turn != session.Chain.OpenTurn)+ {+ // End turn on a step that would come back as a queue row: it was read, on the turn it showed.+ var step = chain[session.Chain.Step];+ if (step.Fallback != "" && ReferenceEquals(Shown, step)) session.Queue.Done(step, session.Chain.OpenTurn, bridge.State.Date);+ CloseChain(hooks.Card?.Shown?.Id == session.Chain.CardEvent);+ return;+ }if (!IncludedInTour(chain[session.Chain.Step])) { ShowStep(session.Chain.Step); return; }if (!chain[session.Chain.Step].ApprovedIn(hebrew)) { Shown = null; Hide(); return; }if (Covered(hudRoot)) { Hide(); return; }diff --git a/unity/Assets/Scripts/UI/AdvisorTargets.cs b/unity/Assets/Scripts/UI/AdvisorTargets.csindex 2c8ec2bfc..f187cb33e 100644--- a/unity/Assets/Scripts/UI/AdvisorTargets.cs+++ b/unity/Assets/Scripts/UI/AdvisorTargets.cs@@ -14,15 +14,15 @@ namespace Statecraft.Game.UI{public const float MoveStepDistanceM = 40000f;public const string Attention = "attention", CityHousing = "city_housing", CityTraining = "city_training",- UnitMove = "unit_move", DecisionWaiting = "decision_waiting";+ UnitMove = "unit_move", UnitOrders = "unit_orders", DecisionWaiting = "decision_waiting", EndTurn = "end_turn";public static string Nav(string screen) => "nav_" + screen.Replace('-', '_');public static IReadOnlyList<string> Names =>- new[] { Attention, CityHousing, CityTraining, UnitMove, DecisionWaiting }.Concat(ScreenNav.Screens.Select(Nav)).ToList();+ new[] { Attention, CityHousing, CityTraining, UnitMove, UnitOrders, DecisionWaiting, EndTurn }.Concat(ScreenNav.Screens.Select(Nav)).ToList();public static bool ShowsCity(string name) => name == CityHousing || name == CityTraining;- public static bool ShowsUnit(string name) => name == UnitMove;+ public static bool ShowsUnit(string name) => name == UnitMove || name == UnitOrders;/// <summary>The shown elements a name points at, as the HUD has them now (the guide's rules, #1265, #1189).</summary>public static IReadOnlyList<VisualElement> Find(VisualElement hudRoot, string name, EventCardPresenter? card)@@ -37,6 +37,8 @@ namespace Statecraft.Game.UIif (host != null) found.AddRange(host.Query<VisualElement>().Where(e => e.name.StartsWith("city-train-", StringComparison.Ordinal) && e.name.EndsWith("-row", StringComparison.Ordinal)).ToList());break;case UnitMove: found.Add(hudRoot.Q("info-move")); break;+ case UnitOrders: foreach (var n in new[] { "info-move", "info-fortify", "info-hold", "info-skip" }) found.Add(hudRoot.Q(n)); break;+ case EndTurn: found.Add(hudRoot.Q("end-turn")); break;case DecisionWaiting: found.Add(card?.Shown != null && card.Collapsed ? hudRoot.Q("event-reopen") : hudRoot.Q("event-options")); break;default:var screen = ScreenNav.Screens.FirstOrDefault(s => Nav(s) == name);diff --git a/unity/Assets/Tests/EditMode/AdvisorGameTests.cs b/unity/Assets/Tests/EditMode/AdvisorGameTests.csindex 0b2ddb3f5..87b30499f 100644--- a/unity/Assets/Tests/EditMode/AdvisorGameTests.cs+++ b/unity/Assets/Tests/EditMode/AdvisorGameTests.cs@@ -131,20 +131,22 @@ public class AdvisorGameTestspublic class AdvisorGameNoAttentionTests{+ static void PastCities(AdvisorPresenter advisor) { for (int i = 0; i < AdvisorTour1688Fixture.PastCities; i++) advisor.NextStep(); }+// R-GOV-002: replacement on the same bridge consults the current session ruleset.[TestCase(Statecraft.Sim.SaveGame.LegacyRuleset)] [TestCase(Statecraft.Sim.SaveGame.GddRuleset)]public void NewSessionRestoresOldTourWithoutLeakingSkippedSeenState(string olderRuleset){- using var rig = new AdvisorTour1688Fixture.Rig(); rig.Advisor.OpenChain(); rig.Advisor.NextStep();- Assert.AreEqual("opening.city", rig.Advisor.Shown?.Id);+ using var rig = new AdvisorTour1688Fixture.Rig(); rig.Advisor.OpenChain(); PastCities(rig.Advisor);+ Assert.AreEqual("opening.move_how", rig.Advisor.Shown?.Id);rig.Bridge.Replace(Statecraft.Sim.GameSession.New(AdvisorTour1688Fixture.Content(olderRuleset), 1, Statecraft.Sim.Mode.Historical));- rig.Advisor.NewGame(); rig.Advisor.OpenChain(); rig.Advisor.NextStep();+ rig.Advisor.NewGame(); rig.Advisor.OpenChain(); PastCities(rig.Advisor);Assert.AreEqual("opening.attention", rig.Advisor.Shown?.Id);Assert.IsFalse(rig.Session.Settings.Seen("opening.attention"));rig.Advisor.NextStep(); Assert.IsTrue(rig.Session.Settings.Seen("opening.attention"));rig.Bridge.Replace(Statecraft.Sim.GameSession.New(AdvisorTour1688Fixture.Content(), 1, Statecraft.Sim.Mode.Historical));- rig.Advisor.NewGame(); rig.Advisor.OpenChain(); rig.Advisor.NextStep();- Assert.AreEqual("opening.city", rig.Advisor.Shown?.Id);+ rig.Advisor.NewGame(); rig.Advisor.OpenChain(); PastCities(rig.Advisor);+ Assert.AreEqual("opening.move_how", rig.Advisor.Shown?.Id);Assert.IsEmpty(System.Linq.Enumerable.Where(rig.Session.Queue.History, e => e.Id == "opening.attention"));}@@ -156,12 +158,12 @@ public class AdvisorGameNoAttentionTestsvar save = game.Save.Write();using (var first = new AdvisorTour1688Fixture.Rig(game: game)){- first.Advisor.OpenChain(); first.Advisor.NextStep(); Assert.AreEqual("opening.city", first.Advisor.Shown?.Id);+ first.Advisor.OpenChain(); PastCities(first.Advisor); Assert.AreEqual("opening.move_how", first.Advisor.Shown?.Id);}var loaded = Statecraft.Sim.GameSession.Load(c, save, out var warnings); Assert.IsEmpty(warnings);using var rig = new AdvisorTour1688Fixture.Rig(game: loaded);rig.Advisor.Resume(); Assert.IsFalse(rig.Advisor.InChain);- rig.Advisor.OpenChain(); rig.Advisor.NextStep(); Assert.AreEqual("opening.city", rig.Advisor.Shown?.Id);+ rig.Advisor.OpenChain(); PastCities(rig.Advisor); Assert.AreEqual("opening.move_how", rig.Advisor.Shown?.Id);rig.Advisor.CloseChain(); Assert.IsFalse(rig.Session.Settings.Seen("opening.attention"));Assert.AreEqual(save, loaded.Save.Write()); Assert.IsEmpty(rig.Bridge.Queued);}diff --git a/unity/Assets/Tests/EditMode/AdvisorOpeningParityTests.cs b/unity/Assets/Tests/EditMode/AdvisorOpeningParityTests.csindex efef71b1d..6f7f6c237 100644--- a/unity/Assets/Tests/EditMode/AdvisorOpeningParityTests.cs+++ b/unity/Assets/Tests/EditMode/AdvisorOpeningParityTests.cs@@ -27,6 +27,8 @@ public class AdvisorOpeningParityTests// Approval is a test-only in-memory copy; no shipped review field is changed.static AdvisorCatalog Approved() => AdvisorCatalog.Parse(File.ReadAllText(AdvisorCatalog.Path).Replace("he_review: pending", "he_review: approved"));static string[] Steps => AdvisorPresenter.ChainIds(AdvisorCatalog.Load()).ToArray();+ /// <summary>The city step of AdvisorTour1688Fixture.WithACityStep.</summary>+ static int CityStep => Array.IndexOf(Steps, "opening.cities");static void Begin(GameRoot game, GameInputs inputs, int smoke, bool startScreen = false){game.Begin(inputs, smoke, startScreen: startScreen);@@ -42,12 +44,12 @@ public class AdvisorOpeningParityTests/// <summary>The info panel and the advisor as GameRoot wires them, without the map: the advisor's city (CityHex) and its unit/// (UnitToShow, among the tokens a new game draws) shown as a click would show them.</summary>static (InfoPanelPresenter info, AdvisorPresenter advisor) PanelAndAdvisor(VisualElement root, SimBridge bridge, UiText text,- SettingsStore? settings, EventCardPresenter card, Action closeScreens)+ SettingsStore? settings, EventCardPresenter card, Action closeScreens, AdvisorCatalog? catalog = null){var tokens = UnitRoster.FromState(UnitRows, bridge.Content, bridge.State, _ => true, (row, a, q, r) => a);PlacedToken? shown = null;var info = new InfoPanelPresenter(root, bridge, text, Names(), selectedUnit: () => shown);- var session = new AdvisorSession(Approved(), new AdvisorSettings(settings), autoShow: true);+ var session = new AdvisorSession(catalog ?? Approved(), new AdvisorSettings(settings), autoShow: true);var advisor = new AdvisorPresenter(root, bridge, text, session, hooks: new AdvisorHooks{Card = card, CloseScreens = closeScreens,@@ -189,6 +191,7 @@ public class AdvisorOpeningParityTestspublic void ALanguageSwitchOnTheCityStepStillPutsBackTheSelectionItFound(){var game = OpenScene(new SaveStore(TempDir()), new SettingsStore(TempDir()));+ game.AdvisorCatalogForTests = AdvisorTour1688Fixture.WithACityStep();Begin(game, Inputs, 0, startScreen: true); UiTestKit.Press(Ui.Q<Button>("start-new-game"));game.Advisor!.CloseChain();var map = Object.FindFirstObjectByType<MapScene>(); var bridge = game.Bridge!;@@ -197,12 +200,12 @@ public class AdvisorOpeningParityTestsGameRoot.OnHexClicked(map, game.Units!, game.Info!, hex.Item1, hex.Item2);Assert.AreEqual(hex, game.Info!.Selected, "precondition: the player's hex");game.Advisor.OpenChain();- for (int i = 0; i < 2; i++) UiTestKit.Press(Ui.Q<Button>("advisor-got-it"));+ for (int i = 0; i < CityStep; i++) UiTestKit.Press(Ui.Q<Button>("advisor-got-it"));Assert.AreEqual(city, game.Info!.Selected, "precondition: the city step shows its city");UiTestKit.Press(Ui.Q<Button>("nav-settings")); UiTestKit.Press(Ui.Q<Button>("settings-language-he"));if (Ui.Q("root").ClassListContains(ScreenNav.ScreenOpenClass)) UiTestKit.Press(Ui.Q<Button>("nav-settings"));- Assert.IsTrue(game.Advisor!.InChain, "the rebuilt chain"); Assert.AreEqual("opening.city", Steps[game.Advisor.ChainStep]);+ Assert.IsTrue(game.Advisor!.InChain, "the rebuilt chain"); Assert.AreEqual("opening.cities", Steps[game.Advisor.ChainStep]);Assert.AreEqual(city, game.Info!.Selected, "shows its city again");UiTestKit.Press(Ui.Q<Button>("advisor-close"));Assert.AreEqual(hex, game.Info!.Selected, "closing puts back the player's hex");@@ -214,6 +217,7 @@ public class AdvisorOpeningParityTestspublic void ClosingPutsBackAnOpenPioneerCard(){var game = OpenScene(new SaveStore(TempDir()), new SettingsStore(TempDir()));+ game.AdvisorCatalogForTests = AdvisorTour1688Fixture.WithACityStep();Begin(game, Inputs, 0, startScreen: true); UiTestKit.Press(Ui.Q<Button>("start-new-game"));game.Advisor!.CloseChain();var bridge = game.Bridge!; var info = game.Info!; var units = game.Units!;@@ -225,7 +229,7 @@ public class AdvisorOpeningParityTestsvoid OpenCityStep(){game.Advisor!.OpenChain();- for (int i = 0; i < 2; i++) UiTestKit.Press(Ui.Q<Button>("advisor-got-it"));+ for (int i = 0; i < CityStep; i++) UiTestKit.Press(Ui.Q<Button>("advisor-got-it"));Assert.AreEqual(city, info.Selected, "precondition: the city step shows its city");Assert.IsNull(info.Pioneer, "precondition: the advisor's city, not the pioneer card");}@@ -263,14 +267,14 @@ public class AdvisorOpeningParityTestspublic readonly InfoPanelPresenter Info;readonly List<IDisposable> owned = new List<IDisposable>();- public Rig(UiText text, SettingsStore? settings = null)+ public Rig(UiText text, SettingsStore? settings = null, AdvisorCatalog? catalog = null){Ui.Root.Q("root").RemoveFromClassList("loading");Bridge = new SimBridge(GameSession.New(C, GoldenRun.Seed, Mode.Historical), text);owned.Add(new HudPresenter(Ui.Root, Bridge, text));Nav = Own(new ScreenNav(Ui.Root));Card = Own(new EventCardPresenter(Ui.Root, Bridge, text, null));- var (info, advisor) = PanelAndAdvisor(Ui.Root, Bridge, text, settings, Card, () => Nav.Close());+ var (info, advisor) = PanelAndAdvisor(Ui.Root, Bridge, text, settings, Card, () => Nav.Close(), catalog);Info = Own(info);Advisor = Own(advisor);Own(new EncyclopediaPresenter(Ui.Root, text, AdvisorCatalog.Load(), Nav, Advisor));@@ -285,17 +289,16 @@ public class AdvisorOpeningParityTests}}- /// <summary>The seven steps, in the order a player meets them (spec 9.2): the greeting first, then the guide's six with- /// the guide's targets; the move step (#1141, owner, 21 October 2026) after training and before the event card.</summary>+ /// <summary>The ten steps, in the order a player meets them (#2933): the war and its armies, then the moves of the first+ /// turn on a real unit, the card and End turn. Objectives and the city's two lines left for the later turns.</summary>[Test]- public void HasSevenStepsInOrder()+ public void HasTenStepsInOrder(){- CollectionAssert.AreEqual(new[] { "opening.greeting", "opening.attention", "opening.city", "opening.training", "opening.move", "opening.event", "opening.objectives" }, Steps);- Assert.AreEqual(5, AdvisorPresenter.EventStep);- var targets = AdvisorCatalog.Load().Messages.Where(m => m.Signal == AdvisorSignals.Opening)- .Select(m => m.Actions.FirstOrDefault(a => a.ShowMe != "")?.ShowMe ?? "").ToArray();- CollectionAssert.AreEqual(new[] { "", "attention", "city_housing", "city_training", "unit_move", "decision_waiting", "nav_objectives" }, targets,- "the guide's targets, in its order");+ CollectionAssert.AreEqual(new[] { "opening.greeting", "opening.invasion", "opening.units", "opening.cities", "opening.attention", "opening.move_how", "opening.move", "opening.orders", "opening.event", "opening.end_turn" }, Steps);+ Assert.AreEqual(8, AdvisorPresenter.EventStep);+ var targets = Steps.Select(id => AdvisorCatalog.Load().Messages.Single(m => m.Id == id).Actions.FirstOrDefault(a => a.ShowMe != "")?.ShowMe ?? "").ToArray();+ CollectionAssert.AreEqual(new[] { "", "", "", "", "attention", "unit_move", "unit_move", "unit_orders", "decision_waiting", "end_turn" }, targets,+ "each step's target, in order");foreach (var text in new[] { En, He }) foreach (var key in Steps)Assert.IsFalse(string.IsNullOrWhiteSpace(text["advisor." + key + ".text"]), key);}@@ -357,7 +360,7 @@ public class AdvisorOpeningParityTestsAssert.IsNull(AdvisorTargets.UnitToShow(bridge, rows), "no unit can move: none to show");}- /// <summary>Skip at any step closes it; Next walks the seven steps and Done closes it; Escape skips; How to play's button+ /// <summary>Skip at any step closes it; Next walks the ten steps and Done closes it; Escape skips; How to play's button/// opens it again at its first step, closing that screen; each step shows its own strings.</summary>[UnityTest] public IEnumerator CanBeSkippedInEnglish() { yield return CanBeSkippedAtAnyStepAndReopened(false); }[UnityTest] public IEnumerator CanBeSkippedInHebrew() { yield return CanBeSkippedAtAnyStepAndReopened(true); }@@ -372,13 +375,13 @@ public class AdvisorOpeningParityTests{var key = Steps[step];Assert.AreEqual(step, rig.Advisor.ChainStep);- Assert.AreEqual(text.Format("advisor.step", step + 1, 7), rig.Ui.Q<Label>("advisor-count").text);+ Assert.AreEqual(text.Format("advisor.step", step + 1, Steps.Length), rig.Ui.Q<Label>("advisor-count").text);var speaker = AdvisorCatalog.Load().Messages.Single(m => m.Id == key).Advisor;- Assert.AreEqual(text["advisor." + speaker + (step == 2 ? ".name_first" : ".name")], rig.Ui.Q<Label>("advisor-name").text);+ Assert.AreEqual(text["advisor." + speaker + (key == "opening.cities" ? ".name_first" : ".name")], rig.Ui.Q<Label>("advisor-name").text);Assert.AreEqual(text["advisor." + key + ".text"], rig.Ui.Q<Label>("advisor-text").text);- Assert.AreEqual(text[step == 6 ? "advisor.done" : "advisor.next"], rig.Ui.Q<Button>("advisor-got-it").text);+ Assert.AreEqual(text[step == Steps.Length - 1 ? "advisor.done" : "advisor.next"], rig.Ui.Q<Button>("advisor-got-it").text);Assert.IsTrue(rig.Card.Collapsed, "the chain speaks before the card opens");- if (key == "opening.objectives")+ if (key == "opening.end_turn"){// #791: from the advisor's last step the real Objectives button opens the new parts and the standalone goal.CollectionAssert.AreEquivalent(new[] { "railway", "burma_road", "yishuvim", "absorb_immigrants" },@@ -474,6 +477,7 @@ public class AdvisorOpeningParityTestspublic IEnumerator ClosingPutsBackTheSelectionItFound(){var game = OpenScene(new SaveStore(TempDir()), new SettingsStore(TempDir()));+ game.AdvisorCatalogForTests = AdvisorTour1688Fixture.WithACityStep();Begin(game, Inputs, 0, startScreen: true);UiTestKit.Press(Ui.Q<Button>("start-new-game"));var advisor = game.Advisor!; var info = game.Info!; var units = game.Units!; var bridge = game.Bridge!;@@ -482,8 +486,8 @@ public class AdvisorOpeningParityTestsbool Outlined() { var t = map.Terrain.transform.Find(MapScene.SelectionName); return t != null && t.GetComponent<MeshRenderer>().enabled; }void ToCity(){- for (int i = 0; i < 2; i++) UiTestKit.Press(Ui.Q<Button>("advisor-got-it")); // past the greeting and Attention- Assert.AreEqual(city, info.Selected, "step 3 shows the advisor's city");+ for (int i = 0; i < CityStep; i++) UiTestKit.Press(Ui.Q<Button>("advisor-got-it"));+ Assert.AreEqual(city, info.Selected, "the city step shows the advisor's city");}void Click(int q, int r) => GameRoot.OnHexClicked(map, units, info, q, r);@@ -499,7 +503,7 @@ public class AdvisorOpeningParityTestsClick(hex.Item1, hex.Item2);Assert.AreEqual(hex, info.Selected, "precondition: a hex selected");advisor.OpenChain(); ToCity();- for (int i = 2; i < Steps.Length; i++) UiTestKit.Press(Ui.Q<Button>("advisor-got-it"));+ for (int i = CityStep; i < Steps.Length; i++) UiTestKit.Press(Ui.Q<Button>("advisor-got-it"));Assert.IsFalse(advisor.InChain, "Done");Assert.AreEqual(hex, info.Selected, "Done: the hex the advisor found");Assert.IsTrue(Outlined(), "outlined again");@@ -547,6 +551,25 @@ public class AdvisorOpeningParityTestsAssert.IsNull(info.Selected, "and no hex");}+ /// <summary>#2933: the unit steps name one unit from step to step, the card keeping Move while the chain walks them.</summary>+ [Test]+ public void TheUnitStepsKeepOneUnitsCard()+ {+ var game = OpenScene(new SaveStore(TempDir()), new SettingsStore(TempDir()));+ Begin(game, Inputs, 0, startScreen: true);+ UiTestKit.Press(Ui.Q<Button>("start-new-game"));+ var advisor = game.Advisor!; var info = game.Info!; var units = game.Units!;+ for (int i = 0; i < Array.IndexOf(Steps, "opening.move_how"); i++) UiTestKit.Press(Ui.Q<Button>("advisor-got-it"));+ var id = AdvisorTargets.UnitToShow(game.Bridge!, units.Tokens.Select(t => t.Token));+ foreach (var step in new[] { "opening.move_how", "opening.move", "opening.orders" })+ {+ Assert.AreEqual(step, Steps[advisor.ChainStep]);+ Assert.AreEqual(id, units.Selected, step); Assert.IsTrue(info.ShowsUnit, step);+ UiTestKit.Press(Ui.Q<Button>("advisor-got-it"));+ }+ Assert.IsNull(units.Selected, "the event step puts it away");+ }+/// <summary>Issue #1392: the move step brings UnitToShow's hex into the map view, clear of the info panel and the advisor's/// card, with at least one of Movement.Reachable's lit destinations visible too. The real scene, camera projection and HUD/// layout are used at the advisor's supported desktop, itch embed and phone sizes, in both UI directions.</summary>@@ -696,21 +719,21 @@ public class AdvisorOpeningParityTestsfor (int i = 0; i < AdvisorPresenter.EventStep; i++) advisor.NextStep();Assert.IsTrue(card.Shown != null && card.Collapsed);UiTestKit.Press(Ui.Q<Button>("advisor-show-me")); Assert.IsFalse(advisor.IsOpen);- card.Collapse(); Assert.AreEqual(5, advisor.ChainStep); Assert.IsTrue(advisor.IsOpen);+ card.Collapse(); Assert.AreEqual(AdvisorPresenter.EventStep, advisor.ChainStep); Assert.IsTrue(advisor.IsOpen);UiTestKit.Press(Ui.Q<Button>("advisor-show-me")); AnswerTheCard();Assert.AreEqual("degania_defence", card.Shown?.Id, "One Army answered, the turn's second card opens (R-EVT-006)");Assert.IsFalse(advisor.IsOpen, "the advisor steps aside while the second card is open, its event step kept");AnswerTheCard();- Assert.IsNull(card.Shown, "the opening turn's two cards answered"); Assert.IsTrue(advisor.InChain); Assert.AreEqual(6, advisor.ChainStep);- Assert.AreEqual(En.Format("advisor.step", 7, 7), Ui.Q<Label>("advisor-count").text, "the count the player was shown stays");- Assert.AreEqual(En["advisor.opening.objectives.text"], Ui.Q<Label>("advisor-text").text, "on to Objectives");+ Assert.IsNull(card.Shown, "the opening turn's two cards answered"); Assert.IsTrue(advisor.InChain); Assert.AreEqual(AdvisorPresenter.EventStep + 1, advisor.ChainStep);+ Assert.AreEqual(En.Format("advisor.step", 10, 10), Ui.Q<Label>("advisor-count").text, "the count the player was shown stays");+ Assert.AreEqual(En["advisor.opening.end_turn.text"], Ui.Q<Label>("advisor-text").text, "on to End turn");for (int i = 0; i < 3; i++) yield return null; // the popup was hidden under the card: styles resolveAssert.AreSame(Ui.Q<Button>("advisor-got-it"), Ui.Q("root").focusController.focusedElement, "Next has the focus again (#1323)");}/// <summary>Path B: the card was answered before the advisor reaches its event step (a returning player opening it from How/// to play, or one who answered it under the advisor): there is no card to explain, so the step is left out and the- /// advisor counts five steps.</summary>+ /// advisor counts nine steps.</summary>[Test]public void WithNoCardTheEventStepIsLeftOut(){@@ -727,29 +750,29 @@ public class AdvisorOpeningParityTestsfor (int shown = 1; advisor.InChain; shown++){seen.Add(Steps[advisor.ChainStep]);- Assert.AreEqual(En.Format("advisor.step", shown, 6), Ui.Q<Label>("advisor-count").text, $"step {shown} of six");- Assert.AreEqual(En[shown == 6 ? "advisor.done" : "advisor.next"], Ui.Q<Button>("advisor-got-it").text);- Assert.LessOrEqual(shown, 6, "six steps, then Done");+ Assert.AreEqual(En.Format("advisor.step", shown, 9), Ui.Q<Label>("advisor-count").text, $"step {shown} of nine");+ Assert.AreEqual(En[shown == 9 ? "advisor.done" : "advisor.next"], Ui.Q<Button>("advisor-got-it").text);+ Assert.LessOrEqual(shown, 9, "nine steps, then Done");UiTestKit.Press(Ui.Q<Button>("advisor-got-it"));}- CollectionAssert.AreEqual(new[] { "opening.greeting", "opening.attention", "opening.city", "opening.training", "opening.move", "opening.objectives" }, seen);+ CollectionAssert.AreEqual(new[] { "opening.greeting", "opening.invasion", "opening.units", "opening.cities", "opening.attention", "opening.move_how", "opening.move", "opening.orders", "opening.end_turn" }, seen);}- /// <summary>The city or unit the advisor shows for steps 2 to 4 is put away when the advisor moves on to a step that does not- /// explain it (the event card, Objectives), with or without a card, so no stale panel stays under the later steps.</summary>+ /// <summary>The unit the advisor shows for its unit steps is put away when the advisor moves on to a step that does not+ /// explain it (the event card, End turn), with or without a card, so no stale panel stays under the later steps.</summary>[Test]- public void LeavingTheMoveStepPutsItsUnitCardAway([Values(false, true)] bool cardAnswered)+ public void LeavingTheLastUnitStepPutsItsUnitCardAway([Values(false, true)] bool cardAnswered){var game = OpenScene(new SaveStore(TempDir()), new SettingsStore(TempDir()));Begin(game, Inputs, 0, startScreen: true);UiTestKit.Press(Ui.Q<Button>("start-new-game"));var advisor = game.Advisor!; var info = game.Info!; var units = game.Units!;if (cardAnswered) { advisor.CloseChain(); AnswerTheOpeningCards(); advisor.OpenChain(); }- var move = Array.IndexOf(Steps, "opening.move");- for (int i = 0; i < move; i++) UiTestKit.Press(Ui.Q<Button>("advisor-got-it"));- Assert.IsTrue(info.ShowsUnit && units.Selected != null, "precondition: the move step shows a unit's card");+ var orders = Array.IndexOf(Steps, "opening.orders");+ for (int i = 0; i < orders; i++) UiTestKit.Press(Ui.Q<Button>("advisor-got-it"));+ Assert.IsTrue(info.ShowsUnit && units.Selected != null, "precondition: the orders step shows a unit's card");UiTestKit.Press(Ui.Q<Button>("advisor-got-it"));- Assert.AreEqual(cardAnswered ? "opening.objectives" : "opening.event", Steps[advisor.ChainStep]);+ Assert.AreEqual(cardAnswered ? "opening.end_turn" : "opening.event", Steps[advisor.ChainStep]);Assert.IsFalse(info.ShowsUnit, "the unit's card is put away");Assert.IsNull(units.Selected, "and its unit unselected, as the advisor found it");Assert.IsNull(info.Selected, "with no hex shown either");@@ -789,9 +812,9 @@ public class AdvisorOpeningParityTests[Test]public void TheGameChangingKeepsThePlayersSelectionOnAStep(){- using var rig = new Rig(En, new SettingsStore(TempDir()));- rig.Advisor.OpenChain(); rig.Advisor.NextStep(); rig.Advisor.NextStep();- Assert.AreEqual("opening.city", Steps[rig.Advisor.ChainStep], "precondition: the city step");+ using var rig = new Rig(En, new SettingsStore(TempDir()), AdvisorTour1688Fixture.WithACityStep());+ rig.Advisor.OpenChain(); for (int i = 0; i < CityStep; i++) rig.Advisor.NextStep();+ Assert.AreEqual("opening.cities", Steps[rig.Advisor.ChainStep], "precondition: the city step");var city = AdvisorTargets.CityHex(rig.Bridge.Content, rig.Bridge.State)!.Value;Assert.AreEqual(city, rig.Info.Selected, "precondition: it shows its city");var other = rig.Bridge.Content.Hexes.Where(h => h.Land).Select(h => (h.Q, h.R)).First(h => h != city);@@ -800,7 +823,7 @@ public class AdvisorOpeningParityTestsAssert.IsNull(rig.Bridge.Queue(new AssignWorkers("tel_aviv", "job", 1)), "precondition: the order is queued");Assert.AreEqual(1, changed, "precondition: the game changed");Assert.AreEqual(other, rig.Info.Selected, "the player's hex stays");- Assert.IsTrue(rig.Advisor.InChain); Assert.AreEqual("opening.city", Steps[rig.Advisor.ChainStep], "on the same step");+ Assert.IsTrue(rig.Advisor.InChain); Assert.AreEqual("opening.cities", Steps[rig.Advisor.ChainStep], "on the same step");rig.Ui.Press("advisor-close");Assert.AreEqual(other, rig.Info.Selected, "and Skip keeps the player's choice");}@@ -844,7 +867,7 @@ public class AdvisorOpeningParityTests/// <summary>Every step's target is on screen, in the window, with the gold ring round it (inside the window) and the panel/// inside the window and clear of it, at 1920x1080 (the one-row bar), 1280x720 and 390x844 (the phone the three-row bar- /// is tuned for), in English and Hebrew, on a new game's first turn (the opening card open). Step 1's ring keeps clear of+ /// is tuned for), in English and Hebrew, on a new game's first turn (the opening card open). Attention's ring keeps clear of/// End turn's border, so the two read as two boxes (review of #1209, follow-up 2).</summary>[UnityTest]public IEnumerator EveryStepPointsAtAVisibleElement()@@ -857,16 +880,19 @@ public class AdvisorOpeningParityTestsstring at = $"{(hebrew ? "he" : "en")} {w}x{h} step {step + 1} ({Steps[step]})";var window = root.worldBound;var targets = Targets(root, advisor, eventCard, step);- if (Steps[step] == "opening.objectives" &&- (targets.Count != 1 || targets[0].name != "nav-objectives"))- problems.Add($"{at}: the last step must point at the Objectives button");+ if (Steps[step] == "opening.end_turn" &&+ (targets.Count != 1 || targets[0].name != "end-turn"))+ problems.Add($"{at}: the last step must point at End turn");+ if (Steps[step] == "opening.orders" &&+ (targets.Count == 0 || targets.Any(t => !new[] { "info-move", "info-fortify", "info-hold", "info-skip" }.Contains(t.name))))+ problems.Add($"{at}: the orders step must point at the unit card's orders, not [{string.Join(", ", targets.Select(t => t.name))}]");if (Steps[step] == "opening.move" &&(targets.Count != 1 || targets[0].name != "info-move" || ((Button)targets[0]).text != (hebrew ? He : En)["unit.order.move"]))problems.Add($"{at}: the move step must point at the unit card's Move button");- if (step == 0)+ if (advisor.Chain[step].Actions.All(a => a.ShowMe == "")){- if (targets.Count != 0 || root.Q("advisor-ring").resolvedStyle.display == DisplayStyle.Flex) problems.Add($"{at}: greeting has a ring");- if (!Inside(root.Q("advisor-popup").worldBound, window)) problems.Add($"{at}: greeting popup outside window");+ if (targets.Count != 0 || root.Q("advisor-ring").resolvedStyle.display == DisplayStyle.Flex) problems.Add($"{at}: a step with no target has a ring");+ if (!Inside(root.Q("advisor-popup").worldBound, window)) problems.Add($"{at}: popup outside window");return;}if (targets.Count == 0) { problems.Add($"{at}: no target shows"); return; }@@ -878,9 +904,9 @@ public class AdvisorOpeningParityTests{if (!Inside(area, ring.worldBound)) problems.Add($"{at}: the ring {ring.worldBound} is not round the target {area}");if (!Inside(ring.worldBound, window)) problems.Add($"{at}: the ring {ring.worldBound} leaves the window {window}");- // Step 1's ring round Attention must read as its own box, not one with End turn's gold border under it.+ // The ring round Attention must read as its own box, not one with End turn's gold border under it.var endTurn = root.Q("end-turn").worldBound;- if (step == 1 && Gap(ring.worldBound, endTurn) < RingClearPx)+ if (Steps[step] == "opening.attention" && Gap(ring.worldBound, endTurn) < RingClearPx)problems.Add($"{at}: the ring {ring.worldBound} is {Gap(ring.worldBound, endTurn):0.#} px from End turn {endTurn} (under {RingClearPx})");}var panel = root.Q("advisor-popup").worldBound;@@ -1039,7 +1065,7 @@ public class AdvisorOpeningNoAttentionParityTestsvar id = AdvisorTour1688Fixture.Visible[n]; Assert.AreEqual(id, rig.Advisor.Shown?.Id);var index = rig.Session.Chain.Step; rig.Rebuild(!startsHebrew);Assert.AreEqual(id, rig.Advisor.Shown?.Id); Assert.AreEqual(index, rig.Advisor.ChainStep);- Assert.AreEqual(AdvisorTour1688Fixture.Text(!startsHebrew).Format("advisor.step", n + 1, 6), rig.Ui.Q<Label>("advisor-count").text);+ Assert.AreEqual(AdvisorTour1688Fixture.Text(!startsHebrew).Format("advisor.step", n + 1, AdvisorTour1688Fixture.Visible.Length), rig.Ui.Q<Label>("advisor-count").text);rig.Rebuild(startsHebrew); Assert.AreEqual(id, rig.Advisor.Shown?.Id); rig.Advisor.NextStep();}Assert.IsFalse(rig.Advisor.InChain); Assert.AreEqual("player", rig.Selection);@@ -1052,21 +1078,23 @@ public class AdvisorOpeningNoAttentionParityTestspublic void BackwardRetainedStepRestorationNeverRendersAttention(){using var rig = new AdvisorTour1688Fixture.Rig(); rig.Advisor.OpenChain();- rig.Advisor.NextStep(); Assert.AreEqual("opening.city", rig.Advisor.Shown?.Id);- foreach (var index in new[] { 0, 1, 0, 2 })+ for (int i = 0; i < AdvisorTour1688Fixture.PastCities; i++) rig.Advisor.NextStep();+ Assert.AreEqual("opening.move_how", rig.Advisor.Shown?.Id);+ var attention = AdvisorPresenter.ChainIds(rig.Session.Catalog).ToList().IndexOf("opening.attention");+ foreach (var index in new[] { 0, attention, 0, attention + 1 }){rig.Advisor.Dispose(); rig.Session.Chain.Step = index; rig.Rebuild(false);- Assert.AreEqual(index < 1 ? "opening.greeting" : "opening.city", rig.Advisor.Shown?.Id);+ Assert.AreEqual(index < 1 ? "opening.greeting" : "opening.move_how", rig.Advisor.Shown?.Id);Assert.IsFalse(rig.Session.Settings.Seen("opening.attention"));}}- // R-GOV-002: the event message opens the card, after four visible predecessors.+ // R-GOV-002: the event message opens the card, after its visible predecessors.[TestCase(false)] [TestCase(true)]public void EventMessageOpensTheCardAndResumesAfterBothSyntheticDecisions(bool he){using var rig = new AdvisorTour1688Fixture.Rig(he); rig.Advisor.OpenChain();- foreach (var id in AdvisorTour1688Fixture.Visible.Take(4))+ foreach (var id in AdvisorTour1688Fixture.Visible.Take(7)){Assert.AreEqual(id, rig.Advisor.Shown?.Id); Assert.IsTrue(rig.Card.Collapsed); rig.Advisor.NextStep();}@@ -1076,12 +1104,12 @@ public class AdvisorOpeningNoAttentionParityTestsrig.Ui.Press("advisor-show-me"); UiTestKit.Press(rig.Ui.Root.Q("event-options").Query<Button>().First());Assert.AreEqual("tour_test_b", rig.Card.Shown?.Id); Assert.IsFalse(rig.Advisor.IsOpen);UiTestKit.Press(rig.Ui.Root.Q("event-options").Query<Button>().First());- Assert.IsNull(rig.Card.Shown); Assert.AreEqual("opening.objectives", rig.Advisor.Shown?.Id);- Assert.AreEqual(AdvisorTour1688Fixture.Text(he).Format("advisor.step", 6, 6), rig.Ui.Q<Label>("advisor-count").text);+ Assert.IsNull(rig.Card.Shown); Assert.AreEqual("opening.end_turn", rig.Advisor.Shown?.Id);+ Assert.AreEqual(AdvisorTour1688Fixture.Text(he).Format("advisor.step", 9, 9), rig.Ui.Q<Label>("advisor-count").text);Assert.IsTrue(rig.Advisor.IsOpen); Assert.AreEqual("player", rig.Selection);}- // R-GOV-002: a missing decision is another skip; requires cannot block objectives.+ // R-GOV-002: a missing decision is another skip; requires cannot block the step after it.[Test]public void NoDecisionSkipsEventWithoutBlockingObjectives(){@@ -1089,7 +1117,7 @@ public class AdvisorOpeningNoAttentionParityTestsUiTestKit.Press(rig.Ui.Root.Q("event-options").Query<Button>().First());UiTestKit.Press(rig.Ui.Root.Q("event-options").Query<Button>().First());rig.Advisor.OpenChain(); var ids = new List<string>();- while (rig.Advisor.InChain) { ids.Add(rig.Advisor.Shown!.Id); Assert.LessOrEqual(ids.Count, 5); rig.Advisor.NextStep(); }+ while (rig.Advisor.InChain) { ids.Add(rig.Advisor.Shown!.Id); Assert.LessOrEqual(ids.Count, 8); rig.Advisor.NextStep(); }CollectionAssert.AreEqual(AdvisorTour1688Fixture.Visible.Where(id => id != "opening.event"), ids);}}@@ -1107,14 +1135,14 @@ public class AdvisorOpeningEventIdentityTests.Replace("\npages:\n", "\n - { id: opening.detour, advisor: ben_gurion, signal: opening, level: new, he_review: approved, requires: [opening.move], when: { cards_waiting_at_least: 99 } }\n\npages:\n");using var rig = new AdvisorTour1688Fixture.Rig(catalog: AdvisorCatalog.Parse(yaml));rig.Advisor.OpenChain();- for (int i = 0; i < 4; i++) rig.Advisor.NextStep();+ for (int i = 0; i < 7; i++) rig.Advisor.NextStep();Assert.AreEqual("opening.event", rig.Advisor.Shown?.Id);Assert.AreNotEqual(AdvisorPresenter.EventStep, rig.Advisor.ChainStep, "shifted catalogue precondition");rig.Ui.Press("advisor-show-me");UiTestKit.Press(rig.Ui.Root.Q("event-options").Query<Button>().First());UiTestKit.Press(rig.Ui.Root.Q("event-options").Query<Button>().First());- Assert.AreEqual("opening.objectives", rig.Advisor.Shown?.Id);- Assert.AreEqual(AdvisorTour1688Fixture.Text(false).Format("advisor.step", 6, 6), rig.Ui.Q<Label>("advisor-count").text);+ Assert.AreEqual("opening.end_turn", rig.Advisor.Shown?.Id);+ Assert.AreEqual(AdvisorTour1688Fixture.Text(false).Format("advisor.step", 9, 9), rig.Ui.Q<Label>("advisor-count").text);Assert.IsTrue(rig.Advisor.IsOpen);}@@ -1123,7 +1151,7 @@ public class AdvisorOpeningEventIdentityTestspublic void ClosingEventRestoresTheOriginallyCollapsedCard(){using var rig = new AdvisorTour1688Fixture.Rig(); rig.Card.Collapse(); rig.Advisor.OpenChain();- for (int i = 0; i < 4; i++) rig.Advisor.NextStep();+ for (int i = 0; i < 7; i++) rig.Advisor.NextStep();Assert.AreEqual("opening.event", rig.Advisor.Shown?.Id);rig.Ui.Press("advisor-show-me"); Assert.IsFalse(rig.Card.Collapsed);rig.Advisor.CloseChain(); Assert.IsTrue(rig.Card.Collapsed);@@ -1151,7 +1179,7 @@ public class AdvisorOpeningNoAttentionGameRootTests// R-GOV-002 / #1688 S1: Settings invokes GameRoot.SwitchLanguage -> Begin(keep: Bridge),// rebuilding the HUD, localized bridge, card and advisor, not just the advisor presenter.- // Red-first: base reaches opening.attention instead of opening.city after the first Next.+ // Red-first: base reaches opening.attention instead of the step after it.[Test]public void SettingsRebuildKeepsGdd03TourIdentityAndRestoresCardAndSelection(){@@ -1160,8 +1188,7 @@ public class AdvisorOpeningNoAttentionGameRootTestsvar settings = new SettingsStore(TempDir());var game = AdvisorGameTests.OpenScene(new SaveStore(TempDir()), settings);game.Language = UiLanguage.English;- game.AdvisorCatalogForTests = AdvisorCatalog.Parse(File.ReadAllText(AdvisorCatalog.Path)- .Replace("he_review: pending", "he_review: approved"));+ game.AdvisorCatalogForTests = AdvisorTour1688Fixture.WithACityStep();game.Begin(inputs, 0, startScreen: true);UiTestKit.Press(Ui.Q<Button>("start-new-game"));game.Advisor!.CloseChain();@@ -1176,10 +1203,10 @@ public class AdvisorOpeningNoAttentionGameRootTests.First(h => h != city && game.Units!.UnitToSelectAt(h.Item1, h.Item2) == null);GameRoot.OnHexClicked(map, game.Units!, game.Info!, hex.Item1, hex.Item2);Assert.AreEqual(hex, game.Info!.Selected, "the player's selection before the tour");- game.Advisor.OpenChain(); game.Advisor.NextStep();- Assert.AreEqual("opening.city", game.Advisor.Shown?.Id);+ game.Advisor.OpenChain(); for (int i = 0; i < 3; i++) game.Advisor.NextStep();+ Assert.AreEqual("opening.cities", game.Advisor.Shown?.Id);Assert.AreEqual(city, game.Info.Selected, "the tour temporarily selects its city");- RoundTrip("opening.city", 2);+ RoundTrip("opening.cities", 4);Assert.AreEqual(city, game.Info!.Selected, "the rebuilt city step selects its city again");game.Advisor!.CloseChain();Assert.AreEqual(hex, game.Info.Selected, "closing restores the player's selection in the rebuilt info panel");@@ -1194,7 +1221,7 @@ public class AdvisorOpeningNoAttentionGameRootTestsAssert.IsFalse(game.AdvisorSession!.Settings.Seen("opening.attention"));if (id == "opening.event"){- RoundTrip(id, 5);+ RoundTrip(id, 8);UiTestKit.Press(Ui.Q<Button>("advisor-show-me"));Assert.AreEqual("tour_test_a", game.Card!.Shown?.Id);Assert.IsFalse(game.Card.Collapsed, "the rebuilt event action opens the same decision by identity");@@ -1232,7 +1259,7 @@ public class AdvisorOpeningNoAttentionGameRootTestsAssert.IsTrue(game.Advisor!.InChain);Assert.AreEqual(id, game.Advisor.Shown?.Id); Assert.AreEqual(index, game.Advisor.ChainStep);Assert.AreNotEqual("opening.attention", game.Advisor.Shown?.Id);- Assert.AreEqual(AdvisorTour1688Fixture.Text(language == UiLanguage.Hebrew).Format("advisor.step", position, 6),+ Assert.AreEqual(AdvisorTour1688Fixture.Text(language == UiLanguage.Hebrew).Format("advisor.step", position, AdvisorTour1688Fixture.Visible.Length),Ui.Q<Label>("advisor-count").text);Assert.AreEqual("tour_test_a", game.Card!.Shown?.Id); Assert.IsTrue(game.Card.Collapsed);AssertNoAttention();diff --git a/unity/Assets/Tests/EditMode/AdvisorOpeningTests.cs b/unity/Assets/Tests/EditMode/AdvisorOpeningTests.csindex 39cee320b..1b93c612e 100644--- a/unity/Assets/Tests/EditMode/AdvisorOpeningTests.cs+++ b/unity/Assets/Tests/EditMode/AdvisorOpeningTests.cs@@ -51,10 +51,10 @@ public class AdvisorOpeningTests}[Test]- public void HasSevenStepsInOrder()+ public void HasTenStepsInOrder(){- CollectionAssert.AreEqual(new[] { "opening.greeting", "opening.attention", "opening.city", "opening.training", "opening.move", "opening.event", "opening.objectives" }, AdvisorPresenter.ChainIds(AdvisorCatalog.Load()));- Assert.AreEqual(5, AdvisorPresenter.EventStep);+ CollectionAssert.AreEqual(new[] { "opening.greeting", "opening.invasion", "opening.units", "opening.cities", "opening.attention", "opening.move_how", "opening.move", "opening.orders", "opening.event", "opening.end_turn" }, AdvisorPresenter.ChainIds(AdvisorCatalog.Load()));+ Assert.AreEqual(8, AdvisorPresenter.EventStep);}/// <summary>Tell me more on an opening step (#2095 review): the encyclopedia opens on the step's page over the chain, and@@ -63,17 +63,17 @@ public class AdvisorOpeningTestspublic void TellMeMoreOnAnOpeningStepKeepsTheChainOnItsStep(){using var rig = new Rig(En, Store(), tellMeMore: true); rig.Advisor.NewGame();- rig.Advisor.NextStep(); rig.Advisor.NextStep();- Assert.AreEqual(2, rig.Session.Chain.Step); Assert.AreEqual("opening.city", rig.Advisor.Shown?.Id);+ rig.Advisor.NextStep(); rig.Advisor.NextStep(); rig.Advisor.NextStep();+ Assert.AreEqual(3, rig.Session.Chain.Step); Assert.AreEqual("opening.cities", rig.Advisor.Shown?.Id);Assert.AreEqual(DisplayStyle.Flex, rig.Ui.Q<Button>("advisor-more").style.display.value, "the step offers Tell me more");rig.Ui.Press("advisor-more");Assert.AreEqual("encyclopedia", rig.Nav.Current); Assert.AreEqual("cities", rig.Encyclopedia.ShowingPage);- Assert.AreEqual(2, rig.Session.Chain.Step, "reading the page does not move the chain");+ Assert.AreEqual(3, rig.Session.Chain.Step, "reading the page does not move the chain");rig.Ui.Press("nav-encyclopedia");Assert.IsNull(rig.Nav.Current);Assert.IsTrue(rig.Advisor.InChain, "the chain is still open");- Assert.AreEqual(2, rig.Session.Chain.Step, "on the same step");- Assert.AreEqual("opening.city", rig.Advisor.Shown?.Id);+ Assert.AreEqual(3, rig.Session.Chain.Step, "on the same step");+ Assert.AreEqual("opening.cities", rig.Advisor.Shown?.Id);Assert.IsTrue(rig.Advisor.IsOpen, "and the step shows again");}@@ -175,16 +175,13 @@ public class AdvisorOpeningTestsAssert.IsFalse(pending.Session.Settings.CourseOpen, "Hebrew with every step pending shows no chain");}- /// <summary>#2933, the plan's quit and X case, on an in-memory row only: objectives gets a course_open fallback. After X on- /// the first step it shows as a queue row, comes back from under a layer (its own signal, opening, never holds), and on- /// a Continue it is offered from the settings line alone, with no chain.</summary>+ /// <summary>#2933, the plan's quit and X case: after X on the first step, opening.invasion shows as a queue row, comes back+ /// from under a layer (its own signal, opening, never holds), and on a Continue it is offered from the settings line+ /// alone, with no chain.</summary>[Test]public void AFallbackStepSurvivesXALayerAndAContinue(){- var yaml = File.ReadAllText(AdvisorCatalog.Path);- const string Row = "id: opening.objectives, advisor: ben_gurion, signal: opening,";- StringAssert.Contains(Row, yaml);- var catalog = AdvisorCatalog.Parse(yaml.Replace(Row, Row + " fallback: course_open,"));+ var catalog = AdvisorCatalog.Load();var store = Store();using (var rig = new Rig(En, store, session: new AdvisorSession(catalog, new AdvisorSettings(store), true))){@@ -192,12 +189,12 @@ public class AdvisorOpeningTestsAssert.AreEqual("opening.greeting", rig.Advisor.Shown?.Id);rig.Advisor.CloseChain();rig.Card.Collapse(takeFocus: false);- Assert.AreEqual("opening.objectives", rig.Advisor.Shown?.Id, "X on the first step");+ Assert.AreEqual("opening.invasion", rig.Advisor.Shown?.Id, "X on the first step");Assert.IsTrue(rig.Advisor.IsOpen);rig.Card.Reopen();Assert.IsFalse(rig.Advisor.IsOpen, "under the card");rig.Card.Collapse(takeFocus: false);- Assert.AreEqual("opening.objectives", rig.Advisor.Shown?.Id, "back from under the card");+ Assert.AreEqual("opening.invasion", rig.Advisor.Shown?.Id, "back from under the card");Assert.IsTrue(rig.Advisor.IsOpen);Assert.IsFalse(rig.Session.Queue.History.Any(e => e.Outcome == AdvisorQueue.Outcome.Missed));}@@ -205,7 +202,130 @@ public class AdvisorOpeningTestscontinued.Card.Collapse(takeFocus: false);continued.Advisor.Resume();Assert.IsFalse(continued.Advisor.InChain);- Assert.AreEqual("opening.objectives", continued.Advisor.Shown?.Id, "a Continue, not seen yet");+ Assert.AreEqual("opening.invasion", continued.Advisor.Shown?.Id, "a Continue, not seen yet");+ }++ /// <summary>#2933: a player who quits on step 2 finds its two fallback steps on a Continue, one teaching line a turn; End+ /// turn's still has its Show me, as a queue row.</summary>+ [Test]+ public void QuittingOnStepTwoLeavesBothFallbackStepsForAContinue()+ {+ var store = Store();+ using (var rig = new Rig(En, store, session: new AdvisorSession(AdvisorCatalog.Load(), new AdvisorSettings(store), true)))+ {+ rig.Advisor.NewGame(); rig.Advisor.NextStep();+ Assert.AreEqual("opening.invasion", rig.Advisor.Shown?.Id);+ }+ using var continued = new Rig(En, store, session: new AdvisorSession(AdvisorCatalog.Load(), new AdvisorSettings(store), true));+ continued.Card.Collapse(takeFocus: false);+ continued.Advisor.Resume();+ Assert.IsFalse(continued.Advisor.InChain);+ Assert.AreEqual("opening.invasion", continued.Advisor.Shown?.Id);+ continued.Ui.Press("advisor-got-it");+ Assert.IsNull(continued.Advisor.Shown, "one teaching line a turn");+ continued.Bridge.State.Turn = 1; continued.Advisor.Notice(AdvisorSignals.TurnEnded);+ Assert.AreEqual("opening.end_turn", continued.Advisor.Shown?.Id);+ Assert.AreEqual(DisplayStyle.Flex, continued.Ui.Q<Button>("advisor-show-me").style.display.value);+ continued.Ui.Press("advisor-show-me");+ Assert.IsTrue(continued.Ui.Root.Q("root").ClassListContains(AdvisorPresenter.RingClass), "a queue row's Show me rings End turn");+ }++ /// <summary>#2933: X on step 2. The greeting took the first turn's teaching line, so the step comes back on turn 2 and End+ /// turn's on turn 3, its last.</summary>+ [Test]+ public void XOnStepTwoBringsItBackNextTurn()+ {+ var store = Store();+ using var rig = new Rig(En, store, session: new AdvisorSession(AdvisorCatalog.Load(), new AdvisorSettings(store), true));+ rig.Advisor.NewGame(); rig.Advisor.NextStep();+ rig.Ui.Press("advisor-close");+ rig.Card.Collapse(takeFocus: false);+ Assert.IsNull(rig.Advisor.Shown, "one teaching line a turn: the greeting was it");+ rig.Bridge.State.Turn = 1; rig.Advisor.Notice(AdvisorSignals.TurnEnded);+ Assert.AreEqual("opening.invasion", rig.Advisor.Shown?.Id);+ rig.Ui.Press("advisor-got-it");+ rig.Bridge.State.Turn = 2; rig.Advisor.Notice(AdvisorSignals.TurnEnded);+ Assert.AreEqual("opening.end_turn", rig.Advisor.Shown?.Id);+ }++ /// <summary>#2933: End turn pressed on a step that would come back as a queue row: the player has read it (above all step+ /// 10, whose own lesson is to press the button), so it counts as seen, on the turn it was shown.</summary>+ [TestCase("opening.invasion", false)] [TestCase("opening.end_turn", true)]+ public void EndTurnOnAFallbackStepCountsAsSeen(string id, bool last)+ {+ var store = Store();+ using var rig = new Rig(En, store, session: new AdvisorSession(AdvisorCatalog.Load(), new AdvisorSettings(store), true));+ rig.Advisor.NewGame();+ for (int i = 0; rig.Advisor.Shown?.Id != id && i < 10; i++) rig.Advisor.NextStep();+ Assert.AreEqual(id, rig.Advisor.Shown?.Id, "precondition");+ foreach (var unit in rig.Bridge.NeedsOrders.ToList()) rig.Bridge.Skip(unit);+ rig.Bridge.EndTurn();+ Assert.AreEqual(1, rig.Bridge.State.Turn, "precondition: the turn ran");+ Assert.IsFalse(rig.Advisor.InChain);+ Assert.IsTrue(rig.Session.Settings.Seen(id));+ Assert.AreEqual(0, rig.Session.Queue.History.Single(e => e.Id == id).Turn, "the turn it was shown");+ Assert.AreEqual(last, rig.Session.Settings.Seen("opening.end_turn"), "the other fallback step still waits");+ }++ /// <summary>#2933: a language switch is the one way to stand on a step that is pending in Hebrew. The chain goes on to the+ /// next approved step instead of hiding until the turn ends.</summary>+ [Test]+ public void ASwitchToHebrewOnAPendingStepGoesOnToTheNextApprovedStep()+ {+ var store = Store();+ var catalog = AdvisorCatalog.Parse(File.ReadAllText(AdvisorCatalog.Path).Replace("{ id: opening.invasion, advisor: dayan, signal: opening, level: new, he_review: approved", "{ id: opening.invasion, advisor: dayan, signal: opening, level: new, he_review: pending"));+ var ids = AdvisorPresenter.ChainIds(catalog).ToList();+ AdvisorSession session;+ using (var en = new Rig(En, store, session: new AdvisorSession(catalog, new AdvisorSettings(store), true)))+ {+ en.Advisor.NewGame(); en.Advisor.NextStep(); session = en.Session;+ Assert.AreEqual("opening.invasion", en.Advisor.Shown?.Id, "precondition");+ }+ Assert.IsFalse(catalog.Messages.Single(m => m.Id == "opening.invasion").ApprovedIn(true), "precondition: pending");+ var next = ids.Skip(2).First(id => catalog.Messages.Single(m => m.Id == id).ApprovedIn(true));+ using var he = new Rig(He, store, session: session);+ Assert.IsTrue(he.Advisor.InChain); Assert.IsTrue(he.Advisor.IsOpen, "not hidden");+ Assert.AreEqual(next, he.Advisor.Shown?.Id);+ Assert.AreEqual(ids.IndexOf(next), he.Advisor.ChainStep);+ Assert.IsTrue(he.Card.Collapsed);+ }++ /// <summary>#2933: until the owner approves a new step's Hebrew, a Hebrew player walks only the approved ones, counted as+ /// such, and the pending fallback steps never show; they lapse as missed, and leave no Hebrew anywhere.</summary>+ [Test]+ public void HebrewWalksOnlyApprovedStepsAndPendingFallbacksLapse()+ {+ var store = Store(); var catalog = AdvisorCatalog.Load();+ var approved = AdvisorPresenter.ChainIds(catalog).Where(id => catalog.Messages.Single(m => m.Id == id).ApprovedIn(true)).ToList();+ using var rig = new Rig(He, store, session: new AdvisorSession(catalog, new AdvisorSettings(store), true));+ rig.Advisor.NewGame();+ Assert.IsTrue(rig.Advisor.InChain); Assert.IsTrue(rig.Session.Settings.CourseOpen);+ var seen = new List<string>();+ while (rig.Advisor.InChain)+ {+ seen.Add(rig.Advisor.Shown!.Id); Assert.LessOrEqual(seen.Count, approved.Count);+ Assert.AreEqual(He.Format("advisor.step", seen.Count, approved.Count), rig.Ui.Q<Label>("advisor-count").text);+ rig.Advisor.NextStep();+ }+ CollectionAssert.AreEqual(approved, seen);+ rig.Card.Collapse(takeFocus: false);+ foreach (var id in new[] { "opening.invasion", "opening.end_turn" })+ {+ if (catalog.Messages.Single(m => m.Id == id).ApprovedIn(true)) continue; // the owner approved it: nothing to lapse+ for (int turn = 1; turn <= 3; turn++) { rig.Bridge.State.Turn = turn; rig.Advisor.Notice(AdvisorSignals.TurnEnded); Assert.AreNotEqual(id, rig.Advisor.Shown?.Id); }+ Assert.IsTrue(rig.Session.Queue.History.Any(e => e.Id == id && e.Outcome == AdvisorQueue.Outcome.Missed), id);+ Assert.IsFalse(rig.Session.Settings.Seen(id));+ }+ }++ [TestCase("opening.objectives", 3, 6)] [TestCase("opening.city", 4, 7)] [TestCase("opening.training", 5, 8)]+ public void AMovedRowLeftTheChainWithItsApprovedHebrew(string id, int floor, int last)+ {+ var catalog = AdvisorCatalog.Load(); var row = catalog.Messages.Single(m => m.Id == id);+ CollectionAssert.DoesNotContain(AdvisorPresenter.ChainIds(catalog), id);+ Assert.AreEqual(AdvisorSignals.CourseOpen, row.Signal); Assert.IsEmpty(row.Requires);+ Assert.AreEqual(floor, row.When["turn_at_least"]); Assert.AreEqual(last, row.LapseAfter);+ Assert.AreEqual(AdvisorCatalog.Approved, row.HeReview);}[Test]@@ -220,7 +340,7 @@ public class AdvisorOpeningTestspublic void EveryStepCanBeSkippedAndTheChainReopened(bool hebrew){using var rig = new Rig(hebrew ? He : En, Store(), approved: true);- for (int step = 0; step < 7; step++)+ for (int step = 0; step < AdvisorPresenter.ChainIds(AdvisorCatalog.Load()).Count; step++){rig.Advisor.OpenChain(); for (int i = 0; i < step; i++) rig.Advisor.NextStep();Assert.AreEqual(step, rig.Advisor.ChainStep); Assert.IsTrue(rig.Card.Collapsed);@@ -253,8 +373,8 @@ public class AdvisorOpeningTestsUiTestKit.Press(rig.Ui.Root.Q("event-options").Query<Button>().First()); // One ArmyUiTestKit.Press(rig.Ui.Root.Q("event-options").Query<Button>().First()); // then Degania (R-EVT-006)Assert.IsNull(rig.Card.Shown); rig.Advisor.OpenChain(); var seen = new List<string>();- while (rig.Advisor.InChain) { seen.Add(rig.Advisor.Shown!.Id); Assert.LessOrEqual(seen.Count, 6); rig.Advisor.NextStep(); }- CollectionAssert.AreEqual(new[] { "opening.greeting", "opening.attention", "opening.city", "opening.training", "opening.move", "opening.objectives" }, seen);+ while (rig.Advisor.InChain) { seen.Add(rig.Advisor.Shown!.Id); Assert.LessOrEqual(seen.Count, 9); rig.Advisor.NextStep(); }+ CollectionAssert.AreEqual(new[] { "opening.greeting", "opening.invasion", "opening.units", "opening.cities", "opening.attention", "opening.move_how", "opening.move", "opening.orders", "opening.end_turn" }, seen);}[Test]@@ -262,16 +382,16 @@ public class AdvisorOpeningTests{using var rig = new Rig(En, Store()); rig.Advisor.OpenChain();for (int i = 0; i < AdvisorPresenter.EventStep; i++) rig.Advisor.NextStep();- Assert.IsTrue(rig.Card.Collapsed); Assert.AreEqual(5, rig.Advisor.ChainStep);+ Assert.IsTrue(rig.Card.Collapsed); Assert.AreEqual(AdvisorPresenter.EventStep, rig.Advisor.ChainStep);Assert.AreEqual(AdvisorTargets.DecisionWaiting, rig.Advisor.Shown!.Actions.First(a => a.ShowMe != "").ShowMe, "(1) the ring's target: Decision waiting");Assert.IsTrue(rig.Ui.Root.Q("root").ClassListContains(AdvisorPresenter.RingClass), "(1) the ring shows");rig.Ui.Press("advisor-show-me"); Assert.IsFalse(rig.Card.Collapsed); Assert.IsFalse(rig.Advisor.IsOpen);- rig.Card.Collapse(); Assert.IsTrue(rig.Advisor.IsOpen); Assert.AreEqual(5, rig.Advisor.ChainStep);+ rig.Card.Collapse(); Assert.IsTrue(rig.Advisor.IsOpen); Assert.AreEqual(AdvisorPresenter.EventStep, rig.Advisor.ChainStep);rig.Ui.Press("advisor-show-me"); UiTestKit.Press(rig.Ui.Root.Q("event-options").Query<Button>().First());Assert.AreEqual("degania_defence", rig.Card.Shown?.Id, "One Army answered, the turn's second card opens (R-EVT-006)");- Assert.IsFalse(rig.Advisor.IsOpen); Assert.AreEqual(5, rig.Session.Chain.Step, "the advisor waits aside on its event step");+ Assert.IsFalse(rig.Advisor.IsOpen); Assert.AreEqual(AdvisorPresenter.EventStep, rig.Session.Chain.Step, "the advisor waits aside on its event step");UiTestKit.Press(rig.Ui.Root.Q("event-options").Query<Button>().First());- Assert.IsNull(rig.Card.Shown); Assert.AreEqual("opening.objectives", rig.Advisor.Shown!.Id); Assert.IsTrue(rig.Advisor.IsOpen);+ Assert.IsNull(rig.Card.Shown); Assert.AreEqual("opening.end_turn", rig.Advisor.Shown!.Id); Assert.IsTrue(rig.Advisor.IsOpen);}[Test]@@ -287,7 +407,7 @@ public class AdvisorOpeningTestspublic void ClosingAndWalkingTheChainChangeNeitherTheSimNorItsSave(){using var rig = new Rig(En, Store()); var state = rig.Bridge.State.Hash(); var save = rig.Bridge.Session.Save.Write();- rig.Advisor.OpenChain(); for (int i = 0; i < 7; i++) rig.Advisor.NextStep();+ rig.Advisor.OpenChain(); for (int i = 0; i < 10; i++) rig.Advisor.NextStep();Assert.IsFalse(rig.Advisor.InChain); Assert.AreEqual(state, rig.Bridge.State.Hash()); Assert.AreEqual(save, rig.Bridge.Session.Save.Write()); Assert.IsEmpty(rig.Bridge.Queued);}}@@ -296,7 +416,17 @@ public class AdvisorOpeningTests// R-GOV-002 / #1688: isolated test sessions; no shipped selector is changed.internal static class AdvisorTour1688Fixture{- internal static readonly string[] Visible = { "opening.greeting", "opening.city", "opening.training", "opening.move", "opening.event", "opening.objectives" };+ internal static readonly string[] Visible = { "opening.greeting", "opening.invasion", "opening.units", "opening.cities", "opening.move_how", "opening.move", "opening.orders", "opening.event", "opening.end_turn" };+ /// <summary>From the greeting to the step after cities: Attention, or under gdd-0.3 the step past it.</summary>+ internal const int PastCities = 4;+ /// <summary>No shipped step shows a city since #2933, while Show me still does: the tests of that rule give opening.cities one, in memory.</summary>+ internal static AdvisorCatalog WithACityStep()+ {+ const string Cities = "actions: [{ encyclopedia: cities }]";+ var yaml = File.ReadAllText(AdvisorCatalog.Path).Replace("he_review: pending", "he_review: approved");+ StringAssert.Contains(Cities, yaml);+ return AdvisorCatalog.Parse(yaml.Replace(Cities, "actions: [{ show_me: city_housing }, { encyclopedia: cities }]"));+ }internal static UiText Text(bool he) => UiText.Parse(AssetDatabase.LoadAssetAtPath<TextAsset>(he ? UiPaths.StringsHebrew : UiPaths.Strings).text);internal static Content Content(string ruleset = SaveGame.Gdd03Ruleset){@@ -369,8 +499,8 @@ public class AdvisorOpeningNoAttentionTestsvar visited = new List<string>();while (rig.Advisor.InChain){- visited.Add(rig.Advisor.Shown!.Id); Assert.LessOrEqual(visited.Count, 6, "requires must not dead-end or loop");- Assert.AreEqual(AdvisorTour1688Fixture.Text(he).Format("advisor.step", visited.Count, 6), rig.Ui.Q<Label>("advisor-count").text);+ visited.Add(rig.Advisor.Shown!.Id); Assert.LessOrEqual(visited.Count, AdvisorTour1688Fixture.Visible.Length, "requires must not dead-end or loop");+ Assert.AreEqual(AdvisorTour1688Fixture.Text(he).Format("advisor.step", visited.Count, AdvisorTour1688Fixture.Visible.Length), rig.Ui.Q<Label>("advisor-count").text);rig.Advisor.NextStep();}CollectionAssert.AreEqual(AdvisorTour1688Fixture.Visible, visited);@@ -391,7 +521,7 @@ public class AdvisorOpeningNoAttentionTestsforeach (var id in AdvisorTour1688Fixture.Visible){rig.Advisor.OpenChain();- for (int n = 0; rig.Advisor.Shown?.Id != id && n < 6; n++) rig.Advisor.NextStep();+ for (int n = 0; rig.Advisor.Shown?.Id != id && n < AdvisorTour1688Fixture.Visible.Length; n++) rig.Advisor.NextStep();Assert.AreEqual(id, rig.Advisor.Shown?.Id);rig.Ui.Press("advisor-close"); Assert.IsFalse(rig.Advisor.InChain);Assert.AreEqual("player", rig.Selection); Assert.IsFalse(rig.Card.Collapsed);@@ -399,13 +529,66 @@ public class AdvisorOpeningNoAttentionTestsAssert.IsFalse(rig.Session.Settings.Seen("opening.attention"));}+ /// <summary>#2933: the Show me names of the unit steps show a unit as a click would, and closing puts the selection back.</summary>+ [TestCase("opening.move_how")] [TestCase("opening.orders")]+ public void AUnitStepShowsItsUnitAndPutsTheSelectionBack(string id)+ {+ using var rig = new AdvisorTour1688Fixture.Rig();+ rig.Advisor.OpenChain();+ for (int n = 0; rig.Advisor.Shown?.Id != id && n < AdvisorTour1688Fixture.Visible.Length; n++) rig.Advisor.NextStep();+ Assert.AreEqual(id, rig.Advisor.Shown?.Id);+ Assert.AreEqual("unit", rig.Selection);+ rig.Ui.Press("advisor-close");+ Assert.AreEqual("player", rig.Selection);+ }++ /// <summary>#2933: the moved rows reach a gdd-0.3 player though opening.attention is never marked there, one a turn from+ /// their floors, in both languages (their Hebrew stayed approved); the walked chain's fallback steps do not come back.</summary>+ [TestCase(false)] [TestCase(true)]+ public void MovedRowsShowFromTheirFloorsAfterTheChain(bool he)+ {+ var store = Store();+ using var rig = new AdvisorTour1688Fixture.Rig(he, store, catalog: AdvisorCatalog.Load());+ rig.Advisor.NewGame(); Assert.IsTrue(rig.Advisor.InChain);+ for (int n = 0; rig.Advisor.InChain && n < 10; n++) rig.Advisor.NextStep();+ Assert.IsFalse(rig.Advisor.InChain);+ rig.Card.Collapse(takeFocus: false);+ string? At(int turn) { rig.Bridge.State.Turn = turn - 1; rig.Advisor.Notice(AdvisorSignals.TurnEnded); return rig.Advisor.Shown?.Id; }+ Assert.IsNull(At(2), "nothing waits on turn 2");+ Assert.AreEqual("opening.objectives", At(3)); rig.Ui.Press("advisor-got-it");+ Assert.AreEqual("opening.city", At(4)); rig.Ui.Press("advisor-got-it");+ Assert.AreEqual("opening.training", At(5)); rig.Ui.Press("advisor-got-it");+ Assert.IsNull(At(6));+ Assert.IsFalse(rig.Session.Settings.Seen("opening.attention"));+ }++ /// <summary>#2933: a moved row not reached by its last turn is gone, the others keep their own days.</summary>+ [Test]+ public void AMovedRowLapsesAfterItsLastTurn()+ {+ var store = Store();+ using var rig = new AdvisorTour1688Fixture.Rig(false, store, catalog: AdvisorCatalog.Load());+ rig.Advisor.NewGame();+ for (int n = 0; rig.Advisor.InChain && n < 10; n++) rig.Advisor.NextStep();+ rig.Card.Collapse(takeFocus: false);+ rig.Bridge.State.Turn = 6; rig.Advisor.Notice(AdvisorSignals.TurnEnded); // game turn 7: objectives' last was 6+ Assert.AreEqual("opening.city", rig.Advisor.Shown?.Id, "its last turn");+ rig.Ui.Press("advisor-got-it");+ rig.Bridge.State.Turn = 7; rig.Advisor.Notice(AdvisorSignals.TurnEnded);+ Assert.AreEqual("opening.training", rig.Advisor.Shown?.Id, "its last turn");+ rig.Ui.Press("advisor-got-it");+ rig.Bridge.State.Turn = 8; rig.Advisor.Notice(AdvisorSignals.TurnEnded);+ Assert.IsNull(rig.Advisor.Shown);+ Assert.IsFalse(rig.Session.Settings.Seen("opening.objectives"));+ }+// R-GOV-002: new controls; every original old-mode test above is untouched.[TestCase(SaveGame.LegacyRuleset)] [TestCase(SaveGame.GddRuleset)]public void OlderSessionsStillTraverseAndRememberAttention(string ruleset){using var rig = new AdvisorTour1688Fixture.Rig(ruleset: ruleset);rig.Advisor.OpenChain(); var ids = new List<string>();- while (rig.Advisor.InChain) { ids.Add(rig.Advisor.Shown!.Id); Assert.LessOrEqual(ids.Count, 7); rig.Advisor.NextStep(); }+ while (rig.Advisor.InChain) { ids.Add(rig.Advisor.Shown!.Id); Assert.LessOrEqual(ids.Count, 10); rig.Advisor.NextStep(); }CollectionAssert.AreEqual(AdvisorPresenter.ChainIds(rig.Session.Catalog), ids);Assert.IsTrue(rig.Session.Settings.Seen("opening.attention"));Assert.IsTrue(rig.Session.Queue.History.Any(e => e.Id == "opening.attention"));@@ -425,7 +608,8 @@ public class AdvisorOpeningNoAttentionPreferenceTestsvar store = new SettingsStore(path); store.Write(AdvisorSettings.OpeningKey, "seen");using var rig = new AdvisorTour1688Fixture.Rig(store: store);rig.Advisor.NewGame(); Assert.IsFalse(rig.Advisor.InChain);- rig.Advisor.OpenChain(); rig.Advisor.NextStep(); Assert.AreEqual("opening.city", rig.Advisor.Shown?.Id);+ rig.Advisor.OpenChain(); for (int i = 0; i < AdvisorTour1688Fixture.PastCities; i++) rig.Advisor.NextStep();+ Assert.AreEqual("opening.move_how", rig.Advisor.Shown?.Id);Assert.IsFalse(new AdvisorSettings(store).Seen("opening.attention"));}finally { if (Directory.Exists(path)) Directory.Delete(path, true); }diff --git a/unity/Assets/Tests/EditMode/AdvisorShowMeTests.cs b/unity/Assets/Tests/EditMode/AdvisorShowMeTests.csindex 6f177822c..ead2e9821 100644--- a/unity/Assets/Tests/EditMode/AdvisorShowMeTests.cs+++ b/unity/Assets/Tests/EditMode/AdvisorShowMeTests.cs@@ -32,6 +32,16 @@ public class AdvisorShowMeTests});}+ /// <summary>#2933: End turn is a target of its own, and the unit card's orders show their unit first (the chain's step 8).</summary>+ [UnityTest]+ public IEnumerator EndTurnAndTheUnitOrdersAreNamed()+ {+ CollectionAssert.Contains(AdvisorTargets.Names, "end_turn"); CollectionAssert.Contains(AdvisorTargets.Names, "unit_orders");+ Assert.IsTrue(AdvisorTargets.ShowsUnit("unit_orders")); Assert.IsFalse(AdvisorTargets.ShowsUnit("end_turn"));+ yield return AdvisorPopupLayoutTests.Shown(1280, 720, false, (root, advisor) =>+ Assert.AreEqual("end-turn", AdvisorTargets.Find(root.Q("root") ?? root, "end_turn", null).Single().name));+ }+[Test]public void ShowMeOnACityShowsItAndPutsTheSelectionBackWhenDone(){@@ -118,7 +128,7 @@ public class AdvisorShowMeNoAttentionTestsrig.Advisor.OpenChain(); int steps = 0;while (rig.Advisor.InChain){- Assert.Less(++steps, 7); Assert.AreNotEqual("opening.attention", rig.Advisor.Shown?.Id);+ Assert.Less(++steps, 10); Assert.AreNotEqual("opening.attention", rig.Advisor.Shown?.Id);Assert.IsFalse(rig.Advisor.Shown!.Actions.Any(a => a.ShowMe == AdvisorTargets.Attention));var caption = rig.Ui.Q<Label>("advisor-text");Assert.AreNotEqual(AdvisorTour1688Fixture.Text(he)["advisor.opening.attention.text"], caption.text);@@ -130,7 +140,7 @@ public class AdvisorShowMeNoAttentionTests}rig.Advisor.NextStep();}- Assert.AreEqual(6, steps);+ Assert.AreEqual(9, steps);if (!he) { Assert.IsNotEmpty(picture.Loaded); Assert.IsNotEmpty(audio); }Assert.IsFalse(picture.Loaded.Concat(audio).Any(url => url.Contains("opening.attention")));Assert.IsFalse(rig.Ui.Root.Q("root").ClassListContains(AdvisorPresenter.RingClass));diff --git a/unity/Assets/Tests/EditMode/AdvisorSignalsTests.cs b/unity/Assets/Tests/EditMode/AdvisorSignalsTests.csindex d8249fb22..b78d010fe 100644--- a/unity/Assets/Tests/EditMode/AdvisorSignalsTests.cs+++ b/unity/Assets/Tests/EditMode/AdvisorSignalsTests.cs@@ -201,6 +201,18 @@ public class AdvisorSignalsTestsAssert.AreEqual(hebrew, he["advisor." + id + ".text"]);}+ /// <summary>#2933's six new course steps, approved by the owner word for word (8 November 2026: "Approve all six"; step 10+ /// ends on the report screen's own title, "Use the screen title"; step 2 keeps its date, "Keep date, add exception+ /// (Recommended)", HE-08). A different text needs a new approval, so it must also set he_review back to pending.</summary>+ [TestCase("opening.invasion", "ב־15 במאי 1948 שלחו מצרים, סוריה ועיראק צבאות אל הארץ. הלגיון הערבי של עבר הירדן, המסומן במפה ״ירדן״, עמד ברמאללה וליד שער הגיא. החטיבות שלכם צריכות לעצור אותם.")]+ [TestCase("opening.units", "צבא לבנון עמד על הגבול, ומתנדבי הליגה הערבית כבר היו כאן. בחרו יחידה כלשהי במפה כדי לראות של מי היא.")]+ [TestCase("opening.cities", "בערים שלכם נמצאים האנשים, המשרות וההכשרה, והעבודה בהן מכניסה כסף. בחרו עיר כדי לראות אותם.")]+ [TestCase("opening.move_how", "כדי לנוע, בחרו חטיבה, לחצו על ״תנועה״ ואז על משבצת מוארת. לחיצה על משבצת רחוקה יותר שולחת אליה את החטיבה במשך כמה תורות.")]+ [TestCase("opening.orders", "חטיבה ללא הוראה מעכבת את ״סיום התור״. ״ביצור״ ו״החזקה״ נשארים עד שתשנו אותם, ומסלול ממשיך מעצמו. ״דילוג על התור״ חל על תור אחד.")]+ [TestCase("opening.end_turn", "כשאף יחידה לא ממתינה להוראות, לחצו על ״סיום התור״. אם הכפתור מציג ״יחידה ממתינה להוראות״, לחיצה עליו תביא אתכם אל היחידה. אחר כך החודש מתנהל, ואחריו מוצג ״מה קרה בתור הזה״.")]+ public void ACourseStepsApprovedHebrewIsTheTextTheOwnerRead(string id, string hebrew) =>+ AnApprovedHebrewLineIsTheTextTheOwnerRead(id, hebrew);+[Test]public void TheEconomySignalsReadTheShownState(){diff --git a/unity/Assets/UI/strings.en.yaml b/unity/Assets/UI/strings.en.yamlindex 9305e2cda..b615e469d 100644--- a/unity/Assets/UI/strings.en.yaml+++ b/unity/Assets/UI/strings.en.yaml@@ -956,6 +956,13 @@ advisor.opening.training.text: "Training uses civilians without work, Money, andadvisor.opening.move.text: "A unit moves at once, and terrain sets the cost of each hex. A farther destination creates a route that continues on later turns."advisor.opening.event.text: "An event card presents a decision and shows its effects. A card left unanswered when the month ends goes to the responsible minister."advisor.opening.objectives.text: "Objectives define the campaign's goals and compare each completion date with its historical date. Completion awards points and opens the objective's event card."+# The war, the armies and the first turn's moves: the plan's copy (#2933), approved with the plan.+advisor.opening.invasion.text: "On 15 May 1948 Egypt, Syria and Iraq sent armies into the country. Transjordan's Arab Legion, marked Jordan on the map, stood at Ramallah and near Bab al-Wad. Your brigades must hold them."+advisor.opening.units.text: "Lebanon's army stood at the border, and the Arab League's volunteers were already here. Select any unit on the map to see whose it is."+advisor.opening.cities.text: "Your cities hold your people, jobs and training, and work there brings in Money. Select a city to see them."+advisor.opening.move_how.text: "To move, select a brigade, press Move, then click a lit hex. Click a farther hex and the brigade goes there over several turns."+advisor.opening.orders.text: "A brigade with no order holds up End turn. Fortify and Hold stay until you change them, and a route carries on by itself. Skip this turn lasts one turn."+advisor.opening.end_turn.text: "When no unit needs orders, press End turn. If the button says a unit needs orders, pressing it takes you to that unit. The month then plays out and a report follows."advisor.next: "Next"advisor.done: "Done"# {0} the step, {1} the steps in the chain now.diff --git a/unity/Assets/UI/strings.he.yaml b/unity/Assets/UI/strings.he.yamlindex 08e8299d2..28cb30f7b 100644--- a/unity/Assets/UI/strings.he.yaml+++ b/unity/Assets/UI/strings.he.yaml@@ -1137,6 +1137,15 @@ advisor.opening.training.text: "אימון והכשרה דורשים אזרחיadvisor.opening.move.text: "יחידה נעה מיד, והשטח קובע את העלות של כל משבצת. יעד רחוק יותר יוצר מסלול שממשיך בתורות הבאות."advisor.opening.event.text: "כרטיס אירוע מציג החלטה ואת השפעותיה. כרטיס שלא נענה בסיום החודש עובר לשר האחראי."advisor.opening.objectives.text: "היעדים מגדירים את מטרות המערכה ומשווים כל תאריך השלמה לתאריך ההיסטורי שלו. השלמה מעניקה נקודות ופותחת את כרטיס האירוע של היעד."+# #2933's steps, agent-drafted: native review: owner, 8 Nov 2026 ("Approve all six"; step 10's report named by the screen+# title, "Use the screen title"; step 2 keeps its date, "Keep date, add exception (Recommended)", HE-08; step 2's+# maqaf, "Use maqaf ב־15 (Recommended)", HE-07).+advisor.opening.invasion.text: "ב־15 במאי 1948 שלחו מצרים, סוריה ועיראק צבאות אל הארץ. הלגיון הערבי של עבר הירדן, המסומן במפה ״ירדן״, עמד ברמאללה וליד שער הגיא. החטיבות שלכם צריכות לעצור אותם."+advisor.opening.units.text: "צבא לבנון עמד על הגבול, ומתנדבי הליגה הערבית כבר היו כאן. בחרו יחידה כלשהי במפה כדי לראות של מי היא."+advisor.opening.cities.text: "בערים שלכם נמצאים האנשים, המשרות וההכשרה, והעבודה בהן מכניסה כסף. בחרו עיר כדי לראות אותם."+advisor.opening.move_how.text: "כדי לנוע, בחרו חטיבה, לחצו על ״תנועה״ ואז על משבצת מוארת. לחיצה על משבצת רחוקה יותר שולחת אליה את החטיבה במשך כמה תורות."+advisor.opening.orders.text: "חטיבה ללא הוראה מעכבת את ״סיום התור״. ״ביצור״ ו״החזקה״ נשארים עד שתשנו אותם, ומסלול ממשיך מעצמו. ״דילוג על התור״ חל על תור אחד."+advisor.opening.end_turn.text: "כשאף יחידה לא ממתינה להוראות, לחצו על ״סיום התור״. אם הכפתור מציג ״יחידה ממתינה להוראות״, לחיצה עליו תביא אתכם אל היחידה. אחר כך החודש מתנהל, ואחריו מוצג ״מה קרה בתור הזה״."advisor.next: "הבא"advisor.done: "סיום"advisor.step: "שלב {0} מתוך {1}"