Decompile 2 functions in Source/Contents/BodyResources.cpp, Source/Contents/RobeResources.cpp, ...

Batch #1617 by eAthena: 0 byte-identical, 2 confirmed by peer review.

- fn_19754 EquipmentResourceMgr::GetBodyRacePrefix: logic confirmed by peer review
- fn_19756 EquipmentResourceMgr::GetRobeSprName: logic confirmed by peer review

Reviewed-by: ragnarok-clanker
Adds to the build: Source/Contents/BodyResources.cpp, Source/Contents/RobeResources.cpp
This commit is contained in:
ragnarok-clanker 2026-10-28 19:44:56 +00:00
commit 58b744ad2f
4 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,13 @@
#include "Client/Session.h"
#include "Contents/EquipmentResourceMgr.h"
#include <string>
// OFFSET: 0x00BABEF0
// FUNCTION: fn_19754
std::string EquipmentResourceMgr::GetBodyRacePrefix(int job) {
if (g_session.IsReducedSkill(job) == true) {
return "도람족";
}
return "인간족";
}

View file

@ -0,0 +1,12 @@
#ifndef RAGNAROK_SOURCE_CONTENTS_EQUIPMENTRESOURCEMGR_H
#define RAGNAROK_SOURCE_CONTENTS_EQUIPMENTRESOURCEMGR_H
#include <string>
class EquipmentResourceMgr {
public:
std::string GetBodyRacePrefix(int job);
std::string GetRobeSprName(int robe, int);
};
#endif

View file

@ -0,0 +1,15 @@
#include "Client/Session.h"
#include "Contents/EquipmentResourceMgr.h"
#include "Script/LuaScript.h"
#include <string>
// OFFSET: 0x00BAC770
// FUNCTION: fn_19756
std::string EquipmentResourceMgr::GetRobeSprName(int robe, int) {
const char* name = nullptr;
if (g_session.m_hotkeyScript->Call("ReqRobSprName", "d>s", robe, &name)) {
return name;
}
return name;
}

View file

@ -280,6 +280,7 @@
"Source/Contents/AdventureGuideMgr.cpp": 4,
"Source/Contents/Async/AsyncWorkMgr.cpp": 4,
"Source/Contents/Async/AsyncWorkRecycleObjectPoolMgr.cpp": 4,
"Source/Contents/BodyResources.cpp": 4,
"Source/Contents/Camera/CameraFrame.cpp": 3,
"Source/Contents/Camera/CameraQueries.cpp": 3,
"Source/Contents/Camera/CameraShake.cpp": 3,
@ -400,6 +401,7 @@
"Source/Contents/PetStrings.cpp": 4,
"Source/Contents/PlayerNameDictionary.cpp": 4,
"Source/Contents/RobeOpacity.cpp": 4,
"Source/Contents/RobeResources.cpp": 4,
"Source/Contents/RobeTopLayer.cpp": 4,
"Source/Contents/ShowRankingScheduler.cpp": 4,
"Source/Contents/Skills/AutomaticSkills.cpp": 4,