diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-03 18:01:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-03 18:17:57 +0300 |
commit | 7f299fa18a883f5e7392b00764aa1c4d2c41b212 (patch) | |
tree | f95e6ac025e652ea63adec4a38f51a8a665de9db /src/resources/db/itemdb.cpp | |
parent | 510c8595205081a8c19002ce46b1cc0de35e59c2 (diff) | |
download | plus-7f299fa18a883f5e7392b00764aa1c4d2c41b212.tar.gz plus-7f299fa18a883f5e7392b00764aa1c4d2c41b212.tar.bz2 plus-7f299fa18a883f5e7392b00764aa1c4d2c41b212.tar.xz plus-7f299fa18a883f5e7392b00764aa1c4d2c41b212.zip |
Add rideattack-action into item db.
Diffstat (limited to 'src/resources/db/itemdb.cpp')
-rw-r--r-- | src/resources/db/itemdb.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp index 189288bf1..11b6f47f4 100644 --- a/src/resources/db/itemdb.cpp +++ b/src/resources/db/itemdb.cpp @@ -286,6 +286,8 @@ void ItemDB::loadXmlFile(const std::string &fileName, int &tagNum) node, "skyattack-action", ""); std::string waterAttackAction = XML::getProperty( node, "waterattack-action", ""); + std::string rideAttackAction = XML::getProperty( + node, "rideattack-action", ""); std::string drawBefore = XML::getProperty(node, "drawBefore", ""); std::string drawAfter = XML::getProperty(node, "drawAfter", ""); const int pet = XML::getProperty(node, "pet", 0); @@ -386,6 +388,7 @@ void ItemDB::loadXmlFile(const std::string &fileName, int &tagNum) itemInfo->setAttackAction(attackAction); itemInfo->setSkyAttackAction(skyAttackAction); itemInfo->setWaterAttackAction(waterAttackAction); + itemInfo->setRideAttackAction(rideAttackAction); itemInfo->setAttackRange(attackRange); itemInfo->setMissileParticleFile(missileParticle); itemInfo->setHitEffectId(hitEffectId); |