rodecomp/Source/Contents/SpriteRidingPolicy.cpp
ragnarok-clanker 7dc26e0b3f Decompile fn_22583 (IsIgnoredRidingState)
Batch #1587 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_22583 IsIgnoredRidingState: logic confirmed by peer review

Reviewed-by: ragnarok-clanker
Adds to the build: Source/Contents/SpriteRidingPolicy.cpp
2026-10-28 19:10:44 +00:00

25 lines
575 B
C++

#include "Contents/SpriteRidingPolicy.h"
#include "Client/Session.h"
#include "Contents/Jobs/JobNames.h"
#include "Script/LuaScript.h"
// OFFSET: 0x00DAB2C0
// FUNCTION: fn_22583
bool IsIgnoredRidingState(int id, int job, int effectState, bool force) {
if (!force && job == JobNames::BaseJob(job)) {
return false;
}
switch (effectState) {
case 0:
case 8:
case 16:
case 64: {
bool ignored = false;
g_session.m_hotkeyScript->CallTable("TB_Layer_Priority", "IsIgnoredRidingState", "d>b", id, &ignored);
return ignored;
}
}
return false;
}