Decompilation unk files generation
This commit is contained in:
parent
d323bb28fc
commit
746709f40c
503 changed files with 45757 additions and 31 deletions
63
USECODE/REGRET/ALARMBOX.unk
Normal file
63
USECODE/REGRET/ALARMBOX.unk
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
|
||||
/* synthesized appendix for ALARMBOX */
|
||||
/* sparse lines above preserve recovered debugger line numbers where available */
|
||||
|
||||
/* ===== slot 0x01 use ===== */
|
||||
function alarmbox_use() /* entry=262 class_id=0x0477 slot=0x01 */
|
||||
{
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
if (!World.getAlertActive()) {
|
||||
spawn FREE.slot_45(0x00000000);
|
||||
if (Item.getMapNum(arg_06) == 0) {
|
||||
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0A equip ===== */
|
||||
function alarmbox_equip() /* entry=262 class_id=0x0477 slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (!arg_0A) {
|
||||
if (World.getAlertActive()) {
|
||||
spawn FREE.slot_44(0x00000000);
|
||||
}
|
||||
local_02 = Item.getStatus(arg_06);
|
||||
if ((local_02 & 4) == 0) {
|
||||
if (Item.getMapNum(arg_06) == 0) {
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (!World.getAlertActive()) {
|
||||
spawn FREE.slot_45(0x00000000);
|
||||
if (Item.getMapNum(arg_06) == 0) {
|
||||
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* ===== slot 0x0F enterFastArea ===== */
|
||||
function alarmbox_enterFastArea() /* entry=262 class_id=0x0477 slot=0x0F */
|
||||
{
|
||||
set_info(0x021B, *(arg_06));
|
||||
process_exclude();
|
||||
if (!World.getAlertActive()) {
|
||||
return;
|
||||
}
|
||||
else if (Item.getFrame(arg_06) == 2) {
|
||||
return;
|
||||
}
|
||||
else if (Item.getFrame(arg_06) == 3) {
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue