Files
Battle-for-Tismo/shared/data/governments.js
T
adrien e7ee5dbf0e Added the resource economy, its works and their icons
- Five resources (energy, steel, food, luxury, high-tech) with per-city stores, a world market, delivery and material upkeep.
- Resource-producing tile works built outside cities; every nation opens with the works its economy needs.
- Real game-icons.net art replacing the dummy icons for the new resources and works, with the credits updated.
2026-09-22 05:27:11 +02:00

36 lines
1.4 KiB
JavaScript

// Forms of government a civilisation may adopt. Each grants a flat modifier to
// the stats it favours.
import { EFFECT_PRODUCTION, EFFECT_BUDGET_INCOME, EFFECT_RESEARCH, EFFECT_CULTURE, effect } from "./effects.js";
export const GOVERNMENTS = [
{
id: "republic",
name: "Republic",
description: "Rule by elected representatives. A balanced government that spreads its support across the economy, the treasury and the sciences.",
baseCost: 0,
costGdpFraction: 0.02,
effects: [effect(EFFECT_PRODUCTION, 0.05, 1.0), effect(EFFECT_BUDGET_INCOME, 0.1, 1.0), effect(EFFECT_RESEARCH, 1.0, 1.0)],
},
{
id: "monarchy",
name: "Monarchy",
description: "Rule by a hereditary sovereign. The crown favours commerce and tradition, lifting the economy and the nation's cultural output.",
baseCost: 0,
costGdpFraction: 0.03,
effects: [effect(EFFECT_PRODUCTION, 0.1, 1.0), effect(EFFECT_CULTURE, 1.0, 1.0)],
},
{
id: "technocracy",
name: "Technocracy",
description: "Rule by technical experts. A single-minded drive for progress pours resources into research while economic growth takes second place.",
baseCost: 0,
costGdpFraction: 0.04,
effects: [effect(EFFECT_RESEARCH, 3.0, 1.0), effect(EFFECT_PRODUCTION, 0.03, 1.0)],
},
];
export function governmentById(id) {
return GOVERNMENTS.find((g) => g.id === id) || null;
}