Files
Battle-for-Tismo/client/js/currency.js
T
adrien 3e429ccb64 Gave production buildings their own economy and fed island regions
Production buildings are now independent private-sector agents: they keep what their output sells for, run only to the demand they can actually sell, and spend that cash on steel and high-tech upgrades when their demand grows. Grid power is a paid private flow between plants and their consumers, and regions synthesise the food their own harvest and the reachable market cannot supply.

Island regions no longer famine: a region with no reachable supplier grows its whole shortfall from energy, and grid power now feeds cities and food before the converters, so a famine never waits on a factory.

Bundles the in-progress tree cleanup that was already present in the working tree.
2026-09-22 14:34:14 +02:00

14 lines
384 B
JavaScript

// The viewer's currency. Money is quoted in whatever nation the player runs, so
// every money string reads in the right unit. The symbol is set from the
// snapshot; until then a neutral mark stands in.
let symbol = "¤";
export function setCurrency(currency) {
if (currency && currency.symbol) symbol = currency.symbol;
}
export function currencySymbol() {
return symbol;
}