Start ep now an argument of max-ep
Syntax is `<max-ep value="500" start-value="250" />`
This commit is contained in:
parent
31def0dc1a
commit
f22c96e503
|
@ -249,10 +249,9 @@ void UnitType::loaddd(int id,const string &dir, const TechTree *techTree,
|
||||||
addItemToVault(&(this->epRegeneration),this->epRegeneration);
|
addItemToVault(&(this->epRegeneration),this->epRegeneration);
|
||||||
|
|
||||||
//startEp
|
//startEp
|
||||||
|
if(parametersNode->getChild("max-ep")->hasAttribute("start-value")) {
|
||||||
if(parametersNode->hasChild("start-ep")) {
|
|
||||||
//checkItemInVault(&(this->startEp),this->startEp);
|
//checkItemInVault(&(this->startEp),this->startEp);
|
||||||
startEp= parametersNode->getChild("start-ep")->getAttribute("value")->getIntValue();
|
startEp= parametersNode->getChild("max-ep")->getAttribute("start-value")->getIntValue();
|
||||||
}
|
}
|
||||||
addItemToVault(&(this->startEp),this->startEp);
|
addItemToVault(&(this->startEp),this->startEp);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue