diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-03-17 02:05:52 +0100 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-03-17 02:05:52 +0100 |
commit | 45c3f943b42423dbe162bfac4a57cad013ba0630 (patch) | |
tree | 0bb0caaa15af42f1d2c3bc14061202aacf9bee6d /src/resources | |
parent | fe153c7b2598262281477882a2ef82400b24f5b5 (diff) | |
download | mana-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')
-rw-r--r-- | src/resources/iteminfo.h | 4 |
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; |