diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-09 18:57:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-09 18:57:45 +0300 |
commit | f5ccf6d55d650370ee85d92d9f2ed747ed41e200 (patch) | |
tree | 69e7bca54190b6cac6c2bbb60b4db19230875345 /src/gui | |
parent | 4fe5fd9a471760c8ce54c71c8cdf3f27c8fb27ae (diff) | |
download | mv-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.cpp | 3 | ||||
-rw-r--r-- | src/gui/widgets/skilldata.h | 1 | ||||
-rw-r--r-- | src/gui/windows/skilldialog.cpp | 2 |
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); } |