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

@ -3,7 +3,7 @@ function roll_ns_hit() /* entry=183 class_id=0x0346 slot=0x05 */
set_info(0x020B, *(arg_06));
process_exclude();
if ((Item.getStatus(arg_06) & 4) == 0) {
spawn class_0346_slot_21(arg_06);
spawn ROLL_NS.slot_21(arg_06);
}
return;
}

View file

@ -3,21 +3,21 @@ function roll_ns_gotHit() /* entry=183 class_id=0x0346 slot=0x06 */
set_info(0x020C, *(arg_06));
process_exclude();
if ((Item.getStatus(arg_06) & 4) == 0) {
spawn class_0346_slot_21(arg_06);
spawn ROLL_NS.slot_21(arg_06);
return;
}
else {
spawn class_0A0C_slot_29(pid, 0x0096, arg_0C, arg_0A, arg_06);
spawn ITEM.slot_29(pid, 0x0096, arg_0C, arg_0A, arg_06);
suspend;
/* dword_to_word */
if (process_result) {
class_0A1D_slot_20(1);
FREE.slot_20(1);
if (!retval) {
}
return;
}
else {
spawn class_0346_slot_20(pid, arg_06);
spawn ROLL_NS.slot_20(pid, arg_06);
suspend;
}
}

View file

@ -4,7 +4,7 @@ function roll_ns_equip() /* entry=183 class_id=0x0346 slot=0x0A */
process_exclude();
if (arg_0A == 1) {
if ((Item.getStatus(arg_06) & 4) == 0) {
spawn class_0346_slot_21(arg_06);
spawn ROLL_NS.slot_21(arg_06);
}
return;
}

View file

@ -2,7 +2,7 @@ function roll_ns_unequip() /* entry=183 class_id=0x0346 slot=0x0B */
{
set_info(0x0212, *(arg_06));
process_exclude();
spawn class_0346_equip(pid, arg_0A, arg_06);
spawn ROLL_NS.equip(pid, arg_0A, arg_06);
suspend;
return;
}

View file

@ -2,7 +2,7 @@ function roll_ns_slot_20() /* entry=183 class_id=0x0346 slot=0x20 */
{
entry:
set_info(1, *(arg_06));
spawn class_0A1D_slot_3B(pid, 2, 0x00000000);
spawn FREE.slot_3B(pid, 2, 0x00000000);
suspend;
local_0A = Item.getQHi(arg_06);
if (local_0A & 64) goto block_01BB;
@ -13,14 +13,14 @@ function roll_ns_slot_20() /* entry=183 class_id=0x0346 slot=0x20 */
goto block_0263;
block_01BB:
class_0A1D_slot_20(3);
FREE.slot_20(3);
local_06 = retval;
block_01C7:
if 1 goto block_01E6;
block_01CC:
class_0A1D_slot_20(3);
FREE.slot_20(3);
local_08 = retval;
if (local_08 != local_06) goto block_01E3;
@ -35,7 +35,7 @@ function roll_ns_slot_20() /* entry=183 class_id=0x0346 slot=0x20 */
local_0E = Item.getY(arg_06);
local_0F = Item.getZ(arg_06);
local_11 = Item.getQLo(arg_06);
spawn class_0A0C_slot_2C(pid, arg_06);
spawn ITEM.slot_2C(pid, arg_06);
suspend;
block_0263:

View file

@ -22,7 +22,7 @@ function roll_ns_slot_21() /* entry=183 class_id=0x0346 slot=0x21 */
if (Item.legalMoveToPoint(0, 0, local_13, arg_06) == 0) {
local_0F = (1 + local_0F);
if (Item.legalMoveToPoint(0, 0, local_13, arg_06) == 0) {
spawn class_0346_slot_20(pid, arg_06);
spawn ROLL_NS.slot_20(pid, arg_06);
suspend;
return;
}
@ -35,13 +35,13 @@ function roll_ns_slot_21() /* entry=183 class_id=0x0346 slot=0x21 */
local_17 = (local_18 - local_0F);
}
else if (local_17 <= 12) {
spawn class_0A1D_slot_3B(pid, 6, 0x00000000);
spawn FREE.slot_3B(pid, 6, 0x00000000);
suspend;
spawn class_0346_slot_20(pid, arg_06);
spawn ROLL_NS.slot_20(pid, arg_06);
suspend;
return;
}
spawn class_0A1D_slot_3B(pid, local_02, 0x00000000);
spawn FREE.slot_3B(pid, local_02, 0x00000000);
suspend;
}
return;
@ -56,7 +56,7 @@ function roll_ns_slot_21() /* entry=183 class_id=0x0346 slot=0x21 */
if (Item.legalMoveToPoint(0, 0, local_13, arg_06) == 0) {
local_0F = (1 + local_0F);
if (Item.legalMoveToPoint(0, 0, local_13, arg_06) == 0) {
spawn class_0346_slot_20(pid, arg_06);
spawn ROLL_NS.slot_20(pid, arg_06);
suspend;
return;
}
@ -69,13 +69,13 @@ function roll_ns_slot_21() /* entry=183 class_id=0x0346 slot=0x21 */
local_17 = (local_18 - local_0F);
}
else if (local_17 <= 12) {
spawn class_0A1D_slot_3B(pid, 6, 0x00000000);
spawn FREE.slot_3B(pid, 6, 0x00000000);
suspend;
spawn class_0346_slot_20(pid, arg_06);
spawn ROLL_NS.slot_20(pid, arg_06);
suspend;
return;
}
spawn class_0A1D_slot_3B(pid, local_02, 0x00000000);
spawn FREE.slot_3B(pid, local_02, 0x00000000);
suspend;
}
}