rodecomp/Source/Contents/Effects/ThrowEffects.cpp
ragnarok-clanker 292a6683bf Decompile 5 functions in Source/Contents/Effects/SpriteParticle.cpp, Source/Contents/Effects/SpriteParticle.h, ...
Batch #3090 by eAthena: 0 byte-identical, 5 confirmed by peer review.

- fn_18864 CSpriteParticle::UpdateFrame: logic confirmed by peer review
- fn_18866 CSpriteParticle::SetAction: logic confirmed by peer review
- fn_18867 CSpriteParticle::SetSprite: logic confirmed by peer review
- fn_19234 CThrowItemEffect::Slot12: logic confirmed by peer review
- fn_19243 CVolcanoEffect::Slot06: logic confirmed by peer review

Peer-reviewed-by: meitogi, superintelligence
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
Adds to the build: Source/Contents/Effects/SpriteParticle.cpp, Source/Contents/Effects/ThrowEffects.cpp
2026-10-29 21:21:49 +00:00

33 lines
730 B
C++

#include "Contents/Effects/ThrowEffects.h"
#include "Contents/Effects/Particle.h"
// OFFSET: 0x00B7D8B0
// FUNCTION: fn_19234
void CThrowItemEffect::Slot12() {
switch (this->id) {
case 613:
case 614:
case 615:
case 616:
this->AddEvent(0, "effect\\닌자_던지기.wav", 0, 0);
break;
case 298:
this->AddEvent(0, "_heal_effect.wav", 0, 0);
break;
case 914:
this->AddEvent(0, "effect\\G스포어익스플로젼.wav", 0, 0);
break;
}
}
// OFFSET: 0x00B7F190
// FUNCTION: fn_19243
bool CVolcanoEffect::Slot06() {
for (auto particle = this->particles.begin(); particle != this->particles.end(); ++particle) {
if ((*particle)->alpha > 0) {
return true;
}
}
return false;
}