From 0df2f129e3c5019250ed182987a48a2467009e80 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 21:13:26 +0000 Subject: [PATCH] Decompile fn_18775 (EffectLists::SpawnLevel99) Batch #12464 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_18775 EffectLists::SpawnLevel99: logic confirmed by peer review Peer-reviewed-by: Yommy, gordaoprogramas, KWDev Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Effects/EffectLists.cpp | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/Source/Contents/Effects/EffectLists.cpp b/Source/Contents/Effects/EffectLists.cpp index a41f3c5b..2799effc 100644 --- a/Source/Contents/Effects/EffectLists.cpp +++ b/Source/Contents/Effects/EffectLists.cpp @@ -517,16 +517,14 @@ void EffectLists::SpawnLevel99(CRenderObject* actor, unsigned char flag, int ext return; } - actor->ClearLevelEffects(); + static_cast(actor)->ResetJobEffects(); if (!flag) { return; } const int aid = static_cast(actor->render.accountId); - const float x = actor->render.position.x; - const float y = actor->render.position.y; - const float z = actor->render.position.z; + const vector3d position = actor->render.position; CEffect* effect = nullptr; if (aid) { @@ -549,9 +547,9 @@ void EffectLists::SpawnLevel99(CRenderObject* actor, unsigned char flag, int ext effect->SetActor(static_cast(aid)); effect->SetSourceActor(0); - effect->position[0] = x; - effect->position[1] = y; - effect->position[2] = z; + effect->position[0] = position.x; + effect->position[1] = position.y; + effect->position[2] = position.z; effect->Slot29(EF_LEVEL99); effect->Slot01(); effect->Slot12(); @@ -559,11 +557,8 @@ void EffectLists::SpawnLevel99(CRenderObject* actor, unsigned char flag, int ext } applyLevel99: - { - const char path[] = {'e', 'f', 'f', 'e', 'c', 't', '\\', '\xb9', '\xf8', '\xb0', '\xb3', '3', '.', 'b', 'm', 'p'}; - effect->Slot11(std::string(path, sizeof(path))); - effect->Slot08(0x50, 0x50, 0xFF); - } + effect->Slot11("effect\\번개3.bmp"); + effect->Slot08(0x50, 0x50, 0xFF); } namespace {