Crusader_Decomp/USECODE/REGRET/DEATHBOX.unk

40 lines
1.1 KiB
Text

/* synthesized appendix for DEATHBOX */
/* sparse lines above preserve recovered debugger line numbers where available */
/* ===== slot 0x0A equip ===== */
function deathbox_equip() /* entry=289 class_id=0x04E7 slot=0x0A */
{
set_info(0x0211, *(arg_06));
process_exclude();
spawn FREE.slot_3B(pid, 2, 0x00000000);
suspend;
if (!(Item.getStatus(arg_06) & 0x1000)) {
return;
}
else {
spawn FREE.slot_3B(pid, 12, 0x00000000);
suspend;
ITEM.slot_24(0x1000, arg_06);
if (arg_0A == 2) {
for local_02 in nearby_items(shape=48, origin=arg_06) {
if (Item.getQLo(local_02) == 10) {
local_03 = Item.getFrame(local_02);
}
else if (Item.getQLo(local_02) == 11) {
local_04 = Item.getFrame(local_02);
}
local_07 = (1 + local_07);
/* loopnext */
}
if ((local_04 == 4) && (local_03 != 0)) {
spawn FREE.slot_3B(pid, 2, 0x00000000);
suspend;
spawn TRIGGER.slot_20(pid, 0x0080, *(arg_06), arg_06);
suspend;
}
}
ITEM.slot_25(0x1000, arg_06);
}
return;
}