summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-07-30 13:45:51 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 13:11:26 +0100
commitb07c41babd3590ac3fdd95023ec53d8bd3c03a2e (patch)
tree789463365d36c9a6c53ae5134f0087a485a5d620
parent1905a8fa2d546504e4c0e7433ee949e94c7d1057 (diff)
downloadrommel-in-the-desert-b07c41babd3590ac3fdd95023ec53d8bd3c03a2e.tar.gz
Quadruple dice in Assault Fortress battles.
-rw-r--r--rules.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index b462c2a..ebc9d88 100644
--- a/rules.js
+++ b/rules.js
@@ -3354,11 +3354,13 @@ function roll_battle_fire(who, tc) {
let fc = unit_class[who]
let cv = unit_cv(who)
- // Double dice during assault and non-armor defenders in fortress!
+ // Double dice during assault
if (is_assault_battle())
- cv += cv
- else if (fc !== ARMOR && is_fortress_defensive_fire())
- cv += cv
+ cv *= 2
+
+ // Double dice for non-armor defenders in fortress!
+ if (fc !== ARMOR && is_fortress_defensive_fire())
+ cv *= 2
let fp = FIREPOWER_MATRIX[fc][tc]
let result = []