Crusader_Decomp/USECODE/REGRET/UPPLATE.unk

46 lines
1.1 KiB
Text

/* synthesized appendix for UPPLATE */
/* sparse lines above preserve recovered debugger line numbers where available */
/* ===== slot 0x06 gotHit ===== */
function upplate_gotHit() /* entry=245 class_id=0x0447 slot=0x06 */
{
set_info(0x020C, *(arg_06));
process_exclude();
FREE.slot_35(arg_0C, arg_0A);
if (!retval) {
return;
}
else if (Item.getFrame(arg_06) == 2) {
return;
}
else {
local_02 = arg_0A;
if ((Item.getSurfaceWeight(arg_06) == 0) || (Item.isCentreOn(*(arg_06), local_02) != 0)) {
return;
}
else if (Item.getMapNum(arg_06) == 0) {
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
suspend;
spawn FREE.slot_3B(pid, 20, 0x00000000);
suspend;
while (!(1)) {
if (Item.getSurfaceWeight(arg_06) == 0) {
spawn FREE.slot_3B(pid, 2, 0x00000000);
suspend;
}
else {
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
suspend;
return;
}
}
return;
}
else {
spawn FREE.slot_3B(pid, 20, 0x00000000);
suspend;
}
}
return;
}