From 04607640309c0f9bd3925053c9b17deeb3f39dfe Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Fri, 27 Oct 2023 17:18:19 +0200 Subject: remove unused code and comments --- rules.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 6dadb96..2bc54cf 100644 --- a/rules.js +++ b/rules.js @@ -1684,13 +1684,8 @@ states.random_event = { inactive: "to do random event", prompt() { view.prompt = "Roll for a random event." - // gen_action("reset") // XXX debug gen_action("roll") }, - reset() { - // XXX DEBUG - // goto_suez_crisis() - }, roll() { let rnd1 = roll_d6() let rnd2 = roll_d6() @@ -2685,13 +2680,8 @@ states.gov_deployment = { for (let u of list) { let loc = unit_loc(u) if (loc === to) { - if (unit_box(u) === PTL) { - log(`U${u} in A${loc}`) - set_unit_box(u, OPS) - } else { - log(`U${u} in A${loc} on PTL`) - set_unit_box(u, PTL) - } + log(`U${u} in A${loc} on PTL`) + set_unit_box(u, PTL) } else { log(`U${u} in A${loc}`) set_unit_loc(u, to) @@ -2777,7 +2767,6 @@ states.fln_deployment = { } } - // XXX confirmation when no units are activated? gen_action("end_deployment") }, unit(u) { -- cgit v1.2.3