From 8a67e721880959b431d220e2d1fd5b60a4f11ad7 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Fri, 29 Apr 2011 01:21:45 +0200 Subject: Added customizable on-hit effects for characters. This patch adds support for the following two parameters in weapon items: hit-effect-id: Effect triggered on the victim on normal hit. critical-hit-effect-id: Triggered on the victim on critical hit. (Specified in effects.xml) The patch also permits the use of custom defaults set in paths.xml by setting the following keys: (Paths are relative to the 'particles' key value, here.) hitEffectId: defaulted to effect id 26. criticalHitEffectId: defaulted to effect id 28. Resolves: Mana-mantis #337. Reviewed-by: bcs86 --- src/being.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/being.h') diff --git a/src/being.h b/src/being.h index a4e2e443..bc749a3a 100644 --- a/src/being.h +++ b/src/being.h @@ -176,6 +176,9 @@ class Being : public ActorSprite, public EventListener */ virtual void handleAttack(Being *victim, int damage, AttackType type); + const ItemInfo *getEquippedWeapon() const + { return mEquippedWeapon; } + /** * Returns the name of the being. */ -- cgit v1.2.3-70-g09d2