summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-07-13 15:36:46 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 11:54:52 +0100
commitca9dd7a2749b728349ec753bca6534d3ea33b466 (patch)
tree02c914ebbae02ec565a4194517b94a98b752c592 /rules.js
parent50ab3e193b1f5d3aa253948b6878b6b99826995f (diff)
downloadwilderness-war-ca9dd7a2749b728349ec753bca6534d3ea33b466.tar.gz
Fix lint issues.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/rules.js b/rules.js
index b0ecff2..bd7d4cd 100644
--- a/rules.js
+++ b/rules.js
@@ -9368,9 +9368,6 @@ exports.setup = function (seed, scenario, options) {
log: [],
})
- if (false)
- delete game.summary
-
switch (scenario) {
default:
// fallthrough
@@ -9670,9 +9667,7 @@ exports.view = function(state, current) {
} else {
states[game.state].prompt()
if (game.active === game.phasing) {
- if (game.state !== 'demolish_fort' &&
- game.state !== 'demolish_stockade' &&
- game.state !== 'demolish_fieldworks')
+ if (game.state !== 'demolish_fort' && game.state !== 'demolish_stockade' && game.state !== 'demolish_fieldworks')
gen_action_demolish()
}
gen_action_undo()