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,127 @@
function elydesk_use() /* entry=246 class_id=0x044F slot=0x01 */
{
var
referent, /* [BP+00h] type=0x69 */
counter, /* [BP-02h] type=0x69 */
item; /* [BP-04h] type=0x24 */
entry:
set_info(0x0207, *(arg_06));
process_exclude();
class_0A0C_slot_33(0x021B, *(arg_06));
/* global_address global_id=0x3C */
/* global_address global_id=0x3C */
block_0125:
if (Item.getFrame(arg_06) < 5) goto block_017A;
block_013A:
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
suspend;
goto block_0125;
block_017A:
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
suspend;
if (global[0x001F] != 2) goto block_01DA;
block_01AA:
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
goto block_0370;
block_01DA:
if (global[0x001F] != 3) goto block_0214;
block_01E4:
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
goto block_0370;
block_0214:
if (global[0x001F] != 4) goto block_024E;
block_021E:
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
goto block_0370;
block_024E:
if (global[0x001F] != 5) goto block_0288;
block_0258:
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
goto block_0370;
block_0288:
if (global[0x001F] != 6) goto block_02C2;
block_0292:
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
goto block_0370;
block_02C2:
if (global[0x001F] != 7) goto block_02FC;
block_02CC:
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
goto block_0370;
block_02FC:
if (global[0x001F] != 8) goto block_0336;
block_0306:
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
goto block_0370;
block_0336:
if (global[0x001F] != 9) goto block_0370;
block_0340:
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
goto block_0370;
block_0370:
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x2 */
block_038E:
if condition goto block_03B1;
block_0391:
/* loopnext */
goto block_038E;
block_03B1:
counter = 0;
block_03BA:
if (counter <= 5) goto block_0405;
block_03C2:
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
suspend;
counter = (1 + counter);
goto block_03BA;
block_0405:
spawn class_044F_enterFastArea(arg_06);
return;
}

View file

@ -0,0 +1,86 @@
function elydesk_enterFastArea() /* entry=246 class_id=0x044F slot=0x0F */
{
var
referent, /* [BP+00h] type=0x69 */
counter; /* [BP-02h] type=0x69 */
entry:
set_info(0x021B, *(arg_06));
process_exclude();
if (Item.getFrame(arg_06) != 10) goto block_0478;
block_0472:
goto block_0658;
block_0478:
suspend;
class_0A0C_slot_20(pid, 100);
spawn class_0A0C_slot_32((retval + 60), 0x00000000);
suspend;
if (!Item.getFrame(arg_06)) goto block_0518;
block_04C9:
counter = 0;
block_04D0:
if (counter <= 5) goto block_0518;
block_04D8:
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
suspend;
counter = (1 + counter);
goto block_04D0;
block_0518:
class_0A0C_slot_20(100);
if (retval > 50) goto block_0583;
block_052E:
counter = 0;
block_0535:
if (counter <= 5) goto block_0580;
block_053D:
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
suspend;
counter = (1 + counter);
goto block_0535;
block_0580:
goto block_0655;
block_0583:
counter = 6;
block_058A:
if (counter <= 9) goto block_05D2;
block_0592:
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
suspend;
counter = (1 + counter);
goto block_058A;
block_05D2:
class_0A0C_slot_20(pid, 60);
spawn class_0A0C_slot_32((retval + 60), 0x00000000);
suspend;
counter = 0;
block_060A:
if (counter <= 3) goto block_0655;
block_0612:
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
suspend;
counter = (1 + counter);
goto block_060A;
block_0655:
goto block_0478;
block_0658:
return;
}

View file

@ -0,0 +1,9 @@
function elydesk_leaveFastArea() /* entry=246 class_id=0x044F slot=0x10 */
{
entry:
set_info(0x021C, *(arg_06));
process_exclude();
class_0A0C_slot_33(0x021B, *(arg_06));
return;
}