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,32 @@
function scanner_use() /* entry=306 class_id=0x052D slot=0x01 */
{
set_info(0x0207, *(arg_06));
process_exclude();
set_info(0x00F0, 0);
/* global_address global_id=0x1E */
if (Actor.getMana() >= 0x0258) {
spawn FREE.slot_21(pid, 0x01A7, 0x00000000);
suspend;
spawn FREE.slot_3B(pid, 20, 0x00000000);
suspend;
return;
}
else {
/* global_address global_id=0x1E */
/* global_address global_id=0x1E */
/* loop_selector local_02 in nearby_items(family=6, origin=global[0x001E]) */
while (!condition) {
if ((Actor.isDead(local_02) == 0) && (local_02 != World.getControlledNPCNum())) {
NPC.slot_2A(local_02);
if (!retval) {
spawn SCANNER.slot_20(local_02, arg_06);
}
}
/* loopnext */
}
/* global_address global_id=0x1E */
spawn FREE.slot_3B(pid, 60, 0x00000000);
suspend;
}
return;
}

View file

@ -0,0 +1,6 @@
function scanner_slot_20() /* entry=306 class_id=0x052D slot=0x20 */
{
set_info(0x00F0, 0);
local_02 = arg_0A;
return;
}