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

@ -9,32 +9,28 @@ function scanner_use() /* entry=304 class_id=0x052D slot=0x01 */
set_info(0x00F0, 0);
/* global_address global_id=0x3C */
if (Actor.getMana() >= 0x03E8) {
spawn class_0A0C_slot_21(pid, 0x00B0, 0x00000000);
spawn FREE.slot_21(pid, 0x00B0, 0x00000000);
suspend;
spawn class_0A0C_slot_32(pid, 100, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 100, 0x00000000);
suspend;
return;
}
else {
/* global_address global_id=0x3C */
/* global_address global_id=0x3C */
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x3A */
/* loopscr value_u8=0x25 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
/* loop_selector n in nearby_items(family=6, origin=global[0x003C]) */
while (!condition) {
if ((Actor.isDead(n) == 0) && (n != getTargetNPCNumMaybe())) {
class_0A11_slot_2B(n);
NPC.slot_2B(n);
if (!retval) {
spawn class_052D_slot_20(n, arg_06);
spawn SCANNER.slot_20(n, arg_06);
}
}
/* loopnext */
}
spawn class_0A0C_slot_21(pid, 0x00BA, 0x00000000);
spawn FREE.slot_21(pid, 0x00BA, 0x00000000);
suspend;
spawn class_0A0C_slot_32(pid, 120, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 120, 0x00000000);
suspend;
}
return;