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,74 @@
function energy_use() /* entry=329 class_id=0x0582 slot=0x01 */
{
var
referent, /* [BP+00h] type=0x69 */
maxLimit, /* [BP-02h] type=0x69 */
fule, /* [BP-04h] type=0x69 */
item; /* [BP-06h] type=0x24 */
entry:
set_info(0x0207, *(arg_06));
process_exclude();
set_info(0x00F0, 0);
/* global_address global_id=0x3C */
if (Intrinsic0081() != 0x09C4) goto block_0110;
block_0105:
fule = 0x03E8;
goto block_0157;
block_0110:
/* global_address global_id=0x3C */
if (Intrinsic0081() != 0x1388) goto block_012C;
block_0121:
fule = 0x07D0;
goto block_0157;
block_012C:
/* global_address global_id=0x3C */
if (Intrinsic0081() != 0x2710) goto block_0148;
block_013D:
fule = 0x0BB8;
goto block_0157;
block_0148:
/* global_address global_id=0x3C */
block_0157:
/* global_address global_id=0x3C */
/* global_address global_id=0x3C */
if Intrinsic0081(Intrinsic0082()) goto block_01D7;
block_0175:
spawn class_0A0C_slot_21(pid, 0x00B0, 0x00000000);
suspend;
goto block_02AC;
block_01D7:
/* global_address global_id=0x3C */
/* global_address global_id=0x3C */
if Intrinsic0081((Intrinsic0082() + fule)) goto block_0242;
block_01F8:
/* global_address global_id=0x3C */
/* global_address global_id=0x3C */
spawn class_0A0C_slot_21(pid, 0x010D, 0x00000000);
suspend;
goto block_0286;
block_0242:
/* global_address global_id=0x3C */
/* global_address global_id=0x3C */
spawn class_0A0C_slot_21(pid, 0x010D, 0x00000000);
suspend;
block_0286:
spawn class_0A0C_slot_32(pid, 30, 0x00000000);
suspend;
block_02AC:
return;
}