Batch #3712 by eAthena: 0 byte-identical, 3 confirmed by peer review. - fn_06999 CFriggSongEffect::CFriggSongEffect: logic confirmed by peer review (annotation added to existing code) - fn_07003 CFriggSongEffect::Slot12: logic confirmed by peer review (annotation added to existing code) - fn_07006 CFriggSongEffect::Slot04: logic confirmed by peer review (annotation added to existing code) Peer-reviewed-by: ragnarok-clanker, bigodeira, superintelligence Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
31 lines
884 B
C++
31 lines
884 B
C++
#include "Contents/Effects/FriggSongEffect.h"
|
|
|
|
#include "Contents/Effects/EffectTypes.h"
|
|
#include "Contents/Effects/Particle.h"
|
|
|
|
// OFFSET: 0x00701BB0
|
|
// FUNCTION: fn_06999
|
|
CFriggSongEffect::CFriggSongEffect() : CEffect(0x423), lastInner{} {
|
|
this->unknown_002C = EffectLifetime(0x423);
|
|
}
|
|
|
|
// OFFSET: 0x007021A0
|
|
// FUNCTION: fn_07003
|
|
void CFriggSongEffect::Slot12() {
|
|
this->AddEvent(0, "effect\\wm_frigg_song.wav", 0, 0);
|
|
}
|
|
|
|
// OFFSET: 0x007027A0
|
|
// FUNCTION: fn_07006
|
|
void CFriggSongEffect::Slot04() {
|
|
for (auto it = this->particles.begin(); it != this->particles.end(); ++it) {
|
|
CParticle* particle = *it;
|
|
if (!particle) {
|
|
continue;
|
|
}
|
|
|
|
const int texPart = particle->unknown_000C;
|
|
const ParticleQuad quad = {false, 0.0f, 1.0f, static_cast<float>(texPart - 1) / 21.0f, static_cast<float>(texPart) / 21.0f, false, true};
|
|
particle->Render(quad);
|
|
}
|
|
}
|