Decompile 4 functions in Source/Contents/Jobs/JobInheritance.cpp, Source/Client/Session.h, ...

Batch #6406 by eAthena: 0 byte-identical, 4 confirmed by peer review.

- fn_23793 CSession::GetPetTargetAid: logic confirmed by peer review
- fn_24365 ApplyAiPatch: logic confirmed by peer review
- fn_21743 CGameMode::ReceiveEquipWindowMicroscope: logic confirmed by peer review
- fn_21919 UIItemStoreWnd::SetTitle: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, willerthal
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
Adds to the build: Source/Client/Mode/GameModeEquipWindow.cpp, Source/UI/Item/UIItemStoreWnd.cpp
This commit is contained in:
ragnarok-clanker 2026-10-31 00:51:56 +00:00
commit fa26ae4cf5
9 changed files with 192 additions and 0 deletions

View file

@ -1212,6 +1212,33 @@ int CSession::GetPairValue() const {
return third == -1 ? second : third;
}
// OFFSET: 0x00E0A220
// FUNCTION: fn_23793
int CSession::GetPetTargetAid() const {
int target = 0;
std::uint32_t aid = *reinterpret_cast<const std::uint32_t*>(&this->unknown_5570[8]);
CGameMode* mode;
CRenderObject* actor;
if (aid != 0 && (mode = static_cast<CGameMode*>(g_modeMgr.GetGameMode())) != nullptr &&
(actor = mode->scene->GetGameActorByAID(aid)) != nullptr) {
target = static_cast<CGameActor*>(actor)->hitTargetAid;
}
aid = *reinterpret_cast<const std::uint32_t*>(&this->unknown_5620[8]);
if (aid != 0 && (mode = static_cast<CGameMode*>(g_modeMgr.GetGameMode())) != nullptr &&
(actor = mode->scene->GetGameActorByAID(aid)) != nullptr) {
target = static_cast<CGameActor*>(actor)->hitTargetAid;
}
if (target > 0) {
mode = static_cast<CGameMode*>(g_modeMgr.GetGameMode());
if (mode == nullptr || mode->scene->GetGameActorByAID(target) == nullptr) {
return 0;
}
}
return target;
}
// OFFSET: 0x00E1D950
// FUNCTION: fn_23854
int CSession::WorldUnknown0050() const {