Crusader_Decomp/USECODE/EUSECODE_extracted/pseudocode/ALRMTRIG/slot_0A_equip.txt
2026-03-26 00:37:17 +01:00

24 lines
600 B
Text

function alrmtrig_equip() /* entry=328 class_id=0x0581 slot=0x0A */
{
set_info(0x0211, *(arg_06));
process_exclude();
if (Item.getMapArray(arg_06) == 0) {
if (!World.getAlertActive()) {
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
suspend;
}
else {
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
suspend;
}
}
else if (!World.getAlertActive()) {
spawn class_0A18_slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
suspend;
}
else {
spawn class_0A18_slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
suspend;
}
return;
}