summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/beingcommon.cpp3
-rw-r--r--src/resources/beinginfo.cpp1
-rw-r--r--src/resources/beinginfo.h7
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;