Crusader_Decomp/USECODE/REGRET/ELEVPLAT.unk

74 lines
1.8 KiB
Text

/* synthesized appendix for ELEVPLAT */
/* sparse lines above preserve recovered debugger line numbers where available */
/* ===== slot 0x05 hit ===== */
function elevplat_hit() /* entry=60 class_id=0x012F slot=0x05 */
{
set_info(0x020B, *(arg_06));
process_exclude();
if (arg_0A == 1) {
local_02 = arg_0A;
}
return;
}
/* ===== slot 0x0A equip ===== */
function elevplat_equip() /* entry=60 class_id=0x012F slot=0x0A */
{
set_info(0x0211, *(arg_06));
process_exclude();
if (!(Item.getStatus(arg_06) & 0x1000)) {
return;
}
else {
/* pop_global global_id=0x0 size=0x1 */
local_02 = Item.getZ(arg_06);
if ((arg_0A < 0x00A0) && (arg_0A < 0x00FF)) {
/* pop_global global_id=0x0 size=0x1 */
arg_0A = (arg_0A - 0x00A0);
}
if (arg_0A == 0x00FF) {
local_04 = Item.getQHi(arg_06);
if ((local_04 == 88) || ((local_02 + 1) <= local_04)) {
}
}
else if (!arg_0A) {
}
spawn ELEVAT.slot_20(pid, arg_06);
suspend;
if (global[0x0000] == 1) {
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x3A */
/* loopscr value_u8=0x25 */
/* loop current_var=0xFA string_bytes=0x6 loop_type=0x6 */
while (!condition) {
spawn FREE.slot_3B(pid, 2, 0x00000000);
suspend;
/* loopnext */
}
}
}
return;
}
/* ===== slot 0x0F enterFastArea ===== */
function elevplat_enterFastArea() /* entry=60 class_id=0x012F slot=0x0F */
{
set_info(0x021B, *(arg_06));
process_exclude();
if (Item.getQuality(arg_06) == 101) {
suspend;
}
return;
}
/* ===== slot 0x10 leaveFastArea ===== */
function elevplat_leaveFastArea() /* entry=60 class_id=0x012F slot=0x10 */
{
set_info(0x021C, *(arg_06));
process_exclude();
/* bit_not */
return;
}