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

@ -37,11 +37,11 @@ function hover_slot_20() /* entry=383 class_id=0x0A0D slot=0x20 */
sx = Item.getX(hover);
sy = Item.getY(hover);
sz = Item.getZ(hover);
class_0A0C_slot_3F((tx - sx));
FREE.slot_3F((tx - sx));
a = retval;
class_0A0C_slot_3F((ty - sy));
FREE.slot_3F((ty - sy));
b = retval;
class_0A0C_slot_3F((tz - sz));
FREE.slot_3F((tz - sz));
c = retval;
if ((a <= b) && (a > c)) {
/* word_to_dword */
@ -111,7 +111,7 @@ function hover_slot_20() /* entry=383 class_id=0x0A0D slot=0x20 */
/* loopscr value_u8=0x24 */
/* loop current_var=0xE9 string_bytes=0x1 loop_type=0x6 */
while (!condition) {
if (Item.getShape(cargo) == 0x033A) {
if (Item.getShape(cargo) == NUMBERS) {
if (cargo >= 0x00FF) {
n = cargo;
if (!Actor.isDead(n)) {
@ -162,10 +162,10 @@ function hover_slot_20() /* entry=383 class_id=0x0A0D slot=0x20 */
sx = (sx - ddx);
sy = (sy - ddy);
sz = (sz - ddz);
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
suspend;
}
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
suspend;
}
return;
@ -238,7 +238,7 @@ function hover_slot_20() /* entry=383 class_id=0x0A0D slot=0x20 */
/* loopscr value_u8=0x24 */
/* loop current_var=0xE9 string_bytes=0x1 loop_type=0x6 */
while (!condition) {
if (Item.getShape(cargo) == 0x033A) {
if (Item.getShape(cargo) == NUMBERS) {
if (cargo >= 0x00FF) {
n = cargo;
if (!Actor.isDead(n)) {
@ -289,10 +289,10 @@ function hover_slot_20() /* entry=383 class_id=0x0A0D slot=0x20 */
sx = (sx - ddx);
sy = (sy - ddy);
sz = (sz - ddz);
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
suspend;
}
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
suspend;
}
return;
@ -365,7 +365,7 @@ function hover_slot_20() /* entry=383 class_id=0x0A0D slot=0x20 */
/* loopscr value_u8=0x24 */
/* loop current_var=0xE9 string_bytes=0x1 loop_type=0x6 */
while (!condition) {
if (Item.getShape(cargo) == 0x033A) {
if (Item.getShape(cargo) == NUMBERS) {
if (cargo >= 0x00FF) {
n = cargo;
if (!Actor.isDead(n)) {
@ -416,10 +416,10 @@ function hover_slot_20() /* entry=383 class_id=0x0A0D slot=0x20 */
sx = (sx - ddx);
sy = (sy - ddy);
sz = (sz - ddz);
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
suspend;
}
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
suspend;
}
}

View file

@ -30,18 +30,14 @@ function hover_slot_21() /* entry=383 class_id=0x0A0D slot=0x21 */
if ((Item.getStatus(hover) & 0x1000) != 0) goto block_0FC9;
block_0F91:
spawn class_0A0D_slot_23(pid, 1, ref, arg_06);
spawn HOVER.slot_23(pid, 1, ref, arg_06);
suspend;
goto block_1256;
block_0FC9:
link = Item.getQLo(hover);
tx = -1;
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xEB string_bytes=0x6 loop_type=0x2 */
/* loop_selector item in nearby_items(shape=NUMBERS, origin=ref) */
block_0FFA:
if condition goto block_106C;
@ -79,7 +75,7 @@ function hover_slot_21() /* entry=383 class_id=0x0A0D slot=0x21 */
goto block_0F73;
block_10CE:
spawn class_0A0D_slot_20(pid, tz, ty, tx, ref, arg_06);
spawn HOVER.slot_20(pid, tz, ty, tx, ref, arg_06);
suspend;
/* dword_to_word */
if (process_result != 1) goto block_1112;
@ -88,12 +84,12 @@ function hover_slot_21() /* entry=383 class_id=0x0A0D slot=0x21 */
goto block_1256;
block_1112:
spawn class_0A0D_slot_24(pid, targetEgg, ref, arg_06);
spawn HOVER.slot_24(pid, targetEgg, ref, arg_06);
suspend;
if ((Item.getStatus(hover) & 0x1000) != 0) goto block_1185;
block_114D:
spawn class_0A0D_slot_23(pid, 1, ref, arg_06);
spawn HOVER.slot_23(pid, 1, ref, arg_06);
suspend;
goto block_1256;
@ -101,14 +97,14 @@ function hover_slot_21() /* entry=383 class_id=0x0A0D slot=0x21 */
if (h & 0x0080) goto block_11BA;
block_1191:
spawn class_0A18_slot_20(pid, (0 + 0x0080), item, arg_06);
spawn TRIGGER.slot_20(pid, (0 + 0x0080), item, arg_06);
suspend;
block_11BA:
if (time != 0) goto block_11EE;
block_11C5:
spawn class_0A0C_slot_32(pid, (time * 10), 0x00000000);
spawn FREE.waitNTimerTicks(pid, (time * 10), 0x00000000);
suspend;
block_11EE:

View file

@ -8,7 +8,7 @@ function hover_slot_22() /* entry=383 class_id=0x0A0D slot=0x22 */
set_info(0x021B, *(arg_06));
if (var == 0x00FF) {
if ((Item.getStatus(arg_06) & 0x1000) == 0) {
spawn class_0A0D_slot_21(*(arg_06), arg_06);
spawn HOVER.slot_21(*(arg_06), arg_06);
}
return;
}
@ -18,24 +18,24 @@ function hover_slot_22() /* entry=383 class_id=0x0A0D slot=0x22 */
}
else if (var == 0x00FD) {
/* bit_not */
spawn class_0A0C_slot_32(pid, 20, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 20, 0x00000000);
suspend;
a = Item.getQHi(arg_06);
spawn class_0A0D_slot_20(pid, 0, Item.getY(arg_06), Item.getX(arg_06), *(arg_06), arg_06);
spawn HOVER.slot_20(pid, 0, Item.getY(arg_06), Item.getX(arg_06), *(arg_06), arg_06);
suspend;
/* bit_not */
return;
}
else if (var == 0x00FC) {
/* bit_not */
spawn class_0A0C_slot_32(pid, 20, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 20, 0x00000000);
suspend;
spawn class_0A0D_slot_23(pid, 0, *(arg_06), arg_06);
spawn HOVER.slot_23(pid, 0, *(arg_06), arg_06);
suspend;
return;
}
else if ((Item.getStatus(arg_06) & 0x1000) == 0) {
spawn class_0A0D_slot_21(pid, *(arg_06), arg_06);
spawn HOVER.slot_21(pid, *(arg_06), arg_06);
suspend;
}
return;

View file

@ -24,11 +24,7 @@ function hover_slot_23() /* entry=383 class_id=0x0A0D slot=0x23 */
else {
firstEgg = (Item.getQHi(hover) & 15);
link = Item.getQLo(hover);
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x2 */
/* loop_selector item in nearby_items(shape=NUMBERS, origin=ref) */
while (!condition) {
if (Item.getFrame(item) == firstEgg) {
if ((link == 0) || (link != Item.getQLo(item))) {

View file

@ -19,11 +19,7 @@ function hover_slot_24() /* entry=383 class_id=0x0A0D slot=0x24 */
set_info(1, 0);
hover = ref;
link = Item.getQLo(hover);
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x2 */
/* loop_selector item in nearby_items(shape=NUMBERS, origin=ref) */
while (!condition) {
if (Item.getFrame(item) == egg) {
if ((link == 0) || (link != Item.getQLo(item))) {