summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-27 17:18:19 +0200
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-27 17:18:19 +0200
commit04607640309c0f9bd3925053c9b17deeb3f39dfe (patch)
tree39f8b657ec186814b363bfd3d65e45a0d1fe673b /rules.js
parentbca84a7293c2573aa5a37228964728ffd74dc735 (diff)
downloadalgeria-04607640309c0f9bd3925053c9b17deeb3f39dfe.tar.gz
remove unused code and comments
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js15
1 files changed, 2 insertions, 13 deletions
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) {