summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-09 18:57:45 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-09 18:57:45 +0300
commitf5ccf6d55d650370ee85d92d9f2ed747ed41e200 (patch)
tree69e7bca54190b6cac6c2bbb60b4db19230875345 /src/gui
parent4fe5fd9a471760c8ce54c71c8cdf3f27c8fb27ae (diff)
downloadmv-f5ccf6d55d650370ee85d92d9f2ed747ed41e200.tar.gz
mv-f5ccf6d55d650370ee85d92d9f2ed747ed41e200.tar.bz2
mv-f5ccf6d55d650370ee85d92d9f2ed747ed41e200.tar.xz
mv-f5ccf6d55d650370ee85d92d9f2ed747ed41e200.zip
Add to skills miss effect.
New skill attribute missEffectId.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/skilldata.cpp3
-rw-r--r--src/gui/widgets/skilldata.h1
-rw-r--r--src/gui/windows/skilldialog.cpp2
3 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/widgets/skilldata.cpp b/src/gui/widgets/skilldata.cpp
index 7accf214e..6137d768b 100644
--- a/src/gui/widgets/skilldata.cpp
+++ b/src/gui/widgets/skilldata.cpp
@@ -43,7 +43,8 @@ SkillData::SkillData() :
soundMiss(std::string(), 0),
updateEffectId(-1),
removeEffectId(-1),
- hitEffectId(-1)
+ hitEffectId(-1),
+ missEffectId(-1)
{
}
diff --git a/src/gui/widgets/skilldata.h b/src/gui/widgets/skilldata.h
index d374e7ec7..0317eccff 100644
--- a/src/gui/widgets/skilldata.h
+++ b/src/gui/widgets/skilldata.h
@@ -46,6 +46,7 @@ struct SkillData final
int updateEffectId;
int removeEffectId;
int hitEffectId;
+ int missEffectId;
SkillData();
A_DELETE_COPY(SkillData)
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp
index 2e2e69fa9..2cf84c54c 100644
--- a/src/gui/windows/skilldialog.cpp
+++ b/src/gui/windows/skilldialog.cpp
@@ -376,6 +376,8 @@ void SkillDialog::loadXmlFile(const std::string &fileName)
node, "removeEffectId", -1);
data->hitEffectId = XML::getProperty(
node, "hitEffectId", -1);
+ data->missEffectId = XML::getProperty(
+ node, "missEffectId", -1);
skill->addData(level, data);
}