From 45c3f943b42423dbe162bfac4a57cad013ba0630 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Thu, 17 Mar 2011 02:05:52 +0100 Subject: Simplified the get/setAttackRange() functions as requested. The attack range is still hardcoded for Manaserv as long as generic equipment handling hasn't been implemented. --- src/resources/iteminfo.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/resources/iteminfo.h') diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h index c7e97b3c..2fbcc228 100644 --- a/src/resources/iteminfo.h +++ b/src/resources/iteminfo.h @@ -163,7 +163,9 @@ class ItemInfo * Attack action sub-types (bow, sword, ...) are defined in items.xml. */ std::string mAttackAction; - int mAttackRange; /**< Attack range, will be -1 if no weapon. */ + + /** Attack range, will be equal to ATTACK_RANGE_NOT_SET if no weapon. */ + int mAttackRange; // Particle to be shown when weapon attacks std::string mMissileParticle; -- cgit v1.2.3-60-g2f50