Pseudocode decompialtion improvements and docs

This commit is contained in:
MaddoScientisto 2026-03-26 22:10:48 +01:00
commit 589bfc31ef
1898 changed files with 60634 additions and 6597 deletions

View file

@ -0,0 +1,13 @@
function morph_5_use() /* entry=394 class_id=0x0605 slot=0x01 */
{
set_info(0x0207, *(arg_06));
process_exclude();
/* free_local_string bp_offset=0xFE target=[BP-02h] */
local_02 = "LMC SECURITY SYSTEM^^ ^You have now activated the Morphing Security System.^ ^Have a nice day!";
spawn TEXTFILE.slot_20(pid, local_02, arg_06);
/* free_stack_string value_u8=0x0 target=[SP+00h] */
suspend;
spawn MORPH_5.equip(1, arg_06);
/* free_local_string bp_offset=0xFE target=[BP-02h] */
return;
}

View file

@ -0,0 +1,16 @@
function morph_5_gotHit() /* entry=394 class_id=0x0605 slot=0x06 */
{
set_info(0x020C, *(arg_06));
process_exclude();
FREE.slot_35(arg_0C, arg_0A);
if (retval) {
return;
}
else if (Item.isEntirelyOnScreen(arg_06)) {
return;
}
else {
spawn MORPH_5.equip(1, arg_06);
}
return;
}

View file

@ -0,0 +1,26 @@
function morph_5_equip() /* entry=394 class_id=0x0605 slot=0x0A */
{
set_info(0x0211, *(arg_06));
process_exclude();
local_02 = 1;
while (local_02 > 16) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
suspend;
ITEM.slot_24(2, local_04);
if (arg_0A == 1) {
return;
}
else if (arg_0A == 2) {
return;
}
else if (arg_0A == 3) {
return;
}
else if (arg_0A == 4) {
return;
}
return;
}