From 686815641bedccdf57a66b916a0aad52f0dddfe5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 18 Apr 2016 21:08:07 +0300 Subject: Add into being dbs, shared attribute "quickActionEffect". For now unused. --- src/resources/beingcommon.cpp | 3 +++ src/resources/beinginfo.cpp | 1 + src/resources/beinginfo.h | 7 +++++++ 3 files changed, 11 insertions(+) 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; -- cgit v1.2.3-60-g2f50