Decompile 18 functions in Source/Client/Application/UnhandledExceptionHandler.cpp, Source/Client/Session.h, ...
Batch #2077 by ragnarok-clanker: 0 byte-identical, 18 confirmed by peer review. - fn_04709 TopLevelExceptionFilter: logic confirmed by peer review (already on main) - fn_08004 C3dGrannyModelRes::PlayAnimation: logic confirmed by peer review - fn_09315 UIRequestJoinPartyWnd::SendMsg: logic confirmed by peer review - fn_19761 EffectParticle::EffectParticle: logic confirmed by peer review - fn_19768 EffectParticle::InitializeRecords: logic confirmed by peer review - fn_20007 AttachedEffect::AttachedEffect: logic confirmed by peer review - fn_20076 CreateEffectParticle: logic confirmed by peer review - fn_20088 UpdatePartyEffect: logic confirmed by peer review - fn_20991 CRenderObject::CRenderObject: logic confirmed by peer review - fn_21069 ?CreatePartyEffect@?A0xba063134@@YAPAUAttachedEffect@@AAUEffectActor@@AAUPartyEffectMode@@@Z: logic confirmed by peer review - fn_21086 RenderObjectState::Reset: logic confirmed by peer review - fn_23396 CSession::GetJobName: logic confirmed by peer review - fn_23495 CSession::InitJobNameTable: logic confirmed by peer review - fn_23788 CSession::GetMonsterActName: logic confirmed by peer review - fn_23791 CSession::GetMonsterTalkText: logic confirmed by peer review - fn_20987 EffectActor::EffectActor: logic confirmed by peer review - fn_22363 CSoundMaker::CSoundMaker: logic confirmed by peer review - fn_24251 CEffectMaker::CEffectMaker: logic confirmed by peer review Reviewed-by: ragnarok-clanker
This commit is contained in:
parent
40ae3dfc5e
commit
e4be8f4190
31 changed files with 96 additions and 107 deletions
|
|
@ -1,26 +1,27 @@
|
|||
#include "Contents/Jobs/JobNames.h"
|
||||
#include "Client/Session.h"
|
||||
#include "Contents/Jobs/JobId.h"
|
||||
#include "Script/LuaScript.h"
|
||||
|
||||
|
||||
// OFFSET: 0x00DE67E0
|
||||
// FUNCTION: fn_23495
|
||||
void JobNames::Initialize(JobNameInitialization& context) {
|
||||
this->names.resize(32003, "Poring");
|
||||
void CSession::InitJobNameTable(JobNameInitialization& context) {
|
||||
this->m_jobNameTable.resize(32003, "Poring");
|
||||
const char* name = nullptr;
|
||||
|
||||
const auto player = [&](int first, int end) {
|
||||
for (int id = first; id < end; ++id) {
|
||||
if (context.playerScript.Call("ReqPCJobName", "d>s", id, &name) && *name != '\0') {
|
||||
this->names[id] = name;
|
||||
this->m_jobNameTable[id] = name;
|
||||
}
|
||||
|
||||
if (context.playerScript.Call("ReqPCJobNameMan", "d>s", id, &name) && *name != '\0') {
|
||||
this->male[id] = name;
|
||||
this->m_jobNameTableMan[id] = name;
|
||||
}
|
||||
|
||||
if (context.playerScript.Call("ReqPCJobNameWoman", "d>s", id, &name) && *name != '\0') {
|
||||
this->female[id] = name;
|
||||
this->m_jobNameTableWoman[id] = name;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
@ -32,7 +33,7 @@ void JobNames::Initialize(JobNameInitialization& context) {
|
|||
|
||||
const auto other = [&](int first, int end) {
|
||||
for (int id = first; id < end; ++id) {
|
||||
context.otherScript.Call("ReqJobName", "d>s", id, &this->names[id]);
|
||||
context.otherScript.Call("ReqJobName", "d>s", id, &this->m_jobNameTable[id]);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -46,25 +47,25 @@ void JobNames::Initialize(JobNameInitialization& context) {
|
|||
"LIF_H", "AMISTR_H", "FILIR_H", "VANILMIRTH_H", "LIF_H2", "AMISTR_H2", "FILIR_H2", "VANILMIRTH_H2"};
|
||||
|
||||
for (unsigned index = 0; index < 16; ++index) {
|
||||
this->names[JT_MER_LIF + index] = homunculi[index];
|
||||
this->m_jobNameTable[JT_MER_LIF + index] = homunculi[index];
|
||||
}
|
||||
|
||||
this->names[JT_MER_EIRA] = "MER_EIRA";
|
||||
this->names[JT_MER_DIETER] = "MER_DIETER";
|
||||
this->names[JT_MER_BAYERI] = "MER_BAYERI";
|
||||
this->names[JT_MER_ELEANOR] = "MER_ELEANOR";
|
||||
this->names[JT_MER_SERA] = "MER_SERA";
|
||||
this->m_jobNameTable[JT_MER_EIRA] = "MER_EIRA";
|
||||
this->m_jobNameTable[JT_MER_DIETER] = "MER_DIETER";
|
||||
this->m_jobNameTable[JT_MER_BAYERI] = "MER_BAYERI";
|
||||
this->m_jobNameTable[JT_MER_ELEANOR] = "MER_ELEANOR";
|
||||
this->m_jobNameTable[JT_MER_SERA] = "MER_SERA";
|
||||
|
||||
for (unsigned id = JT_MER_ARCHER01; id <= JT_MER_ARCHER10; ++id) {
|
||||
this->names[id] = "여\\활용병";
|
||||
this->m_jobNameTable[id] = "여\\활용병";
|
||||
}
|
||||
|
||||
for (unsigned id = JT_MER_LANCER01; id <= JT_MER_LANCER10; ++id) {
|
||||
this->names[id] = "남\\창용병";
|
||||
this->m_jobNameTable[id] = "남\\창용병";
|
||||
}
|
||||
|
||||
for (unsigned id = JT_MER_SWORDMAN01; id <= JT_MER_SWORDMAN10; ++id) {
|
||||
this->names[id] = "남\\검용병";
|
||||
this->m_jobNameTable[id] = "남\\검용병";
|
||||
}
|
||||
|
||||
context.sexLabels.resize(2, "F");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue