54 lines
1.2 KiB
Text
54 lines
1.2 KiB
Text
|
|
/* synthesized appendix for CONVEY_E */
|
|
/* sparse lines above preserve recovered debugger line numbers where available */
|
|
|
|
/* ===== slot 0x06 gotHit ===== */
|
|
function convey_e_gotHit() /* entry=63 class_id=0x0134 slot=0x06 */
|
|
{
|
|
set_info(0x020C, *(arg_06));
|
|
process_exclude();
|
|
local_01 = 0;
|
|
local_02 = -3;
|
|
if (!Item.getQHi(arg_06)) {
|
|
local_02 = 3;
|
|
}
|
|
FREE.slot_35(arg_0C, arg_0A);
|
|
if (!retval) {
|
|
return;
|
|
}
|
|
else {
|
|
local_04 = arg_0A;
|
|
local_05 = Item.isOn(*(arg_06), local_04);
|
|
local_06 = 1;
|
|
if (Item.getQHi(arg_06) == 0x00FF) {
|
|
local_06 = 0;
|
|
}
|
|
if (!(local_05 && local_06)) {
|
|
spawn CONVEYOR.slot_20(pid, local_02, local_01, arg_06);
|
|
suspend;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
|
|
/* ===== slot 0x0A equip ===== */
|
|
function convey_e_equip() /* entry=63 class_id=0x0134 slot=0x0A */
|
|
{
|
|
set_info(0x0211, *(arg_06));
|
|
process_exclude();
|
|
if (arg_0A == 0) {
|
|
FREE.slot_3C(0x0205, *(arg_06));
|
|
return;
|
|
}
|
|
else if (arg_0A == 1) {
|
|
FREE.slot_3C(0x0205, *(arg_06));
|
|
spawn CONVEYOR.slot_20(-3, 0, arg_06);
|
|
return;
|
|
}
|
|
else if (arg_0A == 2) {
|
|
FREE.slot_3C(0x0205, *(arg_06));
|
|
spawn CONVEYOR.slot_20(3, 0, arg_06);
|
|
return;
|
|
}
|
|
return;
|
|
}
|