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

@ -3,21 +3,21 @@ function powergen_gotHit() /* entry=142 class_id=0x028C slot=0x06 */
set_info(0x020C, *(arg_06));
process_exclude();
local_02 = Item.getFrame(arg_06);
class_0A1D_slot_35((local_02 > 0), arg_0C, arg_0A);
FREE.slot_35((local_02 > 0), arg_0C, arg_0A);
if (retval == 0) {
return;
}
else if (!Item.getQHi(arg_06)) {
spawn class_0A1D_slot_3B(pid, 30, 0x00000000);
spawn FREE.slot_3B(pid, 30, 0x00000000);
suspend;
return;
}
else {
spawn class_0A0C_slot_29(pid, 0x00C8, arg_0C, arg_0A, arg_06);
spawn ITEM.slot_29(pid, 0x00C8, arg_0C, arg_0A, arg_06);
suspend;
/* dword_to_word */
if (process_result) {
class_0A1D_slot_20(1);
FREE.slot_20(1);
if (!retval) {
}
return;
@ -34,12 +34,7 @@ function powergen_gotHit() /* entry=142 class_id=0x028C slot=0x06 */
if (global[0x0005]) {
suspend;
}
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xFA string_bytes=0x6 loop_type=0x2 */
while (!condition) {
for local_06 in nearby_items(shape=17, origin=arg_06) {
if (Egg.getEggId(local_06) == Item.getQLo(arg_06)) {
if ((Item.getFrame(local_06) == 1) && (global[0x000C] > 0)) {
/* pop_global global_id=0xC size=0x1 */
@ -48,7 +43,7 @@ function powergen_gotHit() /* entry=142 class_id=0x028C slot=0x06 */
/* loopnext */
}
if (Item.getMapNum(arg_06) == 0) {
spawn class_0A17_slot_20(pid, 0, *(arg_06), arg_06);
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
suspend;
}
}

View file

@ -3,7 +3,7 @@ function powergen_equip() /* entry=142 class_id=0x028C slot=0x0A */
set_info(0x0211, *(arg_06));
process_exclude();
if (arg_0A == 0x00FF) {
spawn class_0A1D_slot_3B(pid, 10, 0x00000000);
spawn FREE.slot_3B(pid, 10, 0x00000000);
suspend;
}
return;