Decompile fn_19250 (SetEvilsPawInfo)

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

- fn_19250 SetEvilsPawInfo: logic confirmed by peer review

Peer-reviewed-by: eAthena, 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 18:35:33 +00:00
commit 21431f8e38

View file

@ -397,12 +397,6 @@ int SetEvilsPawInfo(lua_State* state) {
case MSG_SET_INIT:
effect->ResetParticles();
break;
case MSG_SET_SIZE:
effect->size = static_cast<int>(static_cast<float>(luaL_checknumber(state, 3)));
break;
case MSG_SET_SPEED:
effect->frameDelay = static_cast<int>(static_cast<float>(luaL_checknumber(state, 3)));
break;
case MSG_SET_OFFSET_POS: {
const float x = static_cast<float>(luaL_checknumber(state, 3));
const float y = static_cast<float>(luaL_checknumber(state, 4));
@ -412,6 +406,12 @@ int SetEvilsPawInfo(lua_State* state) {
effect->offset.z = z;
break;
}
case MSG_SET_SIZE:
effect->size = static_cast<int>(static_cast<float>(luaL_checknumber(state, 3)));
break;
case MSG_SET_SPEED:
effect->frameDelay = static_cast<int>(static_cast<float>(luaL_checknumber(state, 3)));
break;
}
return 0;