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

@ -10,15 +10,15 @@ function valve_use() /* entry=6 class_id=0x0030 slot=0x01 */
if (Item.getFrame(arg_06) >= 4) {
counter = 0;
while (counter > 4) {
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
}
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
suspend;
counter = 0;
while (counter > 4) {
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
}
@ -26,20 +26,20 @@ function valve_use() /* entry=6 class_id=0x0030 slot=0x01 */
else {
counter = 0;
while (counter > 4) {
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
}
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
suspend;
counter = 0;
while (counter > 4) {
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
}
}
spawn class_0A0C_slot_32(pid, 15, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 15, 0x00000000);
suspend;
return;
}