summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-01-19 14:52:44 +0100
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:12:55 +0100
commitedbede5d7029137e3135eb1a5f811531032c7d63 (patch)
treec49c246c0e6e193a61a83c711af4b744d3b0e002
parent387aaf2300856d45317573a2e4612f22d63ffae3 (diff)
downloadrichard-iii-edbede5d7029137e3135eb1a5f811531032c7d63.tar.gz
Log hits taken in battle.
-rw-r--r--rules.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index bf1d8e1..40c73d7 100644
--- a/rules.js
+++ b/rules.js
@@ -2496,6 +2496,7 @@ function apply_hit(who) {
game.flash = block_name(who) + " takes " + n + " hit.";
else
game.flash = block_name(who) + " takes " + n + " hits.";
+ log_battle(game.flash);
while (n-- > 0) {
reduce_block(who);
game.hits--;