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,80 @@
function box_ew_use() /* entry=15 class_id=0x0080 slot=0x01 */
{
var
referent, /* [BP+00h] type=0x69 */
counter; /* [BP-02h] type=0x69 */
entry:
set_info(0x0207, *(arg_06));
process_exclude();
if Item.getFrame(arg_06) goto block_0198;
block_00FA:
block_0108:
if Item.touch(0x00A7, arg_06) goto block_0143;
block_011A:
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
goto block_0108;
block_0143:
counter = 0;
block_014A:
if (counter <= 5) goto block_0195;
block_0152:
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
goto block_014A;
block_0195:
goto block_0230;
block_0198:
block_01A6:
if Item.touch(0x00A5, arg_06) goto block_01E1;
block_01B8:
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
goto block_01A6;
block_01E1:
counter = 0;
block_01E8:
if (counter <= 5) goto block_0230;
block_01F0:
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
goto block_01E8;
block_0230:
if (Item.getMapNum(arg_06) != 0) goto block_02AB;
block_0242:
if (Item.getFrame(arg_06) != 0) goto block_027E;
block_0254:
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
suspend;
goto block_02A5;
block_027E:
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
suspend;
block_02A5:
goto block_02AB;
block_02AB:
return;
}