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,9 +1,7 @@
function bbetty_leaveFastArea() /* entry=371 class_id=0x0A01 slot=0x10 */
{
entry:
set_info(0x0001, *(arg_06));
process_exclude();
class_0A0C_slot_33(1, *(arg_06));
return;
set_info(0x0001, *(arg_06));
process_exclude();
class_0A0C_slot_33(1, *(arg_06));
return;
}

View file

@ -7,50 +7,27 @@ function bbetty_slot_20() /* entry=371 class_id=0x0A01 slot=0x20 */
counter2, /* [BP-06h] type=0x69 */
total; /* [BP-08h] type=0x69 */
entry:
set_info(0x0205, *(arg_06));
if (Intrinsic0016(arg_06) != 0x02C9) goto block_0232;
block_010F:
set_info(0x0205, *(arg_06));
if (Item.getShape(arg_06) == 0x02C9) {
counter = 0;
block_0116:
if (counter <= 4) goto block_0219;
block_011E:
total = 0;
/* loopscr value_u8=0x24 */
/* loop current_var=0xFE string_bytes=0x1 loop_type=0x6 */
block_0142:
if condition goto block_015E;
block_0145:
total = (1 + total);
/* loopnext */
goto block_0142;
block_015E:
counter2 = 1;
block_019B:
if (counter2 <= total) goto block_01E6;
block_01A6:
item = Intrinsic0023();
counter2 = (1 + counter2);
goto block_019B;
block_01E6:
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
goto block_0116;
block_0219:
block_0232:
spawn class_0A01_slot_21(arg_06);
return;
while (counter > 4) {
total = 0;
/* loopscr value_u8=0x24 */
/* loop current_var=0xFE string_bytes=0x1 loop_type=0x6 */
while (!condition) {
total = (1 + total);
/* loopnext */
}
counter2 = 1;
while (counter2 > total) {
item = Item.getEtherealTop();
counter2 = (1 + counter2);
}
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
}
}
spawn class_0A01_slot_21(arg_06);
return;
}

View file

@ -17,12 +17,12 @@ function bbetty_slot_21() /* entry=371 class_id=0x0A01 slot=0x21 */
block_02BB:
suspend;
if Item.getCX(arg_06) goto block_0312;
if Item.getQHi(arg_06) goto block_0312;
block_02D7:
/* global_address global_id=0x3C */
/* global_address global_id=0x3C */
dir = Intrinsic0027(Intrinsic0013(Item.legal_create(8, 0, 8)), Item.legal_create(arg_06), Intrinsic0013(arg_06));
dir = getClosestDirectionInRange(Item.getX(Item.getY(8, 0, 8)), Item.getY(arg_06), Item.getX(arg_06));
goto block_0331;
block_0312:
@ -33,88 +33,58 @@ function bbetty_slot_21() /* entry=371 class_id=0x0A01 slot=0x21 */
dir = 0;
block_0331:
if (dir != 0) goto block_0358;
block_0339:
x = 0;
y = -1;
xx = -16;
yy = -48;
goto block_0469;
block_0358:
if (dir != 1) goto block_037F;
block_0360:
x = 1;
y = -1;
xx = 16;
yy = -48;
goto block_0469;
block_037F:
if (dir != 2) goto block_03A6;
block_0387:
x = 1;
y = 0;
xx = 16;
yy = -16;
goto block_0469;
block_03A6:
if (dir != 3) goto block_03CD;
block_03AE:
x = 1;
y = 1;
xx = 16;
yy = 16;
goto block_0469;
block_03CD:
if (dir != 4) goto block_03F4;
block_03D5:
x = 0;
y = 1;
xx = -16;
yy = 16;
goto block_0469;
block_03F4:
if (dir != 5) goto block_041B;
block_03FC:
x = -1;
y = 1;
xx = -48;
yy = 16;
goto block_0469;
block_041B:
if (dir != 6) goto block_0442;
block_0423:
x = -1;
y = 0;
xx = -48;
yy = -16;
goto block_0469;
block_0442:
if (dir != 7) goto block_0469;
block_044A:
x = -1;
y = -1;
xx = -48;
yy = -48;
goto block_0469;
if (dir == 0) {
x = 0;
y = -1;
xx = -16;
yy = -48;
}
else if (dir == 1) {
x = 1;
y = -1;
xx = 16;
yy = -48;
}
else if (dir == 2) {
x = 1;
y = 0;
xx = 16;
yy = -16;
}
else if (dir == 3) {
x = 1;
y = 1;
xx = 16;
yy = 16;
}
else if (dir == 4) {
x = 0;
y = 1;
xx = -16;
yy = 16;
}
else if (dir == 5) {
x = -1;
y = 1;
xx = -48;
yy = 16;
}
else if (dir == 6) {
x = -1;
y = 0;
xx = -48;
yy = -16;
}
else if (dir == 7) {
x = -1;
y = -1;
xx = -48;
yy = -48;
}
block_0469:
class_0A0C_slot_20(8, 30, 15);
spawn class_0A0C_slot_32(pid, ((5 - Intrinsic0029()) * 20), 0x00000000);
spawn class_0A0C_slot_32(pid, ((5 - Game.getDifficultyLevel()) * 20), 0x00000000);
suspend;
goto block_02BB;