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

@ -10,40 +10,28 @@ function conv_el_gotHit() /* entry=140 class_id=0x0293 slot=0x06 */
a, /* [BP-05h] type=0x62 */
b; /* [BP-06h] type=0x62 */
entry:
set_info(0x020C, *(arg_06));
process_exclude();
xdir = 0;
ydir = -3;
if Item.isOn(arg_06) goto block_0211;
block_020A:
set_info(0x020C, *(arg_06));
process_exclude();
xdir = 0;
ydir = -3;
if (!Item.getQHi(arg_06)) {
ydir = 3;
block_0211:
class_0A0C_slot_2C(v, ref);
if retval goto block_0229;
block_0223:
goto block_029C;
block_0229:
item = ref;
a = Item.getQHi(*(arg_06), item);
b = 1;
if (Intrinsic004D(arg_06) != 0x00FF) goto block_0266;
block_025F:
b = 0;
block_0266:
if (a && b) goto block_029C;
block_0277:
spawn class_0A04_slot_20(pid, ydir, xdir, arg_06);
suspend;
block_029C:
}
class_0A0C_slot_2C(v, ref);
if (!retval) {
return;
}
else {
item = ref;
a = Item.IsOn(*(arg_06), item);
b = 1;
if (Item.getQHi(arg_06) == 0x00FF) {
b = 0;
}
if (!(a && b)) {
spawn class_0A04_slot_20(pid, ydir, xdir, arg_06);
suspend;
}
}
return;
}

View file

@ -1,31 +1,20 @@
function conv_el_equip() /* entry=140 class_id=0x0293 slot=0x0A */
{
entry:
set_info(0x0211, *(arg_06));
process_exclude();
if (arg_0A != 0) goto block_0135;
block_00F9:
set_info(0x0211, *(arg_06));
process_exclude();
if (arg_0A == 0) {
class_0A0C_slot_33(0x0205, *(arg_06));
goto block_01BB;
block_0135:
if (arg_0A != 1) goto block_0178;
block_0143:
return;
}
else if (arg_0A == 1) {
class_0A0C_slot_33(0x0205, *(arg_06));
spawn class_0A04_slot_20(-3, 0, arg_06);
goto block_01BB;
block_0178:
if (arg_0A != 2) goto block_01BB;
block_0186:
return;
}
else if (arg_0A == 2) {
class_0A0C_slot_33(0x0205, *(arg_06));
spawn class_0A04_slot_20(3, 0, arg_06);
goto block_01BB;
block_01BB:
return;
}
return;
}