Pseudocode and stuff

This commit is contained in:
MaddoScientisto 2026-03-25 23:32:13 +01:00
commit ee33f94b4b
466 changed files with 27770 additions and 276 deletions

View file

@ -0,0 +1,49 @@
function conv_el_gotHit() /* entry=140 class_id=0x0293 slot=0x06 */
{
var
referent, /* [BP+00h] type=0x69 */
ref, /* [BP+0Ah] type=0x69 */
v, /* [BP+0Ch] type=0x69 */
xdir, /* [BP-01h] type=0x62 */
ydir, /* [BP-02h] type=0x62 */
item, /* [BP-04h] type=0x24 */
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:
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:
return;
}

View file

@ -0,0 +1,31 @@
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:
class_0A0C_slot_33(0x0205, *(arg_06));
goto block_01BB;
block_0135:
if (arg_0A != 1) goto block_0178;
block_0143:
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:
class_0A0C_slot_33(0x0205, *(arg_06));
spawn class_0A04_slot_20(3, 0, arg_06);
goto block_01BB;
block_01BB:
return;
}