Usecode pseudocode

This commit is contained in:
MaddoScientisto 2026-03-26 00:37:17 +01:00
commit c12bb39437
1362 changed files with 71072 additions and 38056 deletions

View file

@ -1,21 +1,15 @@
function chest_on_use() /* entry=313 class_id=0x054A slot=0x01 */
{
entry:
set_info(0x0207, *(arg_06));
process_exclude();
if (Item.getFrame(arg_06) > 9) goto block_01BE;
block_01B8:
goto block_01DF;
block_01BE:
class_0A0C_slot_40(*(arg_06));
if retval goto block_01DF;
block_01D0:
class_0A1E_slot_23(0x1000, arg_06);
block_01DF:
set_info(0x0207, *(arg_06));
process_exclude();
if (Item.getFrame(arg_06) <= 9) {
return;
}
else {
class_0A0C_slot_40(*(arg_06));
if (!retval) {
class_0A1E_slot_23(0x1000, arg_06);
}
}
return;
}

View file

@ -5,29 +5,18 @@ function chest_on_gotHit() /* entry=313 class_id=0x054A slot=0x06 */
ref, /* [BP+0Ah] type=0x69 */
vel; /* [BP+0Ch] type=0x69 */
entry:
set_info(0x020C, *(arg_06));
process_exclude();
class_0A0C_slot_2C(vel, ref);
if (!retval) goto block_0107;
block_0101:
goto block_0169;
block_0107:
if (Item.getFrame(arg_06) < 10) goto block_0169;
block_011C:
class_0A0C_slot_2C(vel, ref);
if retval goto block_0153;
block_012E:
spawn class_0A1E_slot_28(pid, 0, 0, arg_06);
suspend;
block_0153:
block_0169:
set_info(0x020C, *(arg_06));
process_exclude();
class_0A0C_slot_2C(vel, ref);
if (retval) {
return;
}
else if (Item.getFrame(arg_06) >= 10) {
class_0A0C_slot_2C(vel, ref);
if (!retval) {
spawn class_0A1E_slot_28(pid, 0, 0, arg_06);
suspend;
}
}
return;
}