Added BaseASPD default values when reading JobDatabase (#6575)

This commit is contained in:
Atemo 2022-01-31 23:08:48 +01:00 committed by GitHub
parent 178e71d2f9
commit 9df2ebf6d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13161,6 +13161,16 @@ uint64 JobDatabase::parseBodyNode(const YAML::Node &node) {
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")) {