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.

Map: Tel Aviv's White City is plastered a warm cream, as in promo 03 (refs #658) (#841)

Beri0924dd75c3ce
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f7c05a167..aa1f9bb0d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -20,6 +20,9 @@ adds a line under **Unreleased**; CI's `Changelog` job checks this (see `CONTRIB
The checks file is now written in the bundle cache and copied beside the shipped bundles.
### Changed
+- Tel Aviv's White City is plastered a warm cream, as in promo 03, where it was a cooler lime white (refs #658). Walls,
+ parapets and roof terraces change in Tel Aviv only. Haifa's Hadar and every other town keep their colours, and Tel
+ Aviv stays clearly lighter than Jaffa's sandstone (`TownCensusTests.TelAvivsPlasterIsWarmCreamAndStillWhiterThanJaffa`).
- The coalition can no longer end the GDD game (refs #730, R-GOV-001; D-C5, D-B5: "Coalition collapse is off in the
MVP"). Its stability still follows public approval and still weights the coalition votes; the legacy loop keeps its
collapse. R-GOV-002 pins what the GDD orders cost in Attention: each has a price, the unit orders are free, and a
diff --git a/docs/visual-v1.md b/docs/visual-v1.md
index 23399786c..2887a6e36 100644
--- a/docs/visual-v1.md
+++ b/docs/visual-v1.md
@@ -2672,6 +2672,15 @@ wide in a 1920 frame. Main drew white boxes of two to seven storeys, about 25-30
nothing.
- Each claims a lot, so no tree grows through one.
- **#507:** everything is in `tel_aviv_kit`, so a model that turns the town's kit off hides all of it.
+- **Plaster (#658, follow-up):** Tel Aviv's walls and parapets are a warm cream, `TelAvivPlaster` (0.97, 0.90, 0.87),
+ and the terrace paving (0.87, 0.80, 0.75), where they were the shared lime white (0.94, 0.945, 0.94) and (0.84, 0.81,
+ 0.76). Haifa's Hadar keeps `WhitePlaster`. Census mean wall: Tel Aviv (0.93, 0.93, 0.92) to (0.96, 0.90, 0.86); Jaffa
+ (0.76, 0.69, 0.60) and Haifa unchanged. Editor render, lit plaster (85th-percentile luma in Tel Aviv's box), gameplay03:
+ (0.886, 0.824, 0.714) to (0.902, 0.820, 0.706) at blue 0.84, the same median at 0.87; promo 03's Tel Aviv reads
+ (0.969, 0.855, 0.796).
+ The review measured a first cream, blue 0.84, as too yellow against the promo's balance (red minus blue past it), so
+ blue went to 0.87. Editor, the brightest 15% of the pixels that changed in Tel Aviv's box: red minus green 0.053 on
+ main, 0.080 at both blues; red minus blue 0.156 on main, 0.198 at 0.84, 0.191 at 0.87 (promo 0.114 and 0.173).
**Result** (editor census, `TownCensusTests`; main 98515c52 → branch):
diff --git a/unity/Assets/Scripts/Map/Kits/SettlementKits.TelAviv.cs b/unity/Assets/Scripts/Map/Kits/SettlementKits.TelAviv.cs
index 535cd3d07..58770dcd7 100644
--- a/unity/Assets/Scripts/Map/Kits/SettlementKits.TelAviv.cs
+++ b/unity/Assets/Scripts/Map/Kits/SettlementKits.TelAviv.cs
@@ -30,6 +30,9 @@ namespace Statecraft.Game.Map.Kits
public const int TelAvivMinStoreys = 4, TelAvivMaxStoreys = 8;
/// <summary>Share of Tel Aviv's blocks raised on pilotis: an open, recessed ground storey under the block.</summary>
const float PilotisShare = 0.25f;
+ /// <summary>Tel Aviv's plaster (#658): promo 03's warm cream, red-led, where main used the shared lime white
+ /// (WhitePlaster, which Haifa's Hadar keeps). Still well lighter and paler than Jaffa's sandstone (StoneWall).</summary>
+ static readonly Color32 TelAvivPlaster = C(0.97f, 0.90f, 0.87f);
/// <summary>A Tel Aviv block: four to eight storeys, taller near the heart.</summary>
static Spec PickTelAviv(float t, ref KitRandom rnd, float m)
@@ -42,16 +45,16 @@ namespace Statecraft.Game.Map.Kits
return new Spec { w = w * m, d = d * m, h = storeys * 3.3f * m, storeys = storeys, lotR = 0.5f * Mathf.Sqrt(w * w + d * d) * m };
}
- /// <summary>Draws one Tel Aviv block and records it in the census: lime-white plaster (a few cream), ribbon windows
+ /// <summary>Draws one Tel Aviv block and records it in the census: warm cream plaster (#658; a few a slightly yellower cream), ribbon windows
/// along both long sides (Ribbons), a balcony band on every upper storey (WhiteBlockDetail), some on pilotis, some stepped, and a
/// flat roof terrace behind a parapet with its stair head.</summary>
static void TelAvivBlock(string id, Vector2 p, float yaw, Spec b, float bottom, float top, KitMesh km, ref KitRandom rnd)
{
float m = KitScale.CityBlocks, storey = 3.3f * m, a = yaw * Mathf.Deg2Rad, ca = Mathf.Cos(a), sa = Mathf.Sin(a);
Vector2 At(float u, float v) => p + new Vector2(u * ca - v * sa, u * sa + v * ca);
- var wall = rnd.Chance(0.08f) ? Jitter(C(0.93f, 0.90f, 0.83f), ref rnd, 0.03f) : Jitter(WhitePlaster, ref rnd, 0.025f);
+ var wall = rnd.Chance(0.08f) ? Jitter(C(0.93f, 0.90f, 0.83f), ref rnd, 0.03f) : Jitter(TelAvivPlaster, ref rnd, 0.025f);
// The roof terrace's paving, a touch warmer and darker than the parapet, so the parapet reads as a rim.
- var terrace = Jitter(C(0.84f, 0.81f, 0.76f), ref rnd, 0.03f);
+ var terrace = Jitter(C(0.87f, 0.80f, 0.75f), ref rnd, 0.03f);
bool pilotis = rnd.Chance(PilotisShare);
bool stepped = !pilotis && rnd.Chance(0.3f);
// The main block (c, w x d, h tall) and, on a stepped block, a lower wing at one end.
diff --git a/unity/Assets/Scripts/Map/Kits/SettlementKits.cs b/unity/Assets/Scripts/Map/Kits/SettlementKits.cs
index 3a359b60e..0782f95d3 100644
--- a/unity/Assets/Scripts/Map/Kits/SettlementKits.cs
+++ b/unity/Assets/Scripts/Map/Kits/SettlementKits.cs
@@ -804,8 +804,8 @@ namespace Statecraft.Game.Map.Kits
case Style.TownBlock:
{
bool white = st == Style.WhiteBlock;
- // The White City's lime-white plaster (settlements quick wins, #31: promo 03's Tel Aviv reads white, not cream; a
- // few blocks keep the cream render). The moshava centres keep their warmer plaster.
+ // Haifa's Hadar keeps the lime-white plaster (settlements quick wins, #31; a few blocks keep the cream render).
+ // Tel Aviv has its own cream since #658 (TelAvivBlock). The moshava centres keep their warmer plaster.
var wall = white
? (rnd.Chance(0.08f) ? Jitter(C(0.93f, 0.90f, 0.83f), ref rnd, 0.03f) : Jitter(WhitePlaster, ref rnd, 0.025f))
: rnd.Chance(0.3f) ? Jitter(C(0.90f, 0.84f, 0.72f), ref rnd, 0.04f) : Jitter(C(0.94f, 0.92f, 0.87f), ref rnd, 0.035f);
@@ -975,7 +975,8 @@ namespace Statecraft.Game.Map.Kits
km.Box(uc.x, uc.y, yaw, uw * 0.8f, ud * 0.8f, top + b.h - 0.3f * m, top + b.h, storey * 0.85f, wall, roof, facade, m);
}
- /// <summary>The White City's wall plaster (sRGB): lime white, a touch cool, so the warm sun leaves it white rather than cream.</summary>
+ /// <summary>Haifa's Hadar wall plaster (sRGB; Tel Aviv's is TelAvivPlaster, #658): lime white, a touch cool, so the warm
+ /// sun leaves it white rather than cream.</summary>
static readonly Color32 WhitePlaster = C(0.94f, 0.945f, 0.94f);
/// <summary>How far (real m) a White City balcony stands out from its wall.</summary>
diff --git a/unity/Assets/Tests/EditMode/TownCensusTests.cs b/unity/Assets/Tests/EditMode/TownCensusTests.cs
index 036a7de4c..c016fc4b8 100644
--- a/unity/Assets/Tests/EditMode/TownCensusTests.cs
+++ b/unity/Assets/Tests/EditMode/TownCensusTests.cs
@@ -350,6 +350,34 @@ public class TownCensusTests
/// height spread (0.31).</summary>
const float TelAvivMedianWidthM = 20.5f, TelAvivHeightSpread = 0.28f; const int TelAvivPalms = 23;
+ /// <summary>#658 (follow-up to #652): Tel Aviv's plaster is promo 03's warm cream, not a lime white. Its mean wall is
+ /// red-led (red over green by <see cref="CreamRedOverGreen"/>, red over blue by <see cref="CreamRedOverBlue"/>; main's
+ /// white was neutral), yet the White City stays white against Jaffa's sandstone: lighter than Jaffa's walls by
+ /// <see cref="WhiteOverJaffa"/> and at most <see cref="CreamOfJaffasTint"/> of their red-over-blue tint. Haifa's walls
+ /// (its Hadar shares the White City's style) keep main's mean.</summary>
+ [Test]
+ public void TelAvivsPlasterIsWarmCreamAndStillWhiterThanJaffa()
+ {
+ var map = OpenMap();
+ var rows = Census(map, out _).ToDictionary(r => r.Id);
+ Color ta = rows["tel_aviv"].MeanWall, jaffa = rows["jaffa"].MeanWall, haifa = rows["haifa"].MeanWall;
+ TestContext.WriteLine($"{rows["tel_aviv"]}\n{rows["jaffa"]}\n{rows["haifa"]}\nhaifa mean wall ({haifa.r:F4}, {haifa.g:F4}, {haifa.b:F4})");
+ float Luma(Color c) => 0.2126f * c.r + 0.7152f * c.g + 0.0722f * c.b;
+ Assert.GreaterOrEqual(ta.r - ta.g, CreamRedOverGreen, "Tel Aviv's plaster is not red-led (a lime or neutral white)");
+ Assert.GreaterOrEqual(ta.r - ta.b, CreamRedOverBlue, "Tel Aviv's plaster is not cream");
+ Assert.GreaterOrEqual(Luma(ta) - Luma(jaffa), WhiteOverJaffa, "Tel Aviv's plaster is not clearly lighter than Jaffa's stone");
+ Assert.LessOrEqual(ta.r - ta.b, CreamOfJaffasTint * (jaffa.r - jaffa.b), "Tel Aviv's cream reads as Jaffa's sandstone");
+ Assert.AreEqual(HaifaMeanWall.r, haifa.r, 0.002f, "Haifa's walls changed (red); if deliberate, update HaifaMeanWall");
+ Assert.AreEqual(HaifaMeanWall.g, haifa.g, 0.002f, "Haifa's walls changed (green); if deliberate, update HaifaMeanWall");
+ Assert.AreEqual(HaifaMeanWall.b, haifa.b, 0.002f, "Haifa's walls changed (blue); if deliberate, update HaifaMeanWall");
+ }
+
+ /// <summary>Bands for TelAvivsPlasterIsWarmCreamAndStillWhiterThanJaffa, in census mean-wall terms. Main: Tel Aviv
+ /// (0.93, 0.93, 0.92), r - g 0.000; Jaffa (0.76, 0.69, 0.60).</summary>
+ const float CreamRedOverGreen = 0.04f, CreamRedOverBlue = 0.08f, WhiteOverJaffa = 0.12f, CreamOfJaffasTint = 0.85f;
+ /// <summary>Haifa's census mean wall on main (2927defb), which #658 must not move.</summary>
+ static readonly Color HaifaMeanWall = new Color(0.8380f, 0.7945f, 0.7255f);
+
[Test]
public void TheCitiesCoverTheirGround()
{