diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-18 21:08:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-18 21:08:07 +0300 |
commit | 686815641bedccdf57a66b916a0aad52f0dddfe5 (patch) | |
tree | 1e8892695cca8a01329bf0eab0c98159e2f74534 /src/resources | |
parent | 0a29d8b9786d965a5ab14911d3e004bbd58de0b7 (diff) | |
download | mv-686815641bedccdf57a66b916a0aad52f0dddfe5.tar.gz mv-686815641bedccdf57a66b916a0aad52f0dddfe5.tar.bz2 mv-686815641bedccdf57a66b916a0aad52f0dddfe5.tar.xz mv-686815641bedccdf57a66b916a0aad52f0dddfe5.zip |
Add into being dbs, shared attribute "quickActionEffect".
For now unused.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/beingcommon.cpp | 3 | ||||
-rw-r--r-- | src/resources/beinginfo.cpp | 1 | ||||
-rw-r--r-- | src/resources/beinginfo.h | 7 |
3 files changed, 11 insertions, 0 deletions
diff --git a/src/resources/beingcommon.cpp b/src/resources/beingcommon.cpp index a64f33593..aba464158 100644 --- a/src/resources/beingcommon.cpp +++ b/src/resources/beingcommon.cpp @@ -50,6 +50,9 @@ void BeingCommon::readBasicAttributes(BeingInfo *const info, info->setHpBarOffsetX(XML::getProperty(node, "hpBarOffsetX", 0)); info->setHpBarOffsetY(XML::getProperty(node, "hpBarOffsetY", 0)); + info->setQuickActionEffectId(XML::getProperty(node, + "quickActionEffect", -1)); + unsigned char block = 0; std::string walkStr = XML::getProperty( node, "walkType", "walk"); diff --git a/src/resources/beinginfo.cpp b/src/resources/beinginfo.cpp index 0cd311554..605a91ce4 100644 --- a/src/resources/beinginfo.cpp +++ b/src/resources/beinginfo.cpp @@ -93,6 +93,7 @@ BeingInfo::BeingInfo() : mSitDirectionType(1), mDeadDirectionType(1), mAttackDirectionType(1), + mQuickActionEffectId(-1), mStaticMaxHP(false), mTargetSelection(true), mAllowDelete(true) diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h index e98d48a41..c1a9ccd7b 100644 --- a/src/resources/beinginfo.h +++ b/src/resources/beinginfo.h @@ -319,6 +319,12 @@ class BeingInfo final int getAllowDelete() const A_WARN_UNUSED { return mAllowDelete; } + void setQuickActionEffectId(const int n) + { mQuickActionEffectId = n; } + + int getQuickActionEffectId() const A_WARN_UNUSED + { return mQuickActionEffectId; } + void setColorsList(const std::string &name); std::string getColor(const ItemColor idx) const A_WARN_UNUSED; @@ -378,6 +384,7 @@ class BeingInfo final int mSitDirectionType; int mDeadDirectionType; int mAttackDirectionType; + int mQuickActionEffectId; bool mStaticMaxHP; bool mTargetSelection; bool mAllowDelete; |