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

@ -17,7 +17,7 @@ function blaser_slot_20() /* entry=372 class_id=0x0A02 slot=0x20 */
entry:
set_info(1, 0);
item = ref;
link = Item.pop(item);
link = Item.getQLo(item);
count = 0;
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */
@ -27,7 +27,7 @@ function blaser_slot_20() /* entry=372 class_id=0x0A02 slot=0x20 */
if condition goto block_0185;
block_0133:
if ((Item.pop(item) != link) && ((Item.getStatus(item) & 0x1000) != 0)) goto block_0181;
if ((Item.getQLo(item) != link) && ((Item.getStatus(item) & 0x1000) != 0)) goto block_0181;
block_0159:
/* create_list element_size=0x2 count=0x1 */
@ -56,7 +56,7 @@ function blaser_slot_20() /* entry=372 class_id=0x0A02 slot=0x20 */
foreach_list item -> block_0428;
block_01B5:
h = Item.getCX(item);
h = Item.getQHi(item);
if (h & 8) goto block_01ED;
block_01CE:
@ -77,85 +77,45 @@ function blaser_slot_20() /* entry=372 class_id=0x0A02 slot=0x20 */
goto block_0422;
block_0217:
if ((Intrinsic002C(item) != 1) && (Intrinsic0016(item) != 0x0476)) goto block_0422;
block_023A:
inFastArea = (1 + inFastArea);
if (h & 1) goto block_0281;
block_024F:
if (h & 2) goto block_0267;
block_025A:
h = (h & 4);
goto block_0274;
block_0267:
h = ((h & 4) | 2);
block_0274:
block_0281:
dir = -1;
if (h & 2) goto block_029A;
block_0293:
dir = 1;
block_029A:
x = Intrinsic0013(item);
y = Item.legal_create(item);
if (Intrinsic0016(item) != 0x02C4) goto block_02E6;
block_02CF:
wp = (x + (dir * 16));
local_03 = y;
goto block_02FA;
block_02E6:
wp = x;
local_03 = (y + (dir * 16));
block_02FA:
local_01 = Item.getZ(item);
if (Item.pop(0, 0, wp, item) != 0) goto block_0341;
block_0320:
h = Item.getCX(item);
goto block_041F;
block_0341:
if (h & 4) goto block_041F;
block_034C:
if (Intrinsic0016(item) != 0x02C4) goto block_03C2;
block_0365:
if (Intrinsic002F(wp, 0x02C3, arg_06) != 1) goto block_03B4;
block_0387:
/* bit_not */
goto block_03BF;
block_03B4:
block_03BF:
goto block_041C;
block_03C2:
if (Intrinsic002F(wp, 0x02C4, arg_06) != 1) goto block_0411;
block_03E4:
/* bit_not */
goto block_041C;
block_0411:
block_041C:
goto block_041F;
block_041F:
goto block_0422;
if ((Item.inFastArea(item) == 1) && (Item.getShape(item) != 0x0476)) {
inFastArea = (1 + inFastArea);
if (!(h & 1)) {
if (!(h & 2)) {
h = (h & 4);
}
else {
h = ((h & 4) | 2);
}
}
dir = -1;
if (!(h & 2)) {
dir = 1;
}
x = Item.getX(item);
y = Item.getY(item);
if (Item.getShape(item) == 0x02C4) {
wp = (x + (dir * 16));
local_03 = y;
}
else {
wp = x;
local_03 = (y + (dir * 16));
}
local_01 = Item.getZ(item);
if (legalMoveToPoint(0, 0, wp, item) == 0) {
h = Item.getQHi(item);
}
else if (!(h & 4)) {
if (Item.getShape(item) == 0x02C4) {
if (Intrinsic02F(wp, 0x02C3, arg_06) == 1) {
/* bit_not */
}
}
else if (Intrinsic02F(wp, 0x02C4, arg_06) == 1) {
/* bit_not */
}
}
}
block_0422:
goto block_01B0;

View file

@ -8,34 +8,25 @@ function blaser_slot_21() /* entry=372 class_id=0x0A02 slot=0x21 */
f, /* [BP-04h] type=0x69 */
h; /* [BP-06h] type=0x69 */
entry:
set_info(1, *(arg_06));
n = ref;
if Item.isNpc(n) goto block_0635;
block_052A:
set_info(1, *(arg_06));
n = ref;
if (!Actor.isNPC(n)) {
f = Item.getFrame(arg_06);
if (f != 1) goto block_0582;
block_0543:
h = Item.getCX(arg_06);
goto block_0635;
block_0582:
if (f != 2) goto block_05EA;
block_058D:
/* bit_not */
h = Item.getCX(arg_06);
goto block_0635;
block_05EA:
spawn class_0A11_slot_2C(pid, *(arg_06), n);
suspend;
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
block_0635:
return;
if (f == 1) {
h = Item.getQHi(arg_06);
return;
}
else if (f == 2) {
/* bit_not */
h = Item.getQHi(arg_06);
return;
}
else {
spawn class_0A11_slot_2C(pid, *(arg_06), n);
suspend;
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
}
}
return;
}