diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-06 03:54:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-06 03:54:00 +0300 |
commit | 4fb8f9f0905038f3180f108ec56b2a326ceb3483 (patch) | |
tree | 94b221f6bc81e07d565d2828dac078f471854b81 /src/being.h | |
parent | df9a705c331da29cb0582539a817f68c79d4f267 (diff) | |
download | plus-4fb8f9f0905038f3180f108ec56b2a326ceb3483.tar.gz plus-4fb8f9f0905038f3180f108ec56b2a326ceb3483.tar.bz2 plus-4fb8f9f0905038f3180f108ec56b2a326ceb3483.tar.xz plus-4fb8f9f0905038f3180f108ec56b2a326ceb3483.zip |
Add particle effect miss-effect-id to items and monsters.
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 6 |
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); |