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

@ -8,36 +8,20 @@ function rfanew_gotHit() /* entry=9 class_id=0x005E slot=0x06 */
fart, /* [BP-04h] type=0x69 */
fart2; /* [BP-06h] type=0x69 */
entry:
set_info(0x020C, *(arg_06));
process_exclude();
class_0A0C_slot_2B(vel, ref);
if retval goto block_01A0;
block_0134:
fart2 = Item.getNpcNum(arg_06);
set_info(0x020C, *(arg_06));
process_exclude();
class_0A0C_slot_2B(vel, ref);
if (!retval) {
fart2 = Item.getQLo(arg_06);
/* 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 */
block_016D:
if condition goto block_019E;
block_0170:
fart = Item.getNpcNum(item);
if (fart != fart2) goto block_019A;
block_018F:
block_019A:
/* loopnext */
goto block_016D;
block_019E:
block_01A0:
return;
while (!condition) {
fart = Item.getQLo(item);
/* loopnext */
}
}
return;
}

View file

@ -9,18 +9,12 @@ function rfanew_equip() /* entry=9 class_id=0x005E slot=0x0A */
item, /* [BP-08h] type=0x24 */
wind; /* [BP-0Ah] type=0x24 */
entry:
set_info(0x0211, *(arg_06));
process_exclude();
if (Item.getStatus(arg_06) & 0x1000) goto block_020F;
block_0209:
goto block_03E3;
block_020F:
if (var != 0) goto block_03E3;
block_021A:
set_info(0x0211, *(arg_06));
process_exclude();
if (!(Item.getStatus(arg_06) & 0x1000)) {
return;
}
else if (var == 0) {
class_0A1E_slot_23(0x1000, arg_06);
fram = Item.getFrame(arg_06);
fram = (1 + fram);
@ -28,54 +22,31 @@ function rfanew_equip() /* entry=9 class_id=0x005E slot=0x0A */
spawn class_0A0C_slot_32(pid, counter2, 0x00000000);
suspend;
counter = 1;
block_0290:
if (counter <= 15) goto block_0378;
block_0298:
fram = (1 + fram);
if (fram > 5) goto block_02B7;
block_02B0:
fram = 1;
block_02B7:
counter2 = (counter2 + 1);
spawn class_0A0C_slot_32(pid, counter2, 0x00000000);
suspend;
if (counter2 != 4) goto block_036B;
block_0302:
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xF6 string_bytes=0x6 loop_type=0x2 */
block_0320:
if condition goto block_0369;
block_0323:
if (Item.getNpcNum(wind) != Item.getNpcNum(arg_06)) goto block_0365;
block_033F:
spawn class_0A0C_slot_31(pid, wind, 0x00000000);
suspend;
block_0365:
/* loopnext */
goto block_0320;
block_0369:
block_036B:
counter = (1 + counter);
goto block_0290;
block_0378:
while (counter > 15) {
fram = (1 + fram);
if (fram <= 5) {
fram = 1;
}
counter2 = (counter2 + 1);
spawn class_0A0C_slot_32(pid, counter2, 0x00000000);
suspend;
if (counter2 == 4) {
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xF6 string_bytes=0x6 loop_type=0x2 */
while (!condition) {
if (Item.getQLo(wind) == Item.getQLo(arg_06)) {
spawn class_0A0C_slot_31(pid, wind, 0x00000000);
suspend;
}
/* loopnext */
}
}
counter = (1 + counter);
}
class_0A1E_slot_24(0x1000, arg_06);
block_03E3:
return;
}
return;
}

View file

@ -1,8 +1,6 @@
function rfanew_enterFastArea() /* entry=9 class_id=0x005E slot=0x0F */
{
entry:
set_info(0x021B, *(arg_06));
process_exclude();
return;
set_info(0x021B, *(arg_06));
process_exclude();
return;
}