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.

Refs #792 (slice 3: item 2, build orders on corridor segments) (#1320)

Beri2747fb83105a
diff --git a/changelog.d/unity-gdd-p4-map-corridor-orders-792.md b/changelog.d/unity-gdd-p4-map-corridor-orders-792.md
new file mode 100644
index 000000000..5cc745a5c
--- /dev/null
+++ b/changelog.d/unity-gdd-p4-map-corridor-orders-792.md
@@ -0,0 +1,4 @@
+- Map: a corridor segment's hex offers Build road or Build railway with each idle pioneer group, with the cost and
+ turns from the sim, then the turns left and Stop while it is built, then the day it was built. The order is the
+ existing `PioneerWork(unit, build_road | build_rail, corridor:N)`. A city's own hex does not show it; every segment
+ has another hex (refs #792).
diff --git a/sim/Statecraft.Sim.Tests/CorridorsTests.cs b/sim/Statecraft.Sim.Tests/CorridorsTests.cs
index 69eaaa18e..e0d8c9246 100644
--- a/sim/Statecraft.Sim.Tests/CorridorsTests.cs
+++ b/sim/Statecraft.Sim.Tests/CorridorsTests.cs
@@ -269,9 +269,10 @@ public class CorridorsTests
Assert.Empty(Step(c, s, ReferencePlayer.Commands(c, s).ToArray()).Rejected);
}
- static Content TransportationTown()
+ static Content TransportationTown(Func<string, string>? rules = null)
{
var files = Fixture.Gdd();
+ if (rules != null) files["rules.yaml"] = rules(files["rules.yaml"]);
files["offices.yaml"] = Fixture.Files["offices.yaml"] + @" - id: transportation_minister
title: Minister of Transportation
";
@@ -323,6 +324,29 @@ public class CorridorsTests
Assert.Equal(new SegmentWork(null, 3, s.Date).Canonical(), built.Canonical());
}
+ // #792: the cost and turns the map's Build road and Build railway orders show are what Start charges and Advance takes.
+ // The road and rail values differ from the yishuv's here, so a helper that fell back to them would fail.
+ [Theory]
+ [InlineData(false, 6)] // 0.75 a turn, then 1.5 once a veteran after 4 turns of service: 0.75, 1.5, 2.25, 3, 4.5, 6
+ [InlineData(true, 4)] // a veteran, 2 x 0.75 a turn: 1.5, 3, 4.5, 6
+ public void TheSegmentTermsAndTurnsAreTheOnesTheSimUses(bool veteran, int turns)
+ {
+ var c = TransportationTown(x => x.Replace("road_segment_turns: 3", "road_segment_turns: 5").Replace("road_segment_cost: 1.5", "road_segment_cost: 2.5")
+ .Replace("rail_segment_turns: 2", "rail_segment_turns: 4").Replace("rail_segment_cost: 3", "rail_segment_cost: 3.5"));
+ var s = WithHalutzim(c, 1, out var ids);
+ if (veteran) s.Units[ids[0]] = new Unit(ids[0], Projects.VeteranType, 1, 0, 4);
+ Assert.Equal((2.5, 5), Projects.Terms(c.Rules.Mvp!, Corridors.BuildRoad));
+ Assert.Equal((3.5, 4), Projects.Terms(c.Rules.Mvp!, Corridors.BuildRail));
+ Assert.Equal(turns, Corridors.TurnsToBuild(c, s, ids[0], 5, 0));
+ var r = Step(c, s, Road(ids[0]));
+ Assert.Equal(Step(c, s).State.Treasury - 2.5, r.State.Treasury, 9);
+ var seg = r.State.Corridors["road_a"].Segments[0]!;
+ Assert.Equal(turns - 1, Corridors.TurnsToBuild(c, r.State, ids[0], 5 - seg.Progress, seg.Carry)); // the turns left
+ var n = 1;
+ while (r.State.Corridors["road_a"].Segments[0]!.BuiltOn == null && n < 10) { r = Step(c, r.State); n++; }
+ Assert.Equal(turns, n);
+ }
+
[Fact]
public void TransportationCarryReplaysAndStoppingDiscardsIt()
{
diff --git a/sim/Statecraft.Sim/Corridors.cs b/sim/Statecraft.Sim/Corridors.cs
index 702d7ce1a..d8ab194dc 100644
--- a/sim/Statecraft.Sim/Corridors.cs
+++ b/sim/Statecraft.Sim/Corridors.cs
@@ -119,6 +119,12 @@ namespace Statecraft.Sim
}
}
+ /// <summary>The turns, this one included, in which <paramref name="unit"/> completes a segment's <paramref name="left"/>
+ /// whole turns and <paramref name="carry"/> as <see cref="Advance"/> counts them (Projects.TurnsToBuild at the corridors
+ /// multiplier). Changes no state; a new order passes the kind's turns (Projects.Terms) and zero carry (#792).</summary>
+ public static int TurnsToBuild(Content c, GameState s, int unit, int left, double carry) =>
+ Projects.TurnsToBuild(c, s, unit, "corridors", left, carry);
+
/// <summary>R-COR-003: a corridor is complete when every one of its segments is built, in any order.</summary>
public static bool IsComplete(Content c, GameState s, string corridor)
{
diff --git a/sim/Statecraft.Sim/Projects.cs b/sim/Statecraft.Sim/Projects.cs
index 1ad2ed338..0dd2b9588 100644
--- a/sim/Statecraft.Sim/Projects.cs
+++ b/sim/Statecraft.Sim/Projects.cs
@@ -68,10 +68,18 @@ namespace Statecraft.Sim
public static int TurnsToBuild(Content c, GameState s, int unit, Site site, int left, double carry)
{
if (site == null) throw new ArgumentNullException(nameof(site));
+ return TurnsToBuild(c, s, unit, SystemOf(site), left, carry);
+ }
+
+ /// <summary><see cref="TurnsToBuild(Content, GameState, int, Site, int, double)"/> for work scaled by
+ /// <paramref name="system"/>'s minister multiplier: a site's (SystemOf), or a corridor segment's
+ /// (Corridors.TurnsToBuild, #792).</summary>
+ public static int TurnsToBuild(Content c, GameState s, int unit, string system, int left, double carry)
+ {
if (left < 1) throw new ArgumentOutOfRangeException(nameof(left));
if (!(carry >= 0 && carry < 1)) throw new ArgumentOutOfRangeException(nameof(carry));
var r = c.RulesAt(s.Date).Mvp!;
- var m = EffectsSystem.GddSystemMultiplier(c, s, r, SystemOf(site));
+ var m = EffectsSystem.GddSystemMultiplier(c, s, r, system);
if (!(m > 0) || double.IsInfinity(m)) throw new InvalidOperationException("Site progress multiplier must be finite and positive");
var u = s.Units[unit];
for (int turns = 1; ; turns = checked(turns + 1))
@@ -166,6 +174,9 @@ namespace Statecraft.Sim
BuildCamp => (r.BuildCampCost!.Value, r.BuildCampTurns!.Value),
PlowFields => (r.PlowFieldsCost!.Value, r.PlowFieldsTurns),
DrySwamp => (r.DrySwampCost!.Value, r.DrySwampTurns!.Value),
+ // A corridor segment's kind (R-COR-001, R-COR-002): what Corridors.Start charges and Corridors.Advance takes (#792).
+ Corridors.BuildRoad => (r.RoadSegmentCost, r.RoadSegmentTurns),
+ Corridors.BuildRail => (r.RailSegmentCost, r.RailSegmentTurns),
_ => (r.BuildYishuvCost, r.BuildYishuvTurns),
};
diff --git a/unity/Assets/Scripts/UI/GddHexPanel.cs b/unity/Assets/Scripts/UI/GddHexPanel.cs
index d5baef4cc..182ead5c6 100644
--- a/unity/Assets/Scripts/UI/GddHexPanel.cs
+++ b/unity/Assets/Scripts/UI/GddHexPanel.cs
@@ -13,7 +13,8 @@ namespace Statecraft.Game.UI
/// their turns left, the Assign stepper (R-CITY-001), Train for each facility the city has (R-TRAIN-001, R-CAMP-001) and Cancel
/// (R-TRAIN-002). On a site's hex (sites.yaml: a yishuv, camp, field or swamp site, #1124), its state, and Build with each idle pioneer
/// group (Projects.IsPioneer: a halutz or a veteran one), with the rules' cost and the unit's own turns (Projects.TurnsToBuild;
- /// R-SITE-001, R-VET-002), or Stop while it is built (R-SITE-002).</para>
+ /// R-SITE-001, R-VET-002), or Stop while it is built (R-SITE-002). The same for each corridor segment through the hex: Build
+ /// road or Build railway (R-COR-001 to R-COR-003, #792).</para>
/// <para>On any hex a city can build on (Projects.CitiesFor, #1122): the city that builds (the player picks when several
/// can), and Build for each content project kind with its cost and turns (Projects.CityTurnsToBuild), disabled with the sim's own refusal
/// (Projects.CheckCityReason) worded in the UI's language; or the project there, with its turns left and Cancel, or the
@@ -56,6 +57,17 @@ namespace Statecraft.Game.UI
host.Add(part);
Site(part, bridge, text, site, Work(site)!.Value);
}
+ // #792: each corridor segment through the hex (corridors.yaml; a hex where two segments meet is in both). Not on a
+ // city's own hex, whose column is full (InfoPanelLayoutTests): every segment has another hex.
+ if (!cityHere)
+ foreach (var d in c.Corridors)
+ for (int i = 0; i < d.Segments.Count; i++)
+ if (d.Segments[i].Hexes.Any(h => h[0] == q && h[1] == r))
+ {
+ var part = new VisualElement { name = $"corridor-part-{d.Id}-{i + 1}" };
+ host.Add(part);
+ Segment(part, bridge, text, d, i);
+ }
CityProjects(projects, bridge, text, q, r, townName, cityHere);
}
host.style.display = host.childCount > 0 ? DisplayStyle.Flex : DisplayStyle.None;
@@ -177,6 +189,45 @@ namespace Statecraft.Game.UI
else Line(host, "site-state", text.Format("site.built" + key, Date(text, work.BuiltOn.Value)));
}
+ /// <summary>A corridor segment (#792, R-COR-001 to R-COR-003): its name, and Build road or Build railway (its corridor's
+ /// kind) with each idle pioneer group, with the kind's cost and the unit's own turns (Projects.Terms,
+ /// Corridors.TurnsToBuild); or its turns left and Stop while it is built; or the day it was built. The order is
+ /// PioneerWork(unit, action, "corridor:N"), SimBridge's corridor key.</summary>
+ static void Segment(VisualElement host, SimBridge bridge, UiText text, CorridorDef d, int index)
+ {
+ var c = bridge.Content; var s = bridge.State;
+ var action = d.Kind == Corridors.Rail ? Corridors.BuildRail : Corridors.BuildRoad;
+ var target = d.Id + ":" + (index + 1).ToString(CultureInfo.InvariantCulture);
+ var terms = Projects.Terms(c.RulesAt(s.Date).Mvp!, action); // the loader requires the rules in the GDD loop
+ var name = text["ui.lang"] == UiLanguage.Hebrew && !string.IsNullOrWhiteSpace(d.NameHe) ? d.NameHe : d.Name;
+ Line(host, "corridor-name", text.Format("corridor.segment", name, index + 1));
+ s.Corridors.TryGetValue(d.Id, out var corridor);
+ var work = corridor?.Segments[index];
+ if (work == null)
+ {
+ var idle = s.Units.Values.Where(u => Projects.IsPioneer(u.Type) && !Projects.IsBusy(s, u.Id)).ToList();
+ if (idle.Count == 0) Line(host, "corridor-no-halutz", text["site.no_halutz"]);
+ // One unit a segment (Q-COR-4): once a group is ordered here, the others' Build is off, as the sim would refuse it.
+ var taken = bridge.Queued.OfType<PioneerWork>().Any(w => w.Site == target);
+ foreach (var u in idle)
+ {
+ var ordered = bridge.QueuedLike(new PioneerWork(u.Id, action, target)) is PioneerWork p && p.Site == target;
+ Button(host, $"corridor-build-{u.Id}", ordered ? text["site.ordered"]
+ : text.Format("corridor.build_" + d.Kind, Group(text, s, u.Id), PlayerText.Money(c, "treasury", terms.Cost),
+ Turns(text, Corridors.TurnsToBuild(c, s, u.Id, terms.Turns, 0))),
+ () => bridge.Queue(new PioneerWork(u.Id, action, target))).SetEnabled(!ordered && !taken);
+ }
+ }
+ else if (work.BuiltOn == null)
+ {
+ var unit = work.Unit!.Value; // a segment being built names its unit (SegmentWork)
+ Line(host, "corridor-state", text.Format("site.building", Group(text, s, unit), Turns(text, Corridors.TurnsToBuild(c, s, unit, terms.Turns - work.Progress, work.Carry))));
+ var stopping = bridge.QueuedLike(new StopWork(unit)) is StopWork;
+ Button(host, "corridor-stop", text[stopping ? "site.ordered" : "site.stop"], () => bridge.Queue(new StopWork(unit))).SetEnabled(!stopping);
+ }
+ else Line(host, "corridor-state", text.Format("corridor.built", Date(text, work.BuiltOn.Value)));
+ }
+
/// <summary>The city projects of hex (q, r) (#1122). A project there shows its state and, while it is built, Cancel
/// (R-PROJ-002). Else, for the cities in reach (Projects.CitiesFor; none: nothing shows), the city that builds: the one
/// the player picked on this hex, else the queued order's, else the nearest. Build for each kind queues StartProject for
diff --git a/unity/Assets/Tests/EditMode/CityPanelTests.cs b/unity/Assets/Tests/EditMode/CityPanelTests.cs
index 6e7eceb53..43e7f67e1 100644
--- a/unity/Assets/Tests/EditMode/CityPanelTests.cs
+++ b/unity/Assets/Tests/EditMode/CityPanelTests.cs
@@ -718,4 +718,137 @@ public class CityPanelTests
Assert.AreEqual(DisplayStyle.Flex, ui.Q<Label>("event-objective").style.display.value, "with its objective line");
Assert.IsNotEmpty(ui.Q<Label>("event-objective").text);
}
+
+ // #792 (GDD Phase 4 PR 8, item 2): Build road and Build railway on a corridor segment's hex, as the sim's
+ // PioneerWork(unit, build_road | build_rail, "corridor:N"), with the cost and turns from the sim (Projects.Terms,
+ // Corridors.TurnsToBuild). Each segment through the hex has its own part.
+
+ static (int q, int r) SegmentHex(string corridor, int n, int i = 0)
+ {
+ var h = C.Corridors.Single(x => x.Id == corridor).Segments[n - 1].Hexes[i];
+ return (h[0], h[1]);
+ }
+
+ static VisualElement SegmentBox(UiTestKit ui, string corridor, int n) => ui.Root.Q<VisualElement>($"corridor-part-{corridor}-{n}");
+
+ [Test]
+ public void ASegmentHexOffersBuildRoadToEachIdleGroupWithTheSimsNumbers()
+ {
+ using var ui = new UiTestKit();
+ int a = -1, b = -1;
+ var bridge = Bridge(En, s => { a = AddHalutz(s); b = AddHalutz(s); });
+ using var panel = Panel(ui, bridge, En);
+ var (q, r) = SegmentHex("burma_road", 1);
+ panel.Show(q, r);
+ var box = SegmentBox(ui, "burma_road", 1);
+ Assert.IsNotNull(box, "the segment through the hex has its part");
+ Assert.AreEqual(En.Format("corridor.segment", "Burma Road", 1), box.Q<Label>("corridor-name").text);
+ var terms = Projects.Terms(C.RulesAt(bridge.State.Date).Mvp!, Corridors.BuildRoad);
+ var turns = Corridors.TurnsToBuild(C, bridge.State, a, terms.Turns, 0);
+ var button = box.Q<Button>($"corridor-build-{a}");
+ Assert.AreEqual(En.Format("corridor.build_road", En.Format("site.group", 1), PlayerText.Money(C, "treasury", terms.Cost), GddHexPanel.Turns(En, turns)), button.text);
+ StringAssert.Contains(En.Format("site.group", 2), box.Q<Button>($"corridor-build-{b}").text, "every idle group has its button");
+ UiTestKit.Press(button);
+ var order = bridge.QueuedLike(new StopWork(a)) as PioneerWork;
+ Assert.AreEqual((Corridors.BuildRoad, "burma_road:1"), (order?.Action, order?.Site), "the order goes through the bridge's corridor:N key");
+ box = SegmentBox(ui, "burma_road", 1);
+ Assert.AreEqual(En["site.ordered"], box.Q<Button>($"corridor-build-{a}").text);
+ Assert.IsFalse(box.Q<Button>($"corridor-build-{b}").enabledSelf, "one group builds a segment: the sim would refuse a second order");
+ var result = bridge.EndTurn();
+ Assert.IsEmpty(result.Rejected, "the sim takes the order");
+ Assert.AreEqual(a, result.State.Corridors["burma_road"].Segments[0]?.Unit);
+ }
+
+ [Test]
+ public void AHexOnARailwayOffersBuildRailwayAndShowsEverySegmentThroughIt()
+ {
+ using var ui = new UiTestKit();
+ int a = -1;
+ var bridge = Bridge(En, s => a = AddHalutz(s));
+ using var panel = Panel(ui, bridge, En);
+ var (q, r) = SegmentHex("tlv_haifa_rail", 1, 1);
+ Assert.AreEqual((q, r), SegmentHex("tlv_netanya_road", 2), "precondition: the rail link and the Netanya road share the hex");
+ panel.Show(q, r);
+ Assert.IsNotNull(SegmentBox(ui, "tlv_netanya_road", 1));
+ Assert.IsNotNull(SegmentBox(ui, "tlv_netanya_road", 2));
+ var rail = SegmentBox(ui, "tlv_haifa_rail", 1);
+ var terms = Projects.Terms(C.RulesAt(bridge.State.Date).Mvp!, Corridors.BuildRail);
+ Assert.AreEqual(En.Format("corridor.build_rail", En.Format("site.group", 1), PlayerText.Money(C, "treasury", terms.Cost),
+ GddHexPanel.Turns(En, Corridors.TurnsToBuild(C, bridge.State, a, terms.Turns, 0))), rail.Q<Button>($"corridor-build-{a}").text);
+ UiTestKit.Press(rail.Q<Button>($"corridor-build-{a}"));
+ var order = bridge.QueuedLike(new StopWork(a)) as PioneerWork;
+ Assert.AreEqual((Corridors.BuildRail, "tlv_haifa_rail:1"), (order?.Action, order?.Site));
+ Assert.IsEmpty(bridge.EndTurn().Rejected, "the sim takes the railway order");
+ }
+
+ [TestCase(0d)]
+ [TestCase(0.75d)]
+ public void ASegmentBeingBuiltShowsTheSimsTurnsLeftAndStop(double carry)
+ {
+ using var ui = new UiTestKit();
+ int vet = -1;
+ var bridge = Bridge(En, s => { vet = AddHalutz(s, Projects.VeteranType); s.Corridors["burma_road"] = new CorridorWork("burma_road", new SegmentWork?[] { new SegmentWork(vet, 2, null, carry), null, null, null }); });
+ using var panel = Panel(ui, bridge, En);
+ var (q, r) = SegmentHex("burma_road", 1);
+ panel.Show(q, r);
+ var box = SegmentBox(ui, "burma_road", 1);
+ var left = Projects.Terms(C.RulesAt(bridge.State.Date).Mvp!, Corridors.BuildRoad).Turns - 2;
+ Assert.AreEqual(En.Format("site.building", En.Format("site.group", 1), GddHexPanel.Turns(En, Corridors.TurnsToBuild(C, bridge.State, vet, left, carry))), box.Q<Label>("corridor-state").text);
+ Assert.IsNull(box.Q<Button>($"corridor-build-{vet}"), "a segment being built takes no Build order (the sim refuses it)");
+ UiTestKit.Press(box.Q<Button>("corridor-stop"));
+ Assert.IsNotNull(bridge.QueuedLike(new StopWork(vet)) as StopWork, "Stop queues StopWork");
+ }
+
+ [Test]
+ public void ABuiltSegmentShowsItsDateAndTakesNoOrder()
+ {
+ using var ui = new UiTestKit();
+ int a = -1;
+ var on = new DateTime(1948, 9, 1);
+ var bridge = Bridge(He, s => { a = AddHalutz(s); s.Corridors["burma_road"] = new CorridorWork("burma_road", new SegmentWork?[] { new SegmentWork(null, 6, on), null, null, null }); });
+ using var panel = Panel(ui, bridge, He);
+ var (q, r) = SegmentHex("burma_road", 1);
+ panel.Show(q, r);
+ var box = SegmentBox(ui, "burma_road", 1);
+ Assert.AreEqual(He.Format("corridor.segment", C.Corridors.Single(x => x.Id == "burma_road").NameHe, 1), box.Q<Label>("corridor-name").text, "the Hebrew name");
+ Assert.AreEqual(He.Format("corridor.built", He.Format("date.day_month_year", 1, He["date.month_9"], 1948)), box.Q<Label>("corridor-state").text);
+ Assert.IsNull(box.Q<Button>($"corridor-build-{a}"), "a built segment takes no Build order (the sim refuses it)");
+ }
+
+ [Test]
+ public void AGroupBuildingASegmentIsNotOfferedAnother()
+ {
+ using var ui = new UiTestKit();
+ int busy = -1, idle = -1;
+ var bridge = Bridge(En, s => { busy = AddHalutz(s); idle = AddHalutz(s); s.Corridors["burma_road"] = new CorridorWork("burma_road", new SegmentWork?[] { null, null, null, new SegmentWork(busy, 1, null) }); });
+ using var panel = Panel(ui, bridge, En);
+ var (q, r) = SegmentHex("burma_road", 1);
+ panel.Show(q, r);
+ var box = SegmentBox(ui, "burma_road", 1);
+ Assert.IsNull(box.Q<Button>($"corridor-build-{busy}"), "a group with a project is not idle (D-D6)");
+ Assert.IsNotNull(box.Q<Button>($"corridor-build-{idle}"));
+ }
+
+ [Test]
+ public void EverySegmentIsOfferedOnAHexWithoutACity()
+ {
+ // A city's own hex already fills the panel's GDD column (InfoPanelLayoutTests), so a segment shows on its other hexes.
+ using var ui = new UiTestKit();
+ var bridge = Bridge(En, s => AddHalutz(s));
+ using var panel = Panel(ui, bridge, En);
+ panel.Show(CityHex.q, CityHex.r);
+ Assert.IsTrue(C.Corridors.Any(d => d.Segments.Any(x => x.Hexes.Any(h => (h[0], h[1]) == CityHex))), "precondition: a corridor starts on Tel Aviv's hex");
+ Assert.IsNull(ui.Root.Query<VisualElement>().Where(x => x.name != null && x.name.StartsWith("corridor-part-")).First(), "no corridor part on a city's hex");
+ foreach (var d in C.Corridors)
+ for (int n = 1; n <= d.Segments.Count; n++)
+ {
+ var found = false;
+ foreach (var h in d.Segments[n - 1].Hexes)
+ {
+ panel.Show(h[0], h[1]);
+ if (SegmentBox(ui, d.Id, n)?.Q<Button>() != null) { found = true; break; }
+ }
+ Assert.IsTrue(found, $"{d.Id}:{n} has a hex that offers Build");
+ }
+ }
}
diff --git a/unity/Assets/UI/strings.en.yaml b/unity/Assets/UI/strings.en.yaml
index 2a6837f32..230521bc9 100644
--- a/unity/Assets/UI/strings.en.yaml
+++ b/unity/Assets/UI/strings.en.yaml
@@ -508,6 +508,11 @@ site.build_swamp: "Drain the swamp with {0}: {1}, {2}"
site.building_swamp: "Being drained by {0}: {1} left"
site.stop_swamp: "Stop draining (the money spent is lost)"
site.built_swamp: "Drained on {0}"
+# A corridor segment's part on its hexes (#792): {0} the corridor's name, {1} the segment's number from 1 (Q-SENS-1).
+corridor.segment: "{0}, segment {1}"
+corridor.build_road: "Build road with {0}: {1}, {2}"
+corridor.build_rail: "Build railway with {0}: {1}, {2}"
+corridor.built: "Built on {0}"
# Timeline screen (#955).
timeline.title: "Your course and the record"
diff --git a/unity/Assets/UI/strings.he.yaml b/unity/Assets/UI/strings.he.yaml
index c8fe5a9e3..252599e9a 100644
--- a/unity/Assets/UI/strings.he.yaml
+++ b/unity/Assets/UI/strings.he.yaml
@@ -554,6 +554,13 @@ site.build_swamp: "ייבוש הביצה עם {0}: {1}, {2}"
site.building_swamp: "בייבוש בידי {0}: עוד {1}"
site.stop_swamp: "עצירת הייבוש (הכסף שהוצא לא יוחזר)"
site.built_swamp: "יובש ב־{0}"
+# A corridor segment's part (#792): the owner's approved words סלילת כביש and הנחת מסילה (Q-UI-2, #782); a segment is
+# קטע, as order.kind.corridor_segment. For the native reviewer (#564).
+# Approved by Beri, a native speaker, on #1320 (22 Oct 2026).
+corridor.segment: "{0}, קטע {1}"
+corridor.build_road: "סלילת כביש עם {0}: {1}, {2}"
+corridor.build_rail: "הנחת מסילה עם {0}: {1}, {2}"
+corridor.built: "נבנה ב־{0}"
# Timeline screen (#955). Hebrew drafts: agent-checked, native review pending (#564).
timeline.title: "הדרך שלך והרצף ההיסטורי"