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

@ -8,34 +8,30 @@ function crumorph_equip() /* entry=173 class_id=0x0318 slot=0x0A */
set_info(0x0211, *(arg_06));
process_exclude();
/* 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=arg_06) */
while (!condition) {
if (!Actor.isNPC(n)) {
if (Actor.GetNPCDataField0x63_00B(n) == Item.getQLo(arg_06)) {
if (Actor.isDead(n) == 0) {
class_0A11_slot_2B(n);
NPC.slot_2B(n);
if (retval) {
return;
}
lastAct = GetNPCDataField0x2_050(n);
spawn class_0A0C_slot_32(pid, 3, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 3, 0x00000000);
suspend;
spawn class_0A11_slot_28(pid, n);
spawn NPC.slot_28(pid, n);
suspend;
while (getTargetNPCNumMaybe() <= 1) {
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
suspend;
}
if (Actor.isDead(n) == 0) {
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
suspend;
}
else {
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
suspend;
}
return;