summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-03-17 13:12:11 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-03-17 21:01:42 +0100
commitf6a8ec43dbf3eca8d8a47ed986f92ba18e0d7335 (patch)
treefdaba605665dc52f868e7cb7c5f5967e9896255f /crawl-ref/source/fight.h
parent4831c0482cccb23b6da8fb1b2d547c8178bcad81 (diff)
downloadcrawl-ref-f6a8ec43dbf3eca8d8a47ed986f92ba18e0d7335.tar.gz
crawl-ref-f6a8ec43dbf3eca8d8a47ed986f92ba18e0d7335.zip
Count stabs on the action dump.
This implementation breaks them down by UCAT_type, which is probably too detailed. Ideally, I'd want just two categories: sleep/para stabs (ie, those with no roll that deal massive damage) and the rest (a bit of extra damage). It doesn't matter where we coalesce them, though, so it'd be easy to combine the data at output time.
Diffstat (limited to 'crawl-ref/source/fight.h')
-rw-r--r--crawl-ref/source/fight.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/fight.h b/crawl-ref/source/fight.h
index a7861179ea..6c026e95f3 100644
--- a/crawl-ref/source/fight.h
+++ b/crawl-ref/source/fight.h
@@ -23,6 +23,7 @@ enum unchivalric_attack_type
UCAT_PARALYSED,
UCAT_SLEEPING,
UCAT_ALLY,
+ NUM_UCAT
};
bool fight_melee(actor *attacker, actor *defender, bool *did_hit = NULL,