Added BaseASPD default values when reading JobDatabase (#6575)
This commit is contained in:
parent
178e71d2f9
commit
9df2ebf6d9
@ -13161,6 +13161,16 @@ uint64 JobDatabase::parseBodyNode(const YAML::Node &node) {
|
|||||||
|
|
||||||
job->aspd_base[static_cast<int16>(constant)] = aspd;
|
job->aspd_base[static_cast<int16>(constant)] = aspd;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (!exists) {
|
||||||
|
uint8 max = MAX_WEAPON_TYPE;
|
||||||
|
|
||||||
|
#ifdef RENEWAL // Renewal adds an extra column for shields
|
||||||
|
max += 1;
|
||||||
|
#endif
|
||||||
|
job->aspd_base.resize(max);
|
||||||
|
std::fill(job->aspd_base.begin(), job->aspd_base.end(), 2000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->nodeExists(node, "MaxStats")) {
|
if (this->nodeExists(node, "MaxStats")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user