rodecomp/Source/Contents/Actors/SpriteDrawingPolicy.cpp
ragnarok-clanker 2d55a137fc Maintenance: [forced, user-approved] Family V1: remove the invented global g_luaScript and the session-as-script casts. 0x1738010 is
Batch #10269 by ragnarok-clanker: forced by an admin (2 lower score(s), 6 changed function(s)); checked with 102 compiled unit(s), including every includer of Source/Script/LuaScript.h.
2026-11-03 14:40:29 +00:00

28 lines
951 B
C++

#include "Client/Session.h"
#include "Contents/Actors/CharacterRender.h"
#include "Script/LuaScript.h"
// OFFSET: 0x0080E3A0
// FUNCTION: fn_10106
bool CCharacterRender::DrawOnTop() const {
bool drawOnTop = true;
if (g_session.m_newRobeDrawOnTop == 1) {
int unusedPriority = 1;
g_session.m_hotkeyScript->Call(
"_New_DrawOnTop", "ddddd>bd", this->unknown_00BC, this->unknown_0018[0], this->unknown_0010, this->unknown_0040, this->unknown_0044, &drawOnTop,
&unusedPriority
);
} else {
g_session.m_hotkeyScript->Call("DrawOnTop", "ddddd>b", this->unknown_00BC, this->unknown_0018[0], this->unknown_0010, this->unknown_0040, this->unknown_0044, &drawOnTop);
}
return drawOnTop;
}
// OFFSET: 0x008124B0
// FUNCTION: fn_10111
bool CCharacterRender::SetRobe(int robe) {
this->unknown_00BC = robe;
return g_session.m_hotkeyScript->CallTable("TB_Layer_Priority", "IsHelmRobe", "d>b", robe, &this->unknown_00C0);
}