rodecomp/Source/Contents/Effects/MapChainEffect.cpp
ragnarok-clanker ac3b9f3d7d Decompile 5 functions in Source/Contents/Effects/MagnumBreak.cpp, Source/Contents/Effects/MagnumBreak.h, ...
Batch #3880 by eAthena: 0 byte-identical, 5 confirmed by peer review.

- fn_18936 CMagicFloorEffect::Slot04: logic confirmed by peer review
- fn_18943 CMagnumBreak::Slot04: logic confirmed by peer review
- fn_18944 CMagnumBreak::UpdateWave: logic confirmed by peer review
- fn_18953 CMapChainEffect::Slot04: logic confirmed by peer review
- fn_18959 CMappillarEffect::Slot04: logic confirmed by peer review

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

34 lines
916 B
C++

#include "Contents/Effects/MapChainEffect.h"
#include "Contents/Effects/Particle.h"
// OFFSET: 0x00B4A9E0
// OFFSET: 0x00B4B130
// FUNCTION: fn_18951
bool CMapChainEffect::Slot06() {
return this->ActorExists();
}
// OFFSET: 0x00B4B740
// FUNCTION: fn_18953
void CMapChainEffect::Slot04() {
for (std::vector<CParticle*>::iterator it = this->particles.begin(); it != this->particles.end(); ++it) {
CParticle* particle = *it;
if (particle && particle->unknown_000C > 0) {
if (particle->unknown_0010 < 6) {
particle->destinationBlend = 6;
}
ParticleQuad quad;
quad.billboard = false;
quad.top = 0.0f;
quad.bottom = 1.0f;
quad.left = static_cast<float>(particle->unknown_000C - 1) / 21.0f;
quad.right = static_cast<float>(particle->unknown_000C) / 21.0f;
quad.unused = true;
quad.depth = true;
particle->Render(quad);
}
}
}