diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-05 23:39:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-06 00:33:02 +0300 |
commit | d8fca9f196ad59be5b211325ac2d70e29379e825 (patch) | |
tree | bb65fde6f734283be151b5d21c771f425d84ef3e /src/resources/beinginfo.cpp | |
parent | 69b5220d914fb3b874622dcbf8e0fbd4fd73d1f7 (diff) | |
download | ManaVerse-d8fca9f196ad59be5b211325ac2d70e29379e825.tar.gz ManaVerse-d8fca9f196ad59be5b211325ac2d70e29379e825.tar.bz2 ManaVerse-d8fca9f196ad59be5b211325ac2d70e29379e825.tar.xz ManaVerse-d8fca9f196ad59be5b211325ac2d70e29379e825.zip |
Fix default particle effects in attacks.
Was broken in previous commits.
Also add default value for "effectId" in paths.xml (by default -1)
Diffstat (limited to 'src/resources/beinginfo.cpp')
-rw-r--r-- | src/resources/beinginfo.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/resources/beinginfo.cpp b/src/resources/beinginfo.cpp index 9ee0f3de9..eef4ba7b7 100644 --- a/src/resources/beinginfo.cpp +++ b/src/resources/beinginfo.cpp @@ -22,6 +22,7 @@ #include "resources/beinginfo.h" +#include "configuration.h" #include "logger.h" #include "utils/dtor.h" @@ -132,3 +133,13 @@ void BeingInfo::clear() delete empty; empty = nullptr; } + +void BeingInfo::init() +{ + if (empty) + { + empty->mEffectId = paths.getIntValue("effectId"); + empty->mHitEffectId = paths.getIntValue("hitEffectId"); + empty->mCriticalHitEffectId = paths.getIntValue("criticalHitEffectId"); + } +} |