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

@ -6,70 +6,46 @@ function fight_ns_gotHit() /* entry=71 class_id=0x017F slot=0x06 */
vel, /* [BP+0Ch] type=0x69 */
item; /* [BP-02h] type=0x24 */
entry:
set_info(0x020C, *(arg_06));
process_exclude();
if (Item.getStatus(arg_06) & 0x1000) goto block_010A;
block_0104:
goto block_026C;
block_010A:
class_0A0C_slot_2C(vel, ref);
if (!retval) goto block_0126;
block_0120:
goto block_026C;
block_0126:
spawn class_0A1E_slot_27(pid, 0x00C8, vel, ref, arg_06);
suspend;
/* dword_to_word */
if (!process_result) goto block_018A;
block_0157:
class_0A0C_slot_20(1);
if retval goto block_0177;
block_0167:
goto block_0184;
block_0177:
block_0184:
goto block_026C;
block_018A:
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x44 */
/* loop current_var=0xFE string_bytes=0xA loop_type=0x2 */
block_01B3:
if condition goto block_026A;
block_01B6:
class_0A1E_slot_23(0x1000, item);
if (!Item.getFrame(item)) goto block_0266;
block_01D8:
if ((Intrinsic0016(item) != 0x017F) || (Intrinsic0016(item) != 0x0141)) goto block_0234;
block_01FF:
spawn class_0A1E_slot_28(pid, 0, 2, item);
suspend;
goto block_0266;
block_0234:
spawn class_0A1E_slot_28(pid, 0, 1, item);
suspend;
block_0266:
/* loopnext */
goto block_01B3;
block_026A:
block_026C:
set_info(0x020C, *(arg_06));
process_exclude();
if (!(Item.getStatus(arg_06) & 0x1000)) {
return;
}
else {
class_0A0C_slot_2C(vel, ref);
if (retval) {
return;
}
else {
spawn class_0A1E_slot_27(pid, 0x00C8, vel, ref, arg_06);
suspend;
/* dword_to_word */
if (process_result) {
class_0A0C_slot_20(1);
if (!retval) {
}
return;
}
else {
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x44 */
/* loop current_var=0xFE string_bytes=0xA loop_type=0x2 */
while (!condition) {
class_0A1E_slot_23(0x1000, item);
if (Item.getFrame(item)) {
if ((Item.getShape(item) == 0x017F) || (Item.getShape(item) != 0x0141)) {
spawn class_0A1E_slot_28(pid, 0, 2, item);
suspend;
}
else {
spawn class_0A1E_slot_28(pid, 0, 1, item);
suspend;
}
}
/* loopnext */
}
}
}
}
return;
}