summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.h
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-03-17 02:05:52 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-03-17 02:05:52 +0100
commit45c3f943b42423dbe162bfac4a57cad013ba0630 (patch)
tree0bb0caaa15af42f1d2c3bc14061202aacf9bee6d /src/resources/iteminfo.h
parentfe153c7b2598262281477882a2ef82400b24f5b5 (diff)
downloadMana-45c3f943b42423dbe162bfac4a57cad013ba0630.tar.gz
Mana-45c3f943b42423dbe162bfac4a57cad013ba0630.tar.bz2
Mana-45c3f943b42423dbe162bfac4a57cad013ba0630.tar.xz
Mana-45c3f943b42423dbe162bfac4a57cad013ba0630.zip
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.
Diffstat (limited to 'src/resources/iteminfo.h')
-rw-r--r--src/resources/iteminfo.h4
1 files changed, 3 insertions, 1 deletions
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;