From 9df2ebf6d954fdbff38448202483178a576ec661 Mon Sep 17 00:00:00 2001 From: Atemo Date: Mon, 31 Jan 2022 23:08:48 +0100 Subject: [PATCH] Added BaseASPD default values when reading JobDatabase (#6575) --- src/map/pc.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/map/pc.cpp b/src/map/pc.cpp index 8e2bec585f..2ebe900990 100755 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -13161,6 +13161,16 @@ uint64 JobDatabase::parseBodyNode(const YAML::Node &node) { job->aspd_base[static_cast(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")) {