Usecode pseudocode

This commit is contained in:
MaddoScientisto 2026-03-26 00:37:17 +01:00
commit c12bb39437
1362 changed files with 71072 additions and 38056 deletions

View file

@ -36,10 +36,10 @@ function spider_slot_20() /* entry=390 class_id=0x0A14 slot=0x20 */
block_015F:
suspend;
if (Item.pop() != 0) goto block_018A;
if (getTargetNPCNumMaybe() != 0) goto block_018A;
block_017D:
target = Item.pop();
target = getTargetNPCNumMaybe();
goto block_0193;
block_018A:
@ -86,7 +86,7 @@ function spider_slot_20() /* entry=390 class_id=0x0A14 slot=0x20 */
goto block_0302;
block_034A:
if (Item.getQHi(target, arg_06) != 0) goto block_0387;
if (Item.getRangeIfVisible(target, arg_06) != 0) goto block_0387;
block_035E:
spawn class_0A0C_slot_32(pid, 60, 0x00000000);

View file

@ -9,26 +9,18 @@ function spider_slot_21() /* entry=390 class_id=0x0A14 slot=0x21 */
x, /* [BP-04h] type=0x69 */
y; /* [BP-06h] type=0x69 */
entry:
set_info(1, spider);
target = tar;
block_0473:
if ((targetLoop - 1) > 0) goto block_0511;
block_0484:
set_info(1, spider);
target = tar;
while ((targetLoop - 1) <= 0) {
/* rsh */
x = 1;
/* rsh */
y = 1;
spawn class_0A14_slot_22((Intrinsic0013(target) - Intrinsic0013(arg_06)), (Item.legal_create(target) - Item.legal_create(arg_06)), pid, (Intrinsic0029() + 5), Item.getZ(arg_06), (y + Item.legal_create(arg_06)), (x + Intrinsic0013(arg_06)), arg_06);
spawn class_0A14_slot_22((Item.getX(target) - Item.getX(arg_06)), (Item.getY(target) - Item.getY(arg_06)), pid, (Game.getDifficultyLevel() + 5), Item.getZ(arg_06), (y + Item.getY(arg_06)), (x + Item.getX(arg_06)), arg_06);
suspend;
targetLoop = (targetLoop - 1);
goto block_0473;
block_0511:
spawn class_0A14_slot_22(pid, (Intrinsic0029() + 5), Item.getZ(arg_06), Item.legal_create(target), Intrinsic0013(target), arg_06);
suspend;
return;
}
spawn class_0A14_slot_22(pid, (Game.getDifficultyLevel() + 5), Item.getZ(arg_06), Item.getY(target), Item.getX(target), arg_06);
suspend;
return;
}

View file

@ -27,8 +27,8 @@ function spider_slot_22() /* entry=390 class_id=0x0A14 slot=0x22 */
entry:
set_info(0x00F0, *(arg_06));
x = Intrinsic0013(arg_06);
y = Item.legal_create(arg_06);
x = Item.getX(arg_06);
y = Item.getY(arg_06);
z = Item.getZ(arg_06);
w = ((destX - x) + 1);
h = ((destY - y) + 1);
@ -135,7 +135,7 @@ function spider_slot_22() /* entry=390 class_id=0x0A14 slot=0x22 */
currentP = x;
local_03 = y;
local_01 = z;
if (!Item.pop(0, 1, currentP, arg_06)) goto block_0837;
if (!legalMoveToPoint(0, 1, currentP, arg_06)) goto block_0837;
block_082D:
/* word_to_dword */
@ -153,7 +153,7 @@ function spider_slot_22() /* entry=390 class_id=0x0A14 slot=0x22 */
currentP = x;
local_03 = y;
local_01 = z;
if (!Item.pop(0, 1, currentP, arg_06)) goto block_088D;
if (!legalMoveToPoint(0, 1, currentP, arg_06)) goto block_088D;
block_0883:
/* word_to_dword */
@ -186,7 +186,7 @@ function spider_slot_22() /* entry=390 class_id=0x0A14 slot=0x22 */
currentP = x;
local_03 = y;
local_01 = z;
if (!Item.pop(0, 1, currentP, arg_06)) goto block_091A;
if (!legalMoveToPoint(0, 1, currentP, arg_06)) goto block_091A;
block_0910:
/* word_to_dword */