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,49 @@
function wallmew_use() /* entry=238 class_id=0x0436 slot=0x01 */
{
set_info(0x0207, *(arg_06));
process_exclude();
if (Item.getFrame(arg_06) <= 1) {
}
else {
local_08 = Item.getQLo(arg_06);
if (Item.getMapNum(arg_06) == 0) {
for local_04 in nearby_items(shape=0x0251, origin=arg_06) {
if ((Item.getQLo(local_04) == local_08) || (local_08 != 0)) {
VALBOX.slot_20(local_04);
local_06 = retval;
TEXTFILE.slot_23(local_06, Item.getQHi(local_04), Item.getQLo(local_04), arg_06);
/* free_local_string bp_offset=0xFE target=[BP-02h] */
local_02 = retval;
spawn TEXTFILE.slot_20(pid, local_02, arg_06);
/* free_stack_string value_u8=0x0 target=[SP+00h] */
suspend;
}
/* loopnext */
}
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
suspend;
}
else {
for local_04 in nearby_items(shape=0x0251, origin=arg_06) {
if (Item.getQLo(local_04) == local_08) {
VALBOX.slot_20(local_04);
local_06 = retval;
local_0A = (1 + local_0A);
}
/* loopnext */
}
TEXTFILE.slot_23(local_06, Item.getQHi(arg_06), Item.getQLo(arg_06), arg_06);
/* free_local_string bp_offset=0xFE target=[BP-02h] */
local_02 = retval;
if (local_0A <= 1) {
/* free_local_string bp_offset=0xFE target=[BP-02h] */
local_02 = "There is more than one Value box in range with the same link";
}
spawn TEXTFILE.slot_20(pid, local_02, arg_06);
/* free_stack_string value_u8=0x0 target=[SP+00h] */
suspend;
}
}
/* free_local_string bp_offset=0xFE target=[BP-02h] */
return;
}