summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-07-12 22:16:47 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-12 22:16:47 +0200
commit7a51cb9add43c5e87e5ff685ab2800976629e122 (patch)
treeacbfa1b8dbed2ee9ffcd524e87d75f291da1f03c /rules.js
parentb8d750a17e753c206a178d45980e7f55680efe69 (diff)
downloadtime-of-crisis-7a51cb9add43c5e87e5ff685ab2800976629e122.tar.gz
Fix Damnatio remove legacy call.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/rules.js b/rules.js
index 6621b0f..b7a55c3 100644
--- a/rules.js
+++ b/rules.js
@@ -4034,17 +4034,17 @@ function roll_spiculum_dice() {
let n = roll_dice(2, 3 + get_roman_drm())
if (n > 0) {
if (game.combat.type === "militia" && has_militia_castra(game.where)) {
- log("Castra reduces 1 hit")
+ log("Castra reduced 1 hit.")
game.combat.castra_used = 1
n -= 1
}
if (game.combat.type === "general" && has_general_castra(game.combat.target)) {
- log("Castra reduces 1 hit")
+ log("Castra reduced 1 hit.")
game.combat.castra_used = 1
n -= 1
}
if (game.combat.type === "barbarians" && get_barbarian_location(SHAPUR) === game.where) {
- log("Shapur I reduces 1 hit")
+ log("Shapur I reduced 1 hit.")
game.combat.castra_used = 1
n -= 1
}
@@ -4060,15 +4060,15 @@ function roll_attacker_dice() {
n += roll_general_dice(game.combat.attacker)
if (n > 0 && !game.combat.castra_used) {
if (game.combat.type === "militia" && has_militia_castra(game.where)) {
- log("Castra reduces 1 hit")
+ log("Castra reduced 1 hit.")
n -= 1
}
if (game.combat.type === "general" && has_general_castra(game.combat.target)) {
- log("Castra reduces 1 hit")
+ log("Castra reduced 1 hit.")
n -= 1
}
if (game.combat.type === "barbarians" && get_barbarian_location(SHAPUR) === game.where) {
- log("Shapur I reduces 1 hit")
+ log("Shapur I reduced 1 hit.")
n -= 1
}
}
@@ -4440,7 +4440,7 @@ function goto_combat_victory() {
goto_combat_victory_defender()
}
-function remove_legacy(p, reason, n) {
+function remove_legacy(p, n) {
log(PLAYER_NAME[p] + " -" + n + " Legacy.")
game.legacy[p] -= n
}