diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-07 20:44:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-07 20:44:16 +0300 |
commit | 04716c42ec49bfbb42296dd8980d6f8dd1c09e59 (patch) | |
tree | a2cf6e57036d96609a653cf68f2adc9255fec5ba /src/resources/beinginfo.cpp | |
parent | 8ec4e8575001e50ac2917b0a1599d2a6223aa337 (diff) | |
download | plus-04716c42ec49bfbb42296dd8980d6f8dd1c09e59.tar.gz plus-04716c42ec49bfbb42296dd8980d6f8dd1c09e59.tar.bz2 plus-04716c42ec49bfbb42296dd8980d6f8dd1c09e59.tar.xz plus-04716c42ec49bfbb42296dd8980d6f8dd1c09e59.zip |
Add additional attributes to missile particle in attacks.
Diffstat (limited to 'src/resources/beinginfo.cpp')
-rw-r--r-- | src/resources/beinginfo.cpp | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/resources/beinginfo.cpp b/src/resources/beinginfo.cpp index 326d5fd9a..93d8a5d4b 100644 --- a/src/resources/beinginfo.cpp +++ b/src/resources/beinginfo.cpp @@ -47,8 +47,15 @@ Attack *BeingInfo::empty = new Attack(SpriteAction::ATTACK, SpriteAction::ATTACKSKY, SpriteAction::ATTACKWATER, SpriteAction::ATTACKRIDE, - -1, -1, -1, -1, - std::string()); + -1, + -1, + -1, + -1, + std::string(), + 32.0F, + 7.0F, + 8.0F, + 3000); BeingInfo::BeingInfo() : mDisplay(), @@ -184,7 +191,11 @@ void BeingInfo::addAttack(const int id, const int hitEffectId, const int criticalHitEffectId, const int missEffectId, - const std::string &missileParticle) + const std::string &missileParticle, + const float missileZ, + const float missileSpeed, + const float missileDieDistance, + const int missileLifeTime) { delete mAttacks[id]; mAttacks[id] = new Attack(action, @@ -195,7 +206,11 @@ void BeingInfo::addAttack(const int id, hitEffectId, criticalHitEffectId, missEffectId, - missileParticle); + missileParticle, + missileZ, + missileSpeed, + missileDieDistance, + missileLifeTime); } void BeingInfo::clear() |