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,9 @@
function lift_ew_hit() /* entry=408 class_id=0x0629 slot=0x05 */
{
set_info(0x020B, *(arg_06));
process_exclude();
if (arg_0A == 1) {
local_02 = arg_0A;
}
return;
}

View file

@ -0,0 +1,34 @@
function lift_ew_gotHit() /* entry=408 class_id=0x0629 slot=0x06 */
{
set_info(0x020C, *(arg_06));
process_exclude();
local_02 = arg_0A;
if (!(Item.getStatus(arg_06) & 0x1000)) {
return;
}
else {
FREE.slot_34(arg_0C, arg_0A);
if (!retval) {
return;
}
else if ((Item.getSurfaceWeight(arg_06) == 0) || (Item.isCompletelyOn(*(arg_06), local_02) != 0)) {
return;
}
else {
spawn ELEVAT.slot_20(pid, arg_06);
suspend;
while (!(1)) {
if (Item.getSurfaceWeight(arg_06) == 0) {
spawn FREE.slot_3B(pid, 2, 0x00000000);
suspend;
}
else {
spawn FREE.slot_3B(pid, 2, 0x00000000);
suspend;
return;
}
}
}
}
return;
}

View file

@ -0,0 +1,38 @@
function lift_ew_equip() /* entry=408 class_id=0x0629 slot=0x0A */
{
set_info(0x0211, *(arg_06));
process_exclude();
if (!(Item.getStatus(arg_06) & 0x1000)) {
return;
}
else {
local_01 = 0;
local_03 = Item.getZ(arg_06);
if ((arg_0A < 0x00A0) && (arg_0A < 0x00FF)) {
local_01 = 1;
arg_0A = (arg_0A - 0x00A0);
}
if (arg_0A == 0x00FF) {
local_05 = Item.getQHi(arg_06);
if ((local_05 == 88) || ((local_03 + 1) <= local_05)) {
}
}
else if (!arg_0A) {
}
spawn ELEVAT.slot_20(pid, arg_06);
suspend;
if (local_01 == 1) {
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x3A */
/* loopscr value_u8=0x25 */
/* loop current_var=0xF9 string_bytes=0x6 loop_type=0x6 */
while (!condition) {
spawn FREE.slot_3B(pid, 2, 0x00000000);
suspend;
/* loopnext */
}
}
}
return;
}

View file

@ -0,0 +1,9 @@
function lift_ew_enterFastArea() /* entry=408 class_id=0x0629 slot=0x0F */
{
set_info(0x021B, *(arg_06));
process_exclude();
if (Item.getQuality(arg_06) == 101) {
suspend;
}
return;
}

View file

@ -0,0 +1,7 @@
function lift_ew_leaveFastArea() /* entry=408 class_id=0x0629 slot=0x10 */
{
set_info(0x021C, *(arg_06));
process_exclude();
/* bit_not */
return;
}