From ecfed43ca254a386b353f671855337ce41cc1bca Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 16:39:05 +0000 Subject: [PATCH] Decompile fn_45558 (CPlayerSkillBundle::RevertLevelChange) Batch #16238 by kyoshi: 0 byte-identical, 1 confirmed by peer review. - fn_45558 CPlayerSkillBundle::RevertLevelChange: logic confirmed by peer review Peer-reviewed-by: Yommy, youko, Toshiro Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Skills/PlayerSkillBundle.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/Contents/Skills/PlayerSkillBundle.cpp b/Source/Contents/Skills/PlayerSkillBundle.cpp index 75d2974df..9f1c86bac 100644 --- a/Source/Contents/Skills/PlayerSkillBundle.cpp +++ b/Source/Contents/Skills/PlayerSkillBundle.cpp @@ -390,6 +390,16 @@ bool IsIndexedSkill(int id) { } // OFFSET: 0x007719D0 +// FUNCTION: fn_45558 +void CPlayerSkillBundle::RevertLevelChange(const CSkillInfo& current, CSkillInfo& value) { + const auto entry = this->levelChanges.find(value.id); + if (entry != this->levelChanges.end()) { + value.level = entry->second.previous; + if (current.level == entry->second.target) { + this->removals.push_back(current.id); + } + } +} // OFFSET: 0x00771A50 // FUNCTION: fn_45559