From 307818fecbd1f258c668a1667e76e950e9d22622 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 10 Mar 2012 18:04:32 +0300 Subject: Add to skills missile particle effect and hit/miss sounds. Add to skills use effect 100000 + skillid on target. --- src/being.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/being.h') diff --git a/src/being.h b/src/being.h index 859ebf26c..7ad2199ff 100644 --- a/src/being.h +++ b/src/being.h @@ -136,7 +136,8 @@ class Being : public ActorSprite, public ConfigListener CRITICAL = 0x0a, MULTI = 0x08, REFLECT = 0x04, - FLEE = 0x0b + FLEE = 0x0b, + SKILL = 0xff }; enum Reachable @@ -253,8 +254,10 @@ class Being : public ActorSprite, public ConfigListener * @param attacker the attacking being * @param damage the amount of damage recieved (0 means miss) * @param type the attack type + * @param id skill id */ - void takeDamage(Being *attacker, int damage, AttackType type); + void takeDamage(Being *attacker, int damage, + AttackType type, int id = 0); /** * Handles an attack of another being by this being. @@ -265,6 +268,8 @@ class Being : public ActorSprite, public ConfigListener */ virtual void handleAttack(Being *victim, int damage, AttackType type); + virtual void handleSkill(Being *victim, int damage, int skillId); + const ItemInfo *getEquippedWeapon() const { return mEquippedWeapon; } -- cgit v1.2.3-70-g09d2