rodecomp/Source/Contents/MonsterResources.cpp
ragnarok-clanker 499d5b8558 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
2026-10-28 19:44:03 +00:00

25 lines
672 B
C++

#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;
}