From d63b4e62476ede38249d257a1ed6bb9edebfe3bb Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 7 Nov 2026 06:47:42 +0000 Subject: [PATCH] Decompile fn_13619 (UIWeaponRefineWnd::SendMsg) Batch #13765 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_13619 UIWeaponRefineWnd::SendMsg: logic confirmed by peer review Peer-reviewed-by: Yommy, secret, SapitoSucio Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Items/UIWeaponRefineWnd.cpp | 40 +++++++++++++-------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/Source/UI/Items/UIWeaponRefineWnd.cpp b/Source/UI/Items/UIWeaponRefineWnd.cpp index c4896a22e..9c1b0212d 100644 --- a/Source/UI/Items/UIWeaponRefineWnd.cpp +++ b/Source/UI/Items/UIWeaponRefineWnd.cpp @@ -69,6 +69,26 @@ int UIWeaponRefineWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, s ITEM_INFO item; switch (message) { + case 31: { + const int itemId = static_cast(a); + this->itemIds.push_back(itemId); + this->indices.push_back(b); + + item.SetItemId(itemId); + item.unknown_0060 = 0; + item.identified = 1; + this->m_list->AddLine(item.DisplayName(0).c_str()); + return 0; + } + + case 18: + this->m_list->SendMsg(nullptr, 18, 0, 0, 0, 0); + return 0; + + case 19: + this->m_list->SendMsg(nullptr, 19, 0, 0, 0, 0); + return 0; + case 6: { const int response = static_cast(a); this->RecordResponse(response, b, c, this->m_list->selected); @@ -105,26 +125,6 @@ int UIWeaponRefineWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, s return 0; } - case 18: - this->m_list->SendMsg(nullptr, 18, 0, 0, 0, 0); - return 0; - - case 19: - this->m_list->SendMsg(nullptr, 19, 0, 0, 0, 0); - return 0; - - case 31: { - const int itemId = static_cast(a); - this->itemIds.push_back(itemId); - this->indices.push_back(b); - - item.SetItemId(itemId); - item.unknown_0060 = 0; - item.identified = 1; - this->m_list->AddLine(item.DisplayName(0).c_str()); - return 0; - } - case 123: { const auto* bytes = reinterpret_cast(a); UIWeaponRefineRecordHeader header;