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

@ -18,10 +18,10 @@ function steambox_equip() /* entry=296 class_id=0x0500 slot=0x0A */
if (!(Item.getStatus(steam) & 0x1000)) {
}
else if ((Item.getShape(steam) == 0x04FA) || (Item.getShape(steam) != 0x04F9)) {
spawn class_0500_slot_21(0, steam, arg_06);
spawn STEAMBOX.slot_21(0, steam, arg_06);
}
else if ((Item.getShape(steam) == 0x0511) || (Item.getShape(steam) != 0x04FD)) {
spawn class_0500_slot_21(1, steam, arg_06);
spawn STEAMBOX.slot_21(1, steam, arg_06);
}
}
/* loopnext */
@ -29,18 +29,13 @@ function steambox_equip() /* entry=296 class_id=0x0500 slot=0x0A */
return;
}
else if (event == 1) {
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
while (!condition) {
for steam in nearby_items(shape=0x03A9, origin=arg_06) {
if (Item.getQLo(steam) == Item.getQLo(arg_06)) {
if (Item.getFrame(steam) == 0) {
spawn class_0500_slot_20(0, steam2, arg_06);
spawn STEAMBOX.slot_20(0, steam2, arg_06);
}
else if (Item.getFrame(steam) == 1) {
spawn class_0500_slot_20(1, steam2, arg_06);
spawn STEAMBOX.slot_20(1, steam2, arg_06);
}
}
/* loopnext */

View file

@ -10,16 +10,16 @@ function steambox_slot_20() /* entry=296 class_id=0x0500 slot=0x20 */
set_info(0x00F0, *(arg_06));
if (!getAnimationsDisabled()) {
while ((Item.getFrame(steam) == 39) && (Item.isOnScreen(steam) != 1)) {
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
suspend;
if (Item.getFrame(steam) == 12) {
class_0A1E_slot_23(4, steam);
spawn class_0A15_slot_20(steam);
ITEM.slot_23(4, steam);
spawn STEAM.slot_20(steam);
}
}
}
else {
spawn class_0A0C_slot_32(pid, 120, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 120, 0x00000000);
suspend;
}
if (direction == 0) {
@ -30,7 +30,7 @@ function steambox_slot_20() /* entry=296 class_id=0x0500 slot=0x20 */
if (!getAnimationsDisabled()) {
}
}
class_0A1E_slot_23(4, steam2);
spawn class_0A15_slot_20(steam2);
ITEM.slot_23(4, steam2);
spawn STEAM.slot_20(steam2);
return;
}

View file

@ -8,36 +8,36 @@ function steambox_slot_21() /* entry=296 class_id=0x0500 slot=0x21 */
steam2; /* [BP-04h] type=0x24 */
set_info(1, *(arg_06));
class_0A1E_slot_23(0x1000, steam);
ITEM.slot_23(0x1000, steam);
if (!getAnimationsDisabled()) {
if ((Item.getShape(steam) == 0x04F9) || (Item.getShape(steam) != 0x04FD)) {
while ((Item.getFrame(steam) == 39) && (Item.isOnScreen(arg_06) != 1)) {
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
suspend;
}
}
else {
while ((Item.getFrame(steam) == 23) && (Item.isOnScreen(steam) != 1)) {
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
suspend;
}
}
}
else {
spawn class_0A0C_slot_32(pid, 0x00C8, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 0x00C8, 0x00000000);
suspend;
}
class_0A1E_slot_23(0x1000, steam2);
ITEM.slot_23(0x1000, steam2);
if (!getAnimationsDisabled()) {
while ((Item.getFrame(steam2) == 29) && (Item.isOnScreen(steam2) != 1)) {
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
suspend;
}
}
else {
spawn class_0A0C_slot_32(pid, 0x00C8, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 0x00C8, 0x00000000);
suspend;
}
class_0A1E_slot_24(0x1000, steam2);
ITEM.slot_24(0x1000, steam2);
return;
}