Moved the economy onto resources and surfaced each building's material bill

Rebalanced the resource rules so nothing is priced primarily in money: steel, electricity and high-tech lead every construction bill, chip foundries are seeded everywhere instead of being hand-placed, and cities open with stores of steel and high-tech. City building rows now lead with the resource bill and keep the money as an aside, and the region's resources expand into the buildings that demand them. Pulled the graph and cost maths into a framework-free shared/economy_graph.js, quoted currency through one helper, and gave every data table the same striping and row highlight.
This commit is contained in:
2026-09-22 23:31:36 +02:00
parent 1324128245
commit 7ea5373b60
21 changed files with 411 additions and 202 deletions
+4 -3
View File
@@ -6,9 +6,10 @@ export class TextFormatTest extends TestCase {
this.assertEqual(groupDigits(0), "0");
this.assertEqual(groupDigits(7), "7");
this.assertEqual(groupDigits(123), "123");
this.assertEqual(groupDigits(1234), "1 234");
this.assertEqual(groupDigits(1234567), "1 234 567");
this.assertEqual(groupDigits(-1234), "-1 234");
// The separators are non-breaking spaces, so a number never wraps.
this.assertEqual(groupDigits(1234), "1\u00a0234");
this.assertEqual(groupDigits(1234567), "1\u00a0234\u00a0567");
this.assertEqual(groupDigits(-1234), "-1\u00a0234");
}
test_compact() {