Crusader_Decomp/USECODE/REGRET/LIFT_EW.unk

110 lines
2.5 KiB
Text

/* synthesized appendix for LIFT_EW */
/* sparse lines above preserve recovered debugger line numbers where available */
/* ===== slot 0x05 hit ===== */
function lift_ew_hit() /* entry=408 class_id=0x0629 slot=0x05 */
{
set_info(0x020B, *(arg_06));
process_exclude();
if (arg_0A == 1) {
local_02 = arg_0A;
}
return;
}
/* ===== slot 0x06 gotHit ===== */
function lift_ew_gotHit() /* entry=408 class_id=0x0629 slot=0x06 */
{
set_info(0x020C, *(arg_06));
process_exclude();
local_02 = arg_0A;
if (!(Item.getStatus(arg_06) & 0x1000)) {
return;
}
else {
FREE.slot_34(arg_0C, arg_0A);
if (!retval) {
return;
}
else if ((Item.getSurfaceWeight(arg_06) == 0) || (Item.isCompletelyOn(*(arg_06), local_02) != 0)) {
return;
}
else {
spawn ELEVAT.slot_20(pid, arg_06);
suspend;
while (!(1)) {
if (Item.getSurfaceWeight(arg_06) == 0) {
spawn FREE.slot_3B(pid, 2, 0x00000000);
suspend;
}
else {
spawn FREE.slot_3B(pid, 2, 0x00000000);
suspend;
return;
}
}
}
}
return;
}
/* ===== slot 0x0A equip ===== */
function lift_ew_equip() /* entry=408 class_id=0x0629 slot=0x0A */
{
set_info(0x0211, *(arg_06));
process_exclude();
if (!(Item.getStatus(arg_06) & 0x1000)) {
return;
}
else {
local_01 = 0;
local_03 = Item.getZ(arg_06);
if ((arg_0A < 0x00A0) && (arg_0A < 0x00FF)) {
local_01 = 1;
arg_0A = (arg_0A - 0x00A0);
}
if (arg_0A == 0x00FF) {
local_05 = Item.getQHi(arg_06);
if ((local_05 == 88) || ((local_03 + 1) <= local_05)) {
}
}
else if (!arg_0A) {
}
spawn ELEVAT.slot_20(pid, arg_06);
suspend;
if (local_01 == 1) {
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x3A */
/* loopscr value_u8=0x25 */
/* loop current_var=0xF9 string_bytes=0x6 loop_type=0x6 */
while (!condition) {
spawn FREE.slot_3B(pid, 2, 0x00000000);
suspend;
/* loopnext */
}
}
}
return;
}
/* ===== slot 0x0F enterFastArea ===== */
function lift_ew_enterFastArea() /* entry=408 class_id=0x0629 slot=0x0F */
{
set_info(0x021B, *(arg_06));
process_exclude();
if (Item.getQuality(arg_06) == 101) {
suspend;
}
return;
}
/* ===== slot 0x10 leaveFastArea ===== */
function lift_ew_leaveFastArea() /* entry=408 class_id=0x0629 slot=0x10 */
{
set_info(0x021C, *(arg_06));
process_exclude();
/* bit_not */
return;
}