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.

Content: the GDD 0.3 housing repair costs a fixed 0.5 Money and 1 work (Refs #1700) (#2360)

Eyal Golan0eff181284ba
diff --git a/changelog.d/e21-repair-price.md b/changelog.d/e21-repair-price.md
new file mode 100644
index 000000000..a8e19526c
--- /dev/null
+++ b/changelog.d/e21-repair-price.md
@@ -0,0 +1,5 @@
+### Changed
+- The GDD 0.3 balance catalogue now prices a housing repair at a fixed 0.5 Money and 1 work, for +10 pp condition, as the
+ owner ruled (Refs #1700). It replaces the old "2 x current regional housing upkeep" cost. This is the gdd-0.3 catalogue
+ only: nothing in the game reads the repair cost yet. The content changes for every ruleset, so a save made before it
+ loads with the "content changed" warning.
diff --git a/content/gdd03-balance.yaml b/content/gdd03-balance.yaml
index 86739fa0a..ee34da342 100644
--- a/content/gdd03-balance.yaml
+++ b/content/gdd03-balance.yaml
@@ -670,8 +670,8 @@
"parts":
"cost":
"basis": "Agreed"
- "note": "Agreed. Source: #1668 balance.md at 605277df."
- "expression": "2 * current regional housing upkeep"
+ "note": "Owner, 1 November 2026, `Fixed price 0.5 Money + 1 work`. Source: GDD.md; #1700 https://github.com/eyalgolan/statecraft-israel/issues/1700#issuecomment-6554004118; #1703 https://github.com/eyalgolan/statecraft-israel/issues/1703#issuecomment-6554005317."
+ "values": [0.5]
"work":
"basis": "Agreed"
"note": "Agreed. Source: #1668 balance.md at 605277df."
diff --git a/sim/Statecraft.Sim.Tests/DesignValuesGdd03Tests.cs b/sim/Statecraft.Sim.Tests/DesignValuesGdd03Tests.cs
index e617f01e9..4d1fba9b7 100644
--- a/sim/Statecraft.Sim.Tests/DesignValuesGdd03Tests.cs
+++ b/sim/Statecraft.Sim.Tests/DesignValuesGdd03Tests.cs
@@ -253,12 +253,22 @@ public partial class DesignValuesTests
Assert.Equal(10000m,Assert.Single(v["population.people_per_unit"].Values));
Assert.Equal(new[]{0.75m,1m,1.5m},v["pioneer.work_rate"].Values);
Assert.Equal(0.10m,Assert.Single(v["maabara"].Parts["upkeep"].Values));
- Assert.Equal("2 * current regional housing upkeep",v["housing_repair"].Parts["cost"].Expression);
+ Assert.Equal(0.5m,Assert.Single(v["housing_repair"].Parts["cost"].Values));
Assert.Equal(65m,Assert.Single(v["start.population"].Values));
Assert.Equal(new[]{5m,10m,5m},v["start.farmers"].Values);
Assert.Equal(new[]{0.5m,1m,2m},v["combat.draw_count"].Parts["ratio_thresholds"].Values);
Assert.Null(ContentLoader.Load(Fixture.Write()).Gdd03Balance); // old authored content still loads
}
+ // The owner's #1700 ruling (docs/GDD.md, "Housing repair price"): "Fixed price 0.5 Money + 1 work", +10 pp condition.
+ // Catalogue only: no gameplay path reads the repair cost or work yet (Gdd03HousingFormula reads condition_pp only).
+ [Fact] public void HousingRepairCatalogueHoldsTheOwnersFixedPrice()
+ {
+ var repair = ContentLoader.Load(RealContentTests.ContentRoot()).Gdd03Balance!.Values["housing_repair"];
+ Assert.Empty(repair.Parts["cost"].Expression);
+ Assert.Equal(0.5m, Assert.Single(repair.Parts["cost"].Values));
+ Assert.Equal(1m, Assert.Single(repair.Parts["work"].Values));
+ Assert.Equal(10m, Assert.Single(repair.Parts["condition_pp"].Values));
+ }
[Theory]
[InlineData("bad: { basis: Unknown, values: [1], note: test }")]
[InlineData("bad: { basis: Agreed, values: [1] }")]