Decompile fn_07495 (CSunStanceEffect::Open)

Batch #16015 by Yommy: 0 byte-identical, 1 confirmed by peer review.

- fn_07495 CSunStanceEffect::Open: logic confirmed by peer review

Peer-reviewed-by: alisonrag, youko
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-10 14:31:22 +00:00
commit bd96b60b30

View file

@ -37,29 +37,27 @@ void CSunStanceEffect::Open() {
continue;
}
const char* texture;
switch (this->id) {
case 1214:
default:
texture = "effect\\sun_stance\\sun_stance.tga";
particle->SetTexture("effect\\sun_stance\\sun_stance.tga");
break;
case 1215:
texture = "effect\\sun_stance\\lunar_stance.tga";
particle->SetTexture("effect\\sun_stance\\lunar_stance.tga");
break;
case 1216:
texture = "effect\\sun_stance\\star_stance.tga";
particle->SetTexture("effect\\sun_stance\\star_stance.tga");
break;
case 1217:
if (index == 0) {
texture = "effect\\sun_stance\\sun_stance.tga";
particle->SetTexture("effect\\sun_stance\\sun_stance.tga");
} else if (index == 1) {
texture = "effect\\sun_stance\\lunar_stance.tga";
particle->SetTexture("effect\\sun_stance\\lunar_stance.tga");
} else {
texture = "effect\\sun_stance\\star_stance.tga";
particle->SetTexture("effect\\sun_stance\\star_stance.tga");
}
break;
}
particle->SetTexture(texture);
particle->effectId = this->id;
particle->columnIndex = 1;