From 7a51cb9add43c5e87e5ff685ab2800976629e122 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 12 Jul 2023 22:16:47 +0200 Subject: Fix Damnatio remove legacy call. --- rules.js | 14 +++++++------- 1 file 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 } -- cgit v1.2.3