summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/being.h b/src/being.h
index 379e7a179..58d3ea21c 100644
--- a/src/being.h
+++ b/src/being.h
@@ -137,7 +137,8 @@ class Being : public ActorSprite, public ConfigListener
MULTI = 0x08,
REFLECT = 0x04,
FLEE = 0x0b,
- SKILL = 0xff
+ SKILL = 0xff,
+ MISS = 0xffff // pseudo value for miss attacks
};
enum Reachable
@@ -834,6 +835,9 @@ class Being : public ActorSprite, public ConfigListener
void recalcSpritesOrder();
+ int getHitEffect(const Being *const attacker,
+ const AttackType type, const int attackId) const;
+
static uint8_t genderToInt(const Gender sex);
static Gender intToGender(uint8_t sex);