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,44 @@
function pit_gotHit() /* entry=190 class_id=0x0364 slot=0x06 */
{
set_info(0x020C, *(arg_06));
process_exclude();
local_02 = arg_0A;
FREE.slot_35(arg_0C, arg_0A);
if (!retval) {
return;
}
else if (!Item.isNpc(local_02)) {
local_04 = arg_0A;
if (local_04 == World.getControlledNPCNum()) {
if (Item.getShape(local_04) == 1) {
while (Actor.isDead(local_04)) {
}
spawn FREE.slot_21(pid, 98, 0x00000000);
suspend;
}
else {
while (Actor.isDead(local_04)) {
}
spawn FREE.slot_3B(pid, 2, 0x00000000);
suspend;
}
return;
}
else {
while (Actor.isDead(local_04)) {
}
NPC.slot_2A(local_04);
if (retval) {
}
return;
}
return;
}
else if ((Item.getShape(local_02) == 0x039C) && (global[0x0016] != 0)) {
spawn FREE.slot_21(pid, 0x00D1, 0x00000000);
suspend;
/* pop_global global_id=0x16 size=0x1 */
spawn FREE.slot_2D(1, 0x00C8, 0x00000000);
}
return;
}