rodecomp/Source/Contents/Effects/WindEffect.cpp
ragnarok-clanker 033e84c8e5 Decompile 4 functions in Source/Contents/Effects/TetraBallEffect.cpp, Source/Contents/Effects/TetraBallEffect.h, ...
Batch #3767 by eAthena: 0 byte-identical, 4 confirmed by peer review.

- fn_07534 CViolentQuakeEffect::Slot06: logic confirmed by peer review (annotation added to existing code)
- fn_07535 CViolentQuakeEffect::Slot03: logic confirmed by peer review (annotation added to existing code)
- fn_07536 CViolentQuakeEffect::Slot04: logic confirmed by peer review (annotation added to existing code)
- fn_07545 CWindEffect::Slot04: logic confirmed by peer review (annotation added to existing code)

Peer-reviewed-by: youko, superintelligence
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-29 23:25:22 +00:00

28 lines
685 B
C++

#include "Contents/Effects/WindEffect.h"
#include "Contents/Effects/Particle.h"
// OFFSET: 0x00730870
// FUNCTION: fn_07543
bool CWindEffect::Slot06() {
return this->ActorExists();
}
// OFFSET: 0x00731030
// FUNCTION: fn_07545
void CWindEffect::Slot04() {
for (auto it = this->particles.begin(); it != this->particles.end(); ++it) {
CParticle* particle = *it;
if (!particle) {
continue;
}
const int texPart = particle->unknown_000C;
if (texPart <= 0) {
continue;
}
const ParticleQuad quad = {true, 0.0f, 1.0f, static_cast<float>(texPart - 1) / 21.0f, static_cast<float>(texPart) / 21.0f, false, true};
particle->Render(quad);
}
}