Pseudocode decompialtion improvements and docs

This commit is contained in:
MaddoScientisto 2026-03-26 22:10:48 +01:00
commit 589bfc31ef
1898 changed files with 60634 additions and 6597 deletions

View file

@ -0,0 +1,13 @@
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;
}

View file

@ -0,0 +1,26 @@
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;
}

View file

@ -0,0 +1,15 @@
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;
}