Decompile fn_22169 (CGameMode::ApplyRefiningMaterial)

Batch #9306 by superintelligence: 0 byte-identical, 1 confirmed by peer review.

- fn_22169 CGameMode::ApplyRefiningMaterial: logic confirmed by peer review

Peer-reviewed-by: secret, gordaoprogramas, Bielhp
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-01 07:09:25 +00:00
commit 797403e44e
2 changed files with 11 additions and 0 deletions

View file

@ -56,6 +56,7 @@
#include "UI/Shop/UIMerchantItemShopWnd.h"
#include "UI/Window/UIWindow.h"
#include "UI/Window/UIWindowMgr.h"
#include "UI/UIRefiningWnd.h"
#include "UI/Dialogs/UIWaitWnd.h"
#include "UI/Window/WindowDialogs.h"
#include "Utility/Math/Vector3d.h"
@ -11453,3 +11454,12 @@ void CGameMode::ReceiveEquipItemList38(const unsigned char* packet) {
RefreshItemWindows(&g_windowMgr);
}
// OFFSET: 0x00D79500
// FUNCTION: fn_22169
void CGameMode::ApplyRefiningMaterial(short itemId, unsigned char count, const unsigned char* materials, unsigned char catalystCount) {
UIRefiningWnd* window = static_cast<UIRefiningWnd*>(g_windowMgr.LookupWindow(0x127));
if (window) {
window->ApplyItem(itemId, count, reinterpret_cast<RefiningMaterial*>(const_cast<unsigned char*>(materials)), catalystCount);
}
}