hitsound was accidently mandatory, but it is not.
This commit is contained in:
parent
6fc59dc5f2
commit
f66fd92a64
|
@ -967,6 +967,7 @@ void AttackSkillType::load(const XmlNode *sn, const XmlNode *attackBoostsNode,
|
||||||
throw megaglest_runtime_error("Damages percentages of projectiles don't sum up to 100 %");
|
throw megaglest_runtime_error("Damages percentages of projectiles don't sum up to 100 %");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(sn->hasChild("hitsound")==true){
|
||||||
//general hit sounds, individual ones can be set in projectiles
|
//general hit sounds, individual ones can be set in projectiles
|
||||||
const XmlNode *soundNode= sn->getChild("hitsound");
|
const XmlNode *soundNode= sn->getChild("hitsound");
|
||||||
if(soundNode->getAttribute("enabled")->getBoolValue()){
|
if(soundNode->getAttribute("enabled")->getBoolValue()){
|
||||||
|
@ -984,6 +985,7 @@ void AttackSkillType::load(const XmlNode *sn, const XmlNode *attackBoostsNode,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//splash
|
//splash
|
||||||
const XmlNode *splashNode= sn->getChild("splash");
|
const XmlNode *splashNode= sn->getChild("splash");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user