From 461bd3d488e93bc589224d1e497b38c78b402bed Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Wed, 30 Oct 2024 23:16:33 -0700 Subject: [PATCH] fix incorrect stat computation during mat reset; fixes #578 --- src/SaveFileFormats.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SaveFileFormats.cc b/src/SaveFileFormats.cc index 4e052966..2c3824c2 100644 --- a/src/SaveFileFormats.cc +++ b/src/SaveFileFormats.cc @@ -1197,7 +1197,7 @@ void PSOBBCharacterFile::recompute_stats(std::shared_ptr level this->disp.stats.char_stats.evp += (this->get_material_usage(MaterialType::EVADE) * 2); this->disp.stats.char_stats.dfp += (this->get_material_usage(MaterialType::DEF) * 2); this->disp.stats.char_stats.lck += (this->get_material_usage(MaterialType::LUCK) * 2); - this->disp.stats.char_stats.hp += (this->get_material_usage(MaterialType::HP) * 2); + // Note: HP in this structure is unaffected by material usage } static uint16_t crc16(const void* data, size_t size) {