summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-09-16 00:32:56 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 13:11:27 +0100
commite40e0171938dfe33c7069f2ca5c199a294bcd586 (patch)
tree473bd1b9a1ecb394d1c7679b7416add22bd5d955 /rules.js
parented3fbab5440ea95bf04d10880f178681a379ff5b (diff)
downloadrommel-in-the-desert-e40e0171938dfe33c7069f2ca5c199a294bcd586.tar.gz
Show eliminated units off to the side of the Qattara depression.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 31e5a6c..8d55078 100644
--- a/rules.js
+++ b/rules.js
@@ -132,6 +132,7 @@ const ALLIED_QUEUE = 49
// Free deployment holding box
const DEPLOY = 1
+const ELIMINATED = 2
// Off board optional 1942 Malta reinforcements
const MALTA = 4
@@ -439,6 +440,7 @@ function set_unit_fired(u) {
function eliminate_unit(u) {
invalidate_caches()
game.units[u] = 0
+ set_unit_hex(u, ELIMINATED)
hide_unit(u)
}