diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-06-22 12:56:02 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:19:38 +0100 |
commit | 84317c155f58704d118cee1580cc3520912db7f7 (patch) | |
tree | 8a0f5d6c0ec8f5dd51d6ee7db655146aec59413a | |
parent | 7bb46dfeeef808b3479b34dcba9243df5f96ee12 (diff) | |
download | crusader-rex-84317c155f58704d118cee1580cc3520912db7f7.tar.gz |
crusader: Fix charge and harry.
-rw-r--r-- | play.html | 2 | ||||
-rw-r--r-- | rules.js | 12 |
2 files changed, 7 insertions, 7 deletions
@@ -146,7 +146,7 @@ } .town.muster { opacity: 0.8; - border-color: blue; + border-color: red; z-index: 9; } .town.muster.highlight { @@ -8,7 +8,7 @@ // TODO: hide blocks in battle deployment and sallying etc // TODO: battle dialog messages -// TODO: nicer looking battle dialog +// TODO: nicer looking battle dialog -- reserve, castle*, field, field, castle*, reserve // TODO: battle dialog block order // TODO: draw phase @@ -1831,7 +1831,7 @@ function goto_combat_round(combat_round) { game.attacker[game.where] = besieged_player(game.where); if (old_attacker != game.attacker[game.where]) { console.log("NEW ATTACKER IS", game.attacker[game.where]); - log(game.attacker[game.where] + " is now the attacker."); + log(game.attacker[game.where] + " are now the attacker."); } return goto_declare_sally(); } @@ -2366,7 +2366,7 @@ function apply_storm_battle_hit(who) { function roll_attack(active, b, verb, is_charge) { game.hits = 0; - let fire = block_fire_power(b, game.where); + let fire = block_fire_power(b, game.where) + is_charge; let printed_fire = block_printed_fire_power(b); let rolls = []; let steps = game.steps[b]; @@ -2484,9 +2484,9 @@ function storm_withdraw_with_block(b) { function harry_with_block(b) { // TODO: fire, hits, retreat OR fire, retreat, hits order ? if (block_plural(b)) - roll_attack(game.active, b, "harry", 1); + roll_attack(game.active, b, "harry", 0); else - roll_attack(game.active, b, "harries", 1); + roll_attack(game.active, b, "harries", 0); game.who = b; game.state = 'harry'; } @@ -2633,7 +2633,7 @@ function make_battle_view() { flash: game.flash }; - battle.title = game.attacker[game.where] + " attacks " + game.where; + battle.title = game.attacker[game.where] + " attack " + game.where; if (game.combat_round == 0) { battle.title += " \u2014 combat deployment"; } |