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).
This commit is contained in:
ragnarok-clanker 2026-11-07 05:05:39 +00:00
commit c6de231600

View file

@ -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<float>((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);