From 67898cf2e226dcf3c4b86aa341aa034e5cb05379 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 00:41:03 +0000 Subject: [PATCH] Decompile fn_14993 (EnchantUI::CUIUpgradeRandom::Slot16) Batch #6339 by superintelligence: 0 byte-identical, 1 confirmed by peer review. - fn_14993 EnchantUI::CUIUpgradeRandom::Slot16: logic confirmed by peer review Peer-reviewed-by: eAthena, alisonrag Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Enchant/EnchantUI.h | 2 ++ Source/UI/Enchant/UIEnchantUI.cpp | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/Source/UI/Enchant/EnchantUI.h b/Source/UI/Enchant/EnchantUI.h index 41945db8..e8e81670 100644 --- a/Source/UI/Enchant/EnchantUI.h +++ b/Source/UI/Enchant/EnchantUI.h @@ -81,6 +81,7 @@ public: /* 00A8 */ uint64_t group; /* 00B0 */ int unknown_00B0; + void Slot16() override; virtual void Slot54(int argument1, int argument2); virtual void Slot55() = 0; virtual void Slot56() = 0; @@ -116,6 +117,7 @@ public: class CUIUpgradeRandom : public CUIUpgradeEnchantPage { public: + void Slot16() override; void Slot55() override; }; diff --git a/Source/UI/Enchant/UIEnchantUI.cpp b/Source/UI/Enchant/UIEnchantUI.cpp index 1a7131cb..5ba9904e 100644 --- a/Source/UI/Enchant/UIEnchantUI.cpp +++ b/Source/UI/Enchant/UIEnchantUI.cpp @@ -379,3 +379,11 @@ void CUIEnchantUI::Slot53() { this->Slot15(this->geometry.width, this->geometry.height); this->Slot16(); } + +// OFFSET: 0x00A06170 +// FUNCTION: fn_14993 +void EnchantUI::CUIUpgradeRandom::Slot16() { + EnchantUI::CUIEnchantPage::Slot16(); + this->enchantList->unknown_00C4 = 1; + this->enchantList->Invalidate(); +}