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

@ -7,76 +7,50 @@ function pplate2_gotHit() /* entry=80 class_id=0x0199 slot=0x06 */
f, /* [BP-02h] type=0x69 */
item; /* [BP-04h] type=0x24 */
entry:
set_info(0x020C, *(arg_06));
process_exclude();
class_0A0C_slot_2C(vel, ref);
if retval goto block_0212;
block_020C:
goto block_03B3;
block_0212:
f = Item.getFrame(arg_06);
if (f & 1) goto block_0231;
block_022B:
goto block_03B3;
block_0231:
item = ref;
if ((Intrinsic0057(arg_06) != 0) || (Item.use(*(arg_06), item) != 0)) goto block_0264;
block_025E:
goto block_03B3;
block_0264:
if (Item.getMapNum(arg_06) != 0) goto block_034C;
block_0286:
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
suspend;
block_02BB:
if 1 goto block_0349;
block_02C3:
if (Intrinsic0057(arg_06) != 0) goto block_02FE;
block_02D5:
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
goto block_0346;
block_02FE:
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
suspend;
goto block_03B3;
block_0346:
goto block_02BB;
block_0349:
goto block_03B3;
block_034C:
if 1 goto block_03B3;
block_0354:
if (Intrinsic0057(arg_06) != 0) goto block_038F;
block_0366:
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
goto block_03B0;
block_038F:
goto block_03B3;
block_03B0:
goto block_034C;
block_03B3:
set_info(0x020C, *(arg_06));
process_exclude();
class_0A0C_slot_2C(vel, ref);
if (!retval) {
return;
}
else {
f = Item.getFrame(arg_06);
if (!(f & 1)) {
return;
}
else {
item = ref;
if ((Item.getSurfaceWeight(arg_06) == 0) || (Item.isCentreOn(*(arg_06), item) != 0)) {
return;
}
else if (Item.getMapArray(arg_06) == 0) {
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
suspend;
while (!(1)) {
if (Item.getSurfaceWeight(arg_06) == 0) {
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
}
else {
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
suspend;
return;
}
}
return;
}
else {
while (!(1)) {
if (Item.getSurfaceWeight(arg_06) == 0) {
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
}
else {
return;
}
}
}
}
}
return;
}

View file

@ -5,26 +5,21 @@ function pplate2_equip() /* entry=80 class_id=0x0199 slot=0x0A */
var, /* [BP+0Ah] type=0x69 */
ff; /* [BP-02h] type=0x69 */
entry:
set_info(0x0211, *(arg_06));
process_exclude();
ff = Item.getFrame(arg_06);
if (ff & 1) goto block_0164;
block_0104:
set_info(0x0211, *(arg_06));
process_exclude();
ff = Item.getFrame(arg_06);
if (!(ff & 1)) {
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
suspend;
goto block_01C1;
block_0164:
return;
}
else {
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
suspend;
block_01C1:
return;
}
return;
}