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.

Loader: refuse front_quiet on a Deport card (#2804 item 7) (#2866)

Beri1a66ed47440c
diff --git a/changelog.d/2804-7.md b/changelog.d/2804-7.md
new file mode 100644
index 000000000..1b95cbbf9
--- /dev/null
+++ b/changelog.d/2804-7.md
@@ -0,0 +1,4 @@
+### Fixed
+
+- Content checks: the loader now refuses `front_quiet` on a Deport follow-up card, so such a card can't fire a second
+ time when its front gets an early offer. No shipped card is affected.
diff --git a/docs/rules/mvp.md b/docs/rules/mvp.md
index 64684ab6a..83cd122d9 100644
--- a/docs/rules/mvp.md
+++ b/docs/rules/mvp.md
@@ -562,7 +562,7 @@ R-EVT-005: One sim helper, `EventSystem.OptionEffects`, lists every effect of an
R-EVT-006: Among the events eligible on a turn with the same `from` (and, for objective cards, the same place in `objectives.yaml`, R-OBJ-007), an event's `order` (default 0) decides before the id (ordinal): a lower order fires first, takes a soft slot first and is shown first. With every `order` 0 the order is R-EVT-002's. `degania_defence` has `order: 1`, so One Army (`idf_founding`) opens the game and the defence of Degania comes second on the same turn (owner, 24 October 2026, #1568: "One Army first").
-R-EVT-007: An event with `deported: <target>` is Deport's follow-up card for that settlement target (GDD Phase 6 PR 9, #801; Q-CARD-1 (c), owner, 18 October 2026, #783). Besides R-EVT-001, it fires only once the target's record is depopulated, which only the player's Deport does (R-CTRL-018, R-CTRL-020), so it fires at the event step of the turn that Deport resolves and never after Raid or Occupy, and a Deport of another place does not fire it; only the GDD loop records settlements, so the legacy loop never fires one. It takes no soft slot (R-EVT-001's cap of 3 does not count it), so hard anchors or other cards on that turn never push it to a later one. On the turn that ends the game no event fires but the unfired cards of recorded objectives (R-LOOP-004, R-OBJ-003), so a Deport on that last turn raises no card; the end report lists that card instead, and the end screen shows its title and text after the objectives (owner, 2 November 2026, #2197: "Show on the end screen (Recommended)"). A card that fired is not listed again. It has exactly one option, and, like an objective's card, it resolves to that option without an RNG draw when left unanswered (R-EVT-003). The loader refuses one whose target is not in `settlement_targets.yaml`, whose target's residents fled (Deport is refused there, so the card could never fire), that lacks the `displacement` tag (so the release gate holds it, R-GATE-001), that has more than one option, a `to` (a closed window would miss a later Deport) or `prisoners`, that is not `soft`, that opens after the game's start, that waits for anything else (`conditions`, `requires`, `site`, `objective`, a `kind` other than historical, `variants`), or that is a second card for the same place. The shipped cards, `deport_acre` and `deport_nazareth`, are `sensitivity-reviewed` (owner, 2 November 2026, #2197: "Approve both cards"); Deport stays out of play (`mvp.deport_in_play: false`).
+R-EVT-007: An event with `deported: <target>` is Deport's follow-up card for that settlement target (GDD Phase 6 PR 9, #801; Q-CARD-1 (c), owner, 18 October 2026, #783). Besides R-EVT-001, it fires only once the target's record is depopulated, which only the player's Deport does (R-CTRL-018, R-CTRL-020), so it fires at the event step of the turn that Deport resolves and never after Raid or Occupy, and a Deport of another place does not fire it; only the GDD loop records settlements, so the legacy loop never fires one. It takes no soft slot (R-EVT-001's cap of 3 does not count it), so hard anchors or other cards on that turn never push it to a later one. On the turn that ends the game no event fires but the unfired cards of recorded objectives (R-LOOP-004, R-OBJ-003), so a Deport on that last turn raises no card; the end report lists that card instead, and the end screen shows its title and text after the objectives (owner, 2 November 2026, #2197: "Show on the end screen (Recommended)"). A card that fired is not listed again. It has exactly one option, and, like an objective's card, it resolves to that option without an RNG draw when left unanswered (R-EVT-003). The loader refuses one whose target is not in `settlement_targets.yaml`, whose target's residents fled (Deport is refused there, so the card could never fire), that lacks the `displacement` tag (so the release gate holds it, R-GATE-001), that has more than one option, a `to` (a closed window would miss a later Deport) or `prisoners`, that is not `soft`, that opens after the game's start, that waits for anything else (`conditions`, `requires`, `site`, `objective`, a `kind` other than historical, `variants`, `front_quiet`), or that is a second card for the same place. The shipped cards, `deport_acre` and `deport_nazareth`, are `sensitivity-reviewed` (owner, 2 November 2026, #2197: "Approve both cards"); Deport stays out of play (`mvp.deport_in_play: false`).
## Alternate timelines
diff --git a/sim/Statecraft.Sim.Tests/DeportCardTests.cs b/sim/Statecraft.Sim.Tests/DeportCardTests.cs
index 54428c244..cd908101c 100644
--- a/sim/Statecraft.Sim.Tests/DeportCardTests.cs
+++ b/sim/Statecraft.Sim.Tests/DeportCardTests.cs
@@ -140,6 +140,17 @@ public class DeportCardTests
Assert.Contains(message, ex.Message);
}
+ // R-EVT-007: front_quiet joins a fired card to the quiet set (gdd-0.3), where its front's early offer could fire it
+ // again, so a Deport card refuses it too. The card takes an armistice id, so front_quiet's own check lets it through.
+ [Fact]
+ public void TheLoaderRefusesFrontQuietOnACard()
+ {
+ var ex = Assert.Throws<ContentException>(() => DeportTests.Load(files => files["events/armistice_egypt.yaml"] =
+ Card.Replace("id: after_town_a\n", "id: armistice_egypt\n").Replace("from: 1948-05-15\n", "from: 1948-05-15\nfront_quiet: egypt\n")));
+ Assert.Equal("events[armistice_egypt].front_quiet", ex.Field);
+ Assert.Contains("waits for nothing but its Deport", ex.Message);
+ }
+
// R-EVT-007: one card per place, so one Deport cannot raise two.
[Fact]
public void TheLoaderRefusesASecondCardForThePlace()
diff --git a/sim/Statecraft.Sim/ContentLoader.cs b/sim/Statecraft.Sim/ContentLoader.cs
index 44b7ad20c..7baef18ae 100644
--- a/sim/Statecraft.Sim/ContentLoader.cs
+++ b/sim/Statecraft.Sim/ContentLoader.cs
@@ -1680,7 +1680,8 @@ namespace Statecraft.Sim
if (e.From > c.Rules.Start)
throw new ContentException(e.File, $"events[{e.Id}].from", FormattableString.Invariant($"a Deport card opens at the game's start ({c.Rules.Start:yyyy-MM-dd}), so a Deport on any turn fires it"));
foreach (var (key, set) in new[] { ("conditions", e.Conditions.Count > 0), ("requires", e.Requires.Count > 0), ("site", e.Site != ""),
- ("objective", e.Objective != ""), ("kind", e.Kind != EventKinds.Historical), ("variants", e.Variants.Count > 0) })
+ ("objective", e.Objective != ""), ("kind", e.Kind != EventKinds.Historical), ("variants", e.Variants.Count > 0),
+ ("front_quiet", e.FrontQuiet != "") })
if (set) throw new ContentException(e.File, $"events[{e.Id}].{key}", "a Deport card waits for nothing but its Deport");
if (cardOf.TryGetValue(e.Deported, out var first))
throw new ContentException(e.File, $"events[{e.Id}].deported", $"'{e.Deported}' already has a card, '{first}': one Deport raises one card");