From bfe540960420c97ee66ecd809a6f9cb360bbd868 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Mon, 9 Nov 2026 22:02:58 +0000 Subject: [PATCH] Decompile 2 functions in Source/Contents/Skills/SkillActionAlitea.cpp Batch #15218 by Yommy: 0 byte-identical, 2 confirmed by peer review. - fn_03234 CSkillAction_AT_ROARING_PIERCER::OnSkillEffect: logic confirmed by peer review - fn_03235 CSkillAction_AT_ROARING_PIERCEER_S::OnSkillEffect: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, eAthena, gordaoprogramas, unna Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Skills/SkillActionAlitea.cpp | 30 +++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/Source/Contents/Skills/SkillActionAlitea.cpp b/Source/Contents/Skills/SkillActionAlitea.cpp index 7481f7624..08839407f 100644 --- a/Source/Contents/Skills/SkillActionAlitea.cpp +++ b/Source/Contents/Skills/SkillActionAlitea.cpp @@ -1275,14 +1275,15 @@ void CSkillAction_AT_ROARING_PIERCER::OnSkillEffect(int level, CGameActor* sourc return; } - if (CEffect* effect = g_effectMgr->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId([] { - const std::uint8_t bytes[] = {0xBB, 0xD8, 0x44, 0xE5, 0xD2, 0x5D, 0xE4, 0x58, 0xB9, 0xDE, 0x40, 0xE5, 0xD8, 0x56, 0xF1, 0x58, - 0xAE, 0xB7}; - thread_local EncryptedName name(bytes); - return name.Text(); - }()), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0)) { + const int effectId = CEZ2STREffectMgr::GetInstance()->EffectId([] { + const std::uint8_t bytes[] = {0xBB, 0xD8, 0x44, 0xE5, 0xD2, 0x5D, 0xE4, 0x58, 0xB9, 0xDE, 0x40, 0xE5, 0xD8, 0x56, 0xF1, 0x58, + 0xAE, 0xB7}; + thread_local EncryptedName name(bytes); + return name.Text(); + }()); + if (CEffect* effect = g_effectMgr->Spawn(source->render.accountId, effectId, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0)) { const float angle = ScreenAngle( - &source->render.position.x, &target->render.position.x, static_cast(g_modeMgr.GetGameMode())->camera->frame.view.values + &target->render.position.x, &source->render.position.x, static_cast(g_modeMgr.GetGameMode())->camera->frame.view.values ); effect->SetAngle(angle); } @@ -1299,14 +1300,15 @@ void CSkillAction_AT_ROARING_PIERCEER_S::OnSkillEffect(int level, CGameActor* so return; } - if (CEffect* effect = g_effectMgr->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId([] { - const std::uint8_t bytes[] = {0xC7, 0x1A, 0x00, 0x2D, 0x94, 0x35, 0x7C, 0xD0, 0xC5, 0x1C, 0x04, 0x2D, 0x9E, 0x3E, 0x69, 0xD0, - 0xCC, 0x75}; - thread_local EncryptedName name(bytes); - return name.Text(); - }()), 0.0f, 0.0f, 0.0f, 0, -1, 0, 0)) { + const int effectId = CEZ2STREffectMgr::GetInstance()->EffectId([] { + const std::uint8_t bytes[] = {0xC7, 0x1A, 0x00, 0x2D, 0x94, 0x35, 0x7C, 0xD0, 0xC5, 0x1C, 0x04, 0x2D, 0x9E, 0x3E, 0x69, 0xD0, + 0xCC, 0x75}; + thread_local EncryptedName name(bytes); + return name.Text(); + }()); + if (CEffect* effect = g_effectMgr->Spawn(source->render.accountId, effectId, 0.0f, 0.0f, 0.0f, 0, -1, 0, 0)) { const float angle = ScreenAngle( - &source->render.position.x, &target->render.position.x, static_cast(g_modeMgr.GetGameMode())->camera->frame.view.values + &target->render.position.x, &source->render.position.x, static_cast(g_modeMgr.GetGameMode())->camera->frame.view.values ); effect->SetAngle(angle); }