From 0de391b6566f347d546be4dc56999b3c502fa46b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 9 Apr 2015 17:39:53 +0300 Subject: Add to skill attribute for hit effect on target. New skills.xml attribute: hitEffectId --- src/gui/widgets/skilldata.cpp | 3 ++- src/gui/widgets/skilldata.h | 1 + src/gui/windows/skilldialog.cpp | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/gui/widgets/skilldata.cpp b/src/gui/widgets/skilldata.cpp index f06dede07..7accf214e 100644 --- a/src/gui/widgets/skilldata.cpp +++ b/src/gui/widgets/skilldata.cpp @@ -42,7 +42,8 @@ SkillData::SkillData() : soundHit(std::string(), 0), soundMiss(std::string(), 0), updateEffectId(-1), - removeEffectId(-1) + removeEffectId(-1), + hitEffectId(-1) { } diff --git a/src/gui/widgets/skilldata.h b/src/gui/widgets/skilldata.h index 03bc021a9..d374e7ec7 100644 --- a/src/gui/widgets/skilldata.h +++ b/src/gui/widgets/skilldata.h @@ -45,6 +45,7 @@ struct SkillData final int updateEffectId; int removeEffectId; + int hitEffectId; SkillData(); A_DELETE_COPY(SkillData) diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp index 31cf81ad4..a835666f3 100644 --- a/src/gui/windows/skilldialog.cpp +++ b/src/gui/windows/skilldialog.cpp @@ -374,6 +374,8 @@ void SkillDialog::loadXmlFile(const std::string &fileName) node, "levelUpEffectId", -1); data->removeEffectId = XML::getProperty( node, "removeEffectId", -1); + data->hitEffectId = XML::getProperty( + node, "hitEffectId", -1); skill->addData(level, data); } -- cgit v1.2.3-70-g09d2