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

@ -4,7 +4,7 @@ function timer_equip() /* entry=271 class_id=0x04C9 slot=0x0A */
process_exclude();
if (arg_0A == 1) {
if ((Item.getStatus(arg_06) & 0x1000) == 0) {
spawn class_04C9_slot_20(arg_06);
spawn TIMER.slot_20(arg_06);
}
return;
}

View file

@ -4,7 +4,7 @@ function timer_enterFastArea() /* entry=271 class_id=0x04C9 slot=0x0F */
process_exclude();
if (!(Item.getQHi(arg_06) & 2)) {
if ((Item.getStatus(arg_06) & 0x1000) == 0) {
spawn class_04C9_slot_20(arg_06);
spawn TIMER.slot_20(arg_06);
}
}
return;

View file

@ -55,32 +55,32 @@ function timer_slot_20() /* entry=271 class_id=0x04C9 slot=0x20 */
time = (time - phase2);
while (!(1)) {
if (!phase2) {
spawn class_0A0C_slot_32(pid, phase2, 0x00000000);
spawn FREE.waitNTimerTicks(pid, phase2, 0x00000000);
suspend;
if ((Item.getStatus(arg_06) & 0x1000) == 0) {
return;
}
if ((Item.inFastArea(arg_06) == 1) || ((cmd & 8) != 0)) {
spawn class_0A18_slot_20(pid, (0x0080 + 0), *(arg_06), arg_06);
spawn TRIGGER.slot_20(pid, (0x0080 + 0), *(arg_06), arg_06);
suspend;
}
}
spawn class_0A0C_slot_32(pid, time, 0x00000000);
spawn FREE.waitNTimerTicks(pid, time, 0x00000000);
suspend;
if ((Item.getStatus(arg_06) & 0x1000) == 0) {
if (!(cmd & 16)) {
spawn class_0A18_slot_20(pid, (0x0080 + 1), *(arg_06), arg_06);
spawn TRIGGER.slot_20(pid, (0x0080 + 1), *(arg_06), arg_06);
suspend;
}
return;
}
if ((Item.inFastArea(arg_06) == 1) || ((cmd & 8) != 0)) {
if (!phase2) {
spawn class_0A18_slot_20(pid, (0x0080 + 1), *(arg_06), arg_06);
spawn TRIGGER.slot_20(pid, (0x0080 + 1), *(arg_06), arg_06);
suspend;
}
else {
spawn class_0A18_slot_20(pid, (0x0080 + 0), *(arg_06), arg_06);
spawn TRIGGER.slot_20(pid, (0x0080 + 0), *(arg_06), arg_06);
suspend;
}
}