From 41edac0483ead873ee451f4561a05f978dcbd87e Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 05:13:17 +0000 Subject: [PATCH] Decompile fn_07533 (CViolentQuakeEffect::Open) Batch #17891 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_07533 CViolentQuakeEffect::Open: logic confirmed by peer review Peer-reviewed-by: Yommy, codeplay, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Effects/Skills/ViolentQuakeEffect.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Contents/Effects/Skills/ViolentQuakeEffect.cpp b/Source/Contents/Effects/Skills/ViolentQuakeEffect.cpp index a18adc522..60116f895 100644 --- a/Source/Contents/Effects/Skills/ViolentQuakeEffect.cpp +++ b/Source/Contents/Effects/Skills/ViolentQuakeEffect.cpp @@ -71,7 +71,8 @@ void CViolentQuakeEffect::Open() { switch (this->id) { case EF_VIOLENTQUAKE: { CEZ2STRParticle* emitter = static_cast(CreateEZ2STRParticle(reinterpret_cast(this->position), 5)); - emitter->Load(FormatOwnedString("violentquake\\violentquake\\violentquake_%02d.str", std::max(0, rand() % 3) + 1)); + const int roll = rand() % 3; + emitter->Load(FormatOwnedString("violentquake\\violentquake\\violentquake_%02d.str", (roll >= 0 ? roll : 0) + 1)); emitter->offsetX = 0.0f; emitter->offsetY = -8.0f; emitter->offsetZ = 0.0f;