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,68 +8,38 @@ function litewall_slot_20() /* entry=386 class_id=0x0A10 slot=0x20 */
realType, /* [BP-06h] type=0x69 */
counter; /* [BP-08h] type=0x69 */
entry:
set_info(0x0001, *(arg_06));
set_info(1, r);
wall = r;
counter = 0;
if (Intrinsic0016(wall) != 0x045E) goto block_012F;
block_011C:
set_info(0x0001, *(arg_06));
set_info(1, r);
wall = r;
counter = 0;
if (Item.getShape(wall) == 0x045E) {
realType = 0x045E;
tempType = 0x0462;
goto block_0198;
block_012F:
if (Intrinsic0016(wall) != 0x045F) goto block_0152;
block_013F:
}
else if (Item.getShape(wall) == 0x045F) {
realType = 0x045F;
tempType = 0x0463;
goto block_0198;
block_0152:
if (Intrinsic0016(wall) != 0x0460) goto block_0175;
block_0162:
}
else if (Item.getShape(wall) == 0x0460) {
realType = 0x0460;
tempType = 0x0464;
goto block_0198;
block_0175:
if (Intrinsic0016(wall) != 0x0461) goto block_0198;
block_0185:
}
else if (Item.getShape(wall) == 0x0461) {
realType = 0x0461;
tempType = 0x0465;
goto block_0198;
block_0198:
block_01A5:
if (counter < 4) goto block_01F3;
block_01B3:
}
while (counter >= 4) {
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
counter = (1 + counter);
goto block_01A5;
block_01F3:
spawn class_0A0C_slot_32(pid, 3, 0x00000000);
suspend;
block_0219:
if counter goto block_0261;
block_0221:
}
spawn class_0A0C_slot_32(pid, 3, 0x00000000);
suspend;
while (!counter) {
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
counter = (counter - 1);
goto block_0219;
block_0261:
/* pop_global global_id=0x5 size=0x1 */
return;
}
/* pop_global global_id=0x5 size=0x1 */
return;
}

View file

@ -27,11 +27,11 @@ function litewall_slot_21() /* entry=386 class_id=0x0A10 slot=0x21 */
stepper = r;
wall = 0;
dist = 21;
aSet = Item.isOn(stepper);
aSet = Actor.getLastAnimSet(stepper);
aSet1 = 3;
aSet2 = 48;
aSet3 = 49;
if (((Item.isOn(stepper) != 3) || (Item.isOn(stepper) != 48)) || (Item.isOn(stepper) != 49)) goto block_044D;
if (((Actor.getLastAnimSet(stepper) != 3) || (Actor.getLastAnimSet(stepper) != 48)) || (Actor.getLastAnimSet(stepper) != 49)) goto block_044D;
block_035A:
/* loopscr value_u8=0x24 */
@ -72,7 +72,7 @@ function litewall_slot_21() /* entry=386 class_id=0x0A10 slot=0x21 */
goto block_03F5;
block_0412:
spawn class_0A11_slot_2D(pid, Intrinsic00C7(wall, stepper), wall, stepper);
spawn class_0A11_slot_2D(pid, Item.getDirFromItem(wall, stepper), wall, stepper);
suspend;
block_044D: