From 4ce32be925aa4f57ea41f63d8524ae4eee173861 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 23:12:06 +0000 Subject: [PATCH] Decompile fn_19076 (CHealEffect::OnProcess) Batch #16529 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_19076 CHealEffect::OnProcess: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, Yommy, alisonrag Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Effects/HealEffect.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Contents/Effects/HealEffect.cpp b/Source/Contents/Effects/HealEffect.cpp index 8a8abd5dc..e11be9973 100644 --- a/Source/Contents/Effects/HealEffect.cpp +++ b/Source/Contents/Effects/HealEffect.cpp @@ -431,7 +431,7 @@ void CHealEffect::OnProcess() { if (particle) { const int age = particle->elapsedFrames; int alpha = particle->alpha; - if (this->columnLifetime < 0 || age < this->columnLifetime) { + if (this->columnLifetime < 0 || this->columnLifetime > age) { if (age < 16) { alpha = (std::min)(alpha + 5, 180); } @@ -442,7 +442,7 @@ void CHealEffect::OnProcess() { const int segment = particle->columnIndex; float height = particle->speedParameter * 0.25f * g_sinTable[((4 - particle->rowIndex) * age + segment * 34) % 360] + particle->speedParameter * 0.75f; - if (particle->elapsedFrames < 91) { + if (particle->elapsedFrames <= 90) { height *= g_sinTable[particle->elapsedFrames]; } height = (std::max)(height, 0.0f); @@ -494,7 +494,7 @@ void CHealEffect::OnProcess() { if (particle) { const int age = particle->elapsedFrames; int alpha = particle->alpha; - if (this->coneLifetime < 0 || age < this->coneLifetime) { + if (this->coneLifetime < 0 || this->coneLifetime > age) { if (age < 16) { alpha = (std::min)(alpha + 5, 180); } @@ -505,7 +505,7 @@ void CHealEffect::OnProcess() { const int segment = particle->columnIndex; float height = particle->speedParameter * 0.25f * g_sinTable[((segment * 17 + age) * 2) % 360] + particle->speedParameter * 0.75f; - if (age < 91) { + if (age <= 90) { height *= g_sinTable[age]; } height = (std::max)(height, 0.0f);