feat: Cards writings and balancing (M8)
This commit is contained in:
@@ -73,6 +73,7 @@ export function createLedger(root, scenario, { onConfirm }) {
|
||||
<div class="ledger__book">
|
||||
<article class="ledger__page ledger__page--left">
|
||||
<h2>${t("ledger.title")}</h2>
|
||||
${state.risk.emergency ? `<p class="ledger__emergency">${t("ledger.emergency")}</p>` : ""}
|
||||
<p class="ledger__sub">${t("ledger.spending")}. ${t("ledger.spendingHint")}</p>
|
||||
<div class="ledger__rows">${sectorRows}</div>
|
||||
<footer class="ledger__total">${t("ledger.totalAlloc")} <b data-total></b></footer>
|
||||
|
||||
@@ -19,6 +19,8 @@ const LEVELS = [
|
||||
["army.low", (s, f) => s.indicators.armyLoyalty <= 35, 1.7],
|
||||
["inflation.high", (s, f) => s.economy.inflation >= 6, 1.5],
|
||||
["deficit.high", (s, f) => f.deficit >= 8, 1.5],
|
||||
["world.slump", (s) => (s.world?.cycle ?? 0) <= -1.8, 1.4],
|
||||
["world.boom", (s) => (s.world?.cycle ?? 0) >= 1.8, 1.2],
|
||||
];
|
||||
|
||||
function candidates(state, tpl) {
|
||||
|
||||
Reference in New Issue
Block a user