Decompile 2 functions in Source/Client/SessionState.cpp, Source/Client/Session.cpp, ...

Batch #8364 by Romain: 0 byte-identical, 2 confirmed by peer review.

- fn_24231 CSession::SetJob: logic confirmed by peer review
- fn_23516 CSession::RefreshSkillTree: logic confirmed by peer review

Peer-reviewed-by: eAthena, System4z, vinnyamancio
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-10-31 16:58:23 +00:00
commit f77073589f
3 changed files with 39 additions and 0 deletions

View file

@ -16,6 +16,7 @@
#include "Contents/World/World.h"
#include "Script/LuaScript.h"
#include "UI/Items/UIEquipWnd.h"
#include "UI/Window/UIBasicInfoWnd.h"
#include "UI/Window/UIWindowMgr.h"
#include "Utility/Text/FormatString.h"
@ -288,6 +289,25 @@ void CSession::UnequipItem61B8(const ITEM_INFO& item) {
RefreshItemWindows(&g_windowMgr);
}
// OFFSET: 0x00E49200
// FUNCTION: fn_24231
void CSession::SetJob(int job) {
const int previous = this->m_job;
this->m_job = job;
if (this->IsTreeGroupThree(previous) != this->IsTreeGroupThree(job)) {
if (g_windowMgr.unknown_01DC) {
reinterpret_cast<UIBasicInfoWnd*>(g_windowMgr.unknown_01DC)->RefreshLayout();
}
if (g_modeMgr.GetGameMode()) {
g_modeMgr.GetGameMode()->SendMsg(0x144, 0, 0, 0, 0);
}
}
this->InvalidateWindowFrames();
this->RefreshSkillTree();
}
// OFFSET: 0x00E497F0
// FUNCTION: fn_24237
void CSession::SetUnknown7EC8(std::uint32_t value) {