From c6de2316005bdc60a3727dcc790aeb7b84c53eb4 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 7 Nov 2026 05:05:39 +0000 Subject: [PATCH] Decompile fn_19074 (CHealEffect::SpawnParticles) Batch #13839 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_19074 CHealEffect::SpawnParticles: logic confirmed by peer review Peer-reviewed-by: Yommy, KWDev, aDw Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Effects/HealEffect.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/Contents/Effects/HealEffect.cpp b/Source/Contents/Effects/HealEffect.cpp index 5974ce80c..6a6c8dd76 100644 --- a/Source/Contents/Effects/HealEffect.cpp +++ b/Source/Contents/Effects/HealEffect.cpp @@ -79,7 +79,7 @@ void CHealEffect::AddSparks(int kind) { // OFFSET: 0x00B678F0 // FUNCTION: fn_19068 -__declspec(noinline) void CHealEffect::AddColumn(int kind) { +void CHealEffect::AddColumn(int kind) { const float randomHeight = static_cast((std::max)(rand() % 20, 0)) + 40.0f; for (int row = 0, angle = 0; angle < 360; ++row, angle += 180) { const int randomAngle = (std::max)(rand() % 360, 0); @@ -353,12 +353,6 @@ void CHealEffect::Slot12() { // FUNCTION: fn_19074 void CHealEffect::SpawnParticles() { switch (this->id) { - case 253: - if (this->spawnTick == 0) { - this->AddColumn(5); - this->AddCone(5); - } - break; case 312: if (this->spawnTick == 0) { this->AddColumn(4); @@ -384,6 +378,12 @@ void CHealEffect::SpawnParticles() { this->AddSparks(3); } break; + case 253: + if (this->spawnTick == 0) { + this->AddColumn(5); + this->AddCone(5); + } + break; case 325: if (this->spawnTick == 0) { this->AddColumn(1);