Decompile 2 functions in Source/Contents/Effects/Skills/LightSphereEffect.cpp, Source/Contents/Effects/Skills/SunStanceEffect.cpp

Batch #18495 by KWDev: 2 byte-identical, 0 confirmed by peer review.

- fn_19105 CLightSphereEffect::CreateRayParticles: byte-identical
- fn_07497 CSunStanceEffect::OnProcess: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-12 15:20:45 +00:00
commit 023abcae3b
2 changed files with 6 additions and 3 deletions

View file

@ -35,10 +35,13 @@ void CLightSphereEffect::CreateRayParticles(int param) {
particle->scale = 1.0f;
int r1 = std::rand() % 360;
particle->phaseParameter = r1 < 0 ? 0 : r1;
if (r1 < 0) {
r1 = 0;
}
particle->phaseParameter = r1;
int r2 = std::rand() % 360;
*reinterpret_cast<float*>(&particle->angleBits) = static_cast<float>(r2 < 0 ? 0 : r2);
*reinterpret_cast<float*>(&particle->angleBits) = static_cast<float>(std::ranges::max(r2, 0));
int r3 = std::rand() % 360;
particle->angleParameter = r3 < 0 ? 0 : r3;

View file

@ -99,8 +99,8 @@ void CSunStanceEffect::OnProcess() {
const float cosine = ClientCos(angle) * 8.0f;
const float sine = ClientSin(angle) * 8.0f;
const float z = cosine + this->position[2];
const float y = this->position[1] - 10.0f;
const float x = sine + this->position[0];
const float y = this->position[1] - 10.0f;
particle->position.z = z;
particle->position.y = y;
particle->position.x = x;