Crusader_Decomp/USECODE/REGRET/KEYPADEW.unk

48 lines
1.2 KiB
Text

/* synthesized appendix for KEYPADEW */
/* sparse lines above preserve recovered debugger line numbers where available */
/* ===== slot 0x01 use ===== */
function keypadew_use() /* entry=247 class_id=0x044C slot=0x01 */
{
set_info(0x0207, *(arg_06));
process_exclude();
if (Item.getMapNum(arg_06) == 0) {
local_01 = (Item.getStatus(arg_06) & 4);
if (local_01 == 0) {
if (!World.getAlertActive()) {
spawn FREE.slot_21(pid, 0x0184, 0x00000000);
suspend;
spawn FREE.slot_3B(pid, 2, 0x00000000);
suspend;
spawn FREE.slot_21(pid, 0x0181, 0x00000000);
suspend;
return;
}
spawn KEYPAD.slot_20(pid, arg_06);
suspend;
}
else {
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
suspend;
}
return;
}
return;
}
/* ===== slot 0x11 cast ===== */
function keypadew_cast() /* entry=247 class_id=0x044C slot=0x11 */
{
set_info(0x021D, *(arg_06));
process_exclude();
spawn FREE.slot_21(pid, 93, 0x00000000);
suspend;
spawn FREE.slot_3B(pid, 60, 0x00000000);
suspend;
spawn FREE.slot_21(pid, 0x0183, 0x00000000);
suspend;
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
suspend;
return;
}