Decompile 2 functions in Source/Contents/MonsterResources.cpp, Source/Client/Session.h

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

- fn_23788 CSession::GetMonsterActName: logic confirmed by peer review
- fn_23790 CSession::GetMonsterSprName: logic confirmed by peer review

Reviewed-by: ragnarok-clanker
Adds to the build: Source/Contents/MonsterResources.cpp
This commit is contained in:
ragnarok-clanker 2026-10-28 19:44:03 +00:00
commit 499d5b8558
3 changed files with 28 additions and 0 deletions

View file

@ -164,6 +164,8 @@ public:
}
void ResetItems2B50();
int GetPetFood(int job);
std::string GetMonsterActName(int job);
std::string GetMonsterSprName(int job);
void GetPetIllustName(int job, int, char* buffer);
int GetPetJobByEggItem(int eggItemId);
const char* GetPetString(int id);

View file

@ -0,0 +1,25 @@
#include "Client/Session.h"
#include "Resource/ResourceMgr.h"
#include "Utility/Text/FormatString.h"
#include <string>
// OFFSET: 0x00E09AB0
// FUNCTION: fn_23788
std::string CSession::GetMonsterActName(int job) {
std::string name = FormatOwnedString("몬스터\\%s.act", this->m_jobNamesBegin[job]);
if (!ResourceMgr::Instance().Exists(name.c_str())) {
name = "";
}
return name;
}
// OFFSET: 0x00E09DC0
// FUNCTION: fn_23790
std::string CSession::GetMonsterSprName(int job) {
std::string name = FormatOwnedString("몬스터\\%s.spr", this->m_jobNamesBegin[job]);
if (!ResourceMgr::Instance().Exists(name.c_str())) {
name = "";
}
return name;
}

View file

@ -366,6 +366,7 @@
"Source/Contents/Models/ModelRendering.cpp": 3,
"Source/Contents/Models/ModelSpatial.cpp": 3,
"Source/Contents/Models/ModelTextureAnimation.cpp": 3,
"Source/Contents/MonsterResources.cpp": 4,
"Source/Contents/MovementRoute.cpp": 4,
"Source/Contents/MovementRouteInterpolation.cpp": 4,
"Source/Contents/Movies/BinkMovie.cpp": 3,