From f83f95aaa2e607d150d92c9a9ab6de226e60ec85 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 01:22:29 +0000 Subject: [PATCH] Decompile fn_03349 (CSkillAction_KR_EARTH_DRILL::OnSkillHit) Batch #17617 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_03349 CSkillAction_KR_EARTH_DRILL::OnSkillHit: logic confirmed by peer review Peer-reviewed-by: Yommy, cremane, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Skills/SkillActionKarnos.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/Contents/Skills/SkillActionKarnos.cpp b/Source/Contents/Skills/SkillActionKarnos.cpp index 2fe00bf52..7a76ae25f 100644 --- a/Source/Contents/Skills/SkillActionKarnos.cpp +++ b/Source/Contents/Skills/SkillActionKarnos.cpp @@ -295,18 +295,18 @@ void CSkillAction_KR_EARTH_DRILL::OnSkillHit(int level, CGameActor* source, CGam EffectLists* effects = g_effectMgr; effects->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId([] { - constexpr std::array effectSourceArray = CRYPT_NAME("earth_drill", 0xC52FB5FBB94FF917ULL); - const std::uint8_t (&effectSource)[12] = effectSourceArray._Elems; - thread_local EncryptedName effectName(effectSource); - return effectName.Text(); + constexpr auto bytesText = CRYPT_NAME("earth_drill", 0xC52FB5FBB94FF917ULL); + const auto& bytes = bytesText.data; + thread_local EncryptedName name(bytes); + return name.Text(); }()), vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0); effects = g_effectMgr; effects->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId([] { - constexpr std::array bottomSourceArray = CRYPT_NAME("earth_drill_bottom", 0x93E7A3A1F587CDC5ULL); - const std::uint8_t (&bottomSource)[19] = bottomSourceArray._Elems; - thread_local EncryptedName bottomName(bottomSource); - return bottomName.Text(); + constexpr auto bytesText = CRYPT_NAME("earth_drill_bottom", 0x93E7A3A1F587CDC5ULL); + const auto& bytes = bytesText.data; + thread_local EncryptedName name(bytes); + return name.Text(); }()), vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0); }