From 4fb8f9f0905038f3180f108ec56b2a326ceb3483 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 6 Oct 2012 03:54:00 +0300 Subject: Add particle effect miss-effect-id to items and monsters. --- src/being.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/being.h') 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); -- cgit v1.2.3-70-g09d2