Usecode pseudocode
This commit is contained in:
parent
f92d1504fa
commit
c12bb39437
1362 changed files with 71072 additions and 38056 deletions
|
|
@ -2,33 +2,39 @@ function npc_equip() /* entry=387 class_id=0x0A11 slot=0x0A */
|
|||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (Kernel.resetRef(arg_06)) {
|
||||
if (arg_0A == 1) {
|
||||
}
|
||||
else if (arg_0A == 2) {
|
||||
}
|
||||
else if (arg_0A == 3) {
|
||||
}
|
||||
else if (arg_0A == 10) {
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
local_02 = teleportToEgg();
|
||||
local_04 = Intrinsic0087();
|
||||
local_06 = Intrinsic0013(arg_06);
|
||||
local_08 = Item.legal_create(arg_06);
|
||||
spawn class_0A11_slot_29(pid, local_08, local_06, local_04, local_02, arg_06);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
else if (arg_0A == 30) {
|
||||
local_0A = Intrinsic00DF(1, arg_06);
|
||||
local_0C = Intrinsic00DF(2, arg_06);
|
||||
local_0E = Intrinsic00DF(0, arg_06);
|
||||
}
|
||||
else if (arg_0A == 31) {
|
||||
suspend;
|
||||
}
|
||||
if (!Actor.isDead(arg_06)) {
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 1) {
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 2) {
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 3) {
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 10) {
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
local_02 = CameraProcess.getCameraX();
|
||||
local_04 = CameraProcess.getCameraY();
|
||||
local_06 = Item.getX(arg_06);
|
||||
local_08 = Item.getY(arg_06);
|
||||
spawn class_0A11_slot_29(pid, local_08, local_06, local_04, local_02, arg_06);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 30) {
|
||||
local_0A = Actor.getEquip(1, arg_06);
|
||||
local_0C = Actor.getEquip(2, arg_06);
|
||||
local_0E = Actor.getEquip(0, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 31) {
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -4,25 +4,11 @@ function npc_slot_20() /* entry=387 class_id=0x0A11 slot=0x20 */
|
|||
referent, /* [BP+00h] type=0x69 */
|
||||
item; /* [BP-02h] type=0x24 */
|
||||
|
||||
entry:
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x4E */
|
||||
/* loop current_var=0xFE string_bytes=0x1E loop_type=0x2 */
|
||||
|
||||
block_0191:
|
||||
if condition goto block_01A1;
|
||||
|
||||
block_0194:
|
||||
goto block_01AC;
|
||||
|
||||
block_019D:
|
||||
/* loopnext */
|
||||
goto block_0191;
|
||||
|
||||
block_01A1:
|
||||
goto block_01AC;
|
||||
|
||||
block_01AC:
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x4E */
|
||||
/* loop current_var=0xFE string_bytes=0x1E loop_type=0x2 */
|
||||
while (!condition) {
|
||||
return;
|
||||
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,30 +5,16 @@ function npc_slot_21() /* entry=387 class_id=0x0A11 slot=0x21 */
|
|||
x, /* [BP+0Ah] type=0x69 */
|
||||
counter; /* [BP-02h] type=0x69 */
|
||||
|
||||
entry:
|
||||
set_info(0x020A, *(arg_06));
|
||||
if (!x) goto block_01EB;
|
||||
|
||||
block_01E7:
|
||||
set_info(0x020A, *(arg_06));
|
||||
if (x) {
|
||||
x = 1;
|
||||
|
||||
block_01EB:
|
||||
counter = 1;
|
||||
|
||||
block_01F2:
|
||||
if (counter <= x) goto block_025A;
|
||||
|
||||
block_01FD:
|
||||
if ((Kernel.resetRef(arg_06) != 0) && (Intrinsic00CC(arg_06) != 0)) goto block_024D;
|
||||
|
||||
block_021F:
|
||||
suspend;
|
||||
|
||||
block_024D:
|
||||
}
|
||||
counter = 1;
|
||||
while (counter > x) {
|
||||
if ((Actor.isDead(arg_06) == 0) && (Actor.getInCombat(arg_06) != 0)) {
|
||||
suspend;
|
||||
}
|
||||
counter = (1 + counter);
|
||||
goto block_01F2;
|
||||
|
||||
block_025A:
|
||||
return;
|
||||
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,11 +5,9 @@ function npc_slot_22() /* entry=387 class_id=0x0A11 slot=0x22 */
|
|||
dir, /* [BP+0Ah] type=0x62 */
|
||||
x; /* [BP+0Ch] type=0x69 */
|
||||
|
||||
entry:
|
||||
set_info(0x020A, *(arg_06));
|
||||
suspend;
|
||||
spawn class_0A11_slot_21(pid, x, arg_06);
|
||||
suspend;
|
||||
return;
|
||||
|
||||
set_info(0x020A, *(arg_06));
|
||||
suspend;
|
||||
spawn class_0A11_slot_21(pid, x, arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,88 +6,48 @@ function npc_slot_23() /* entry=387 class_id=0x0A11 slot=0x23 */
|
|||
pad, /* [BP-04h] type=0x24 */
|
||||
padDir; /* [BP-06h] type=0x69 */
|
||||
|
||||
entry:
|
||||
set_info(0x020A, *(arg_06));
|
||||
set_info(0x020A, *(arg_06));
|
||||
/* global_address global_id=0x3C */
|
||||
if (Actor.getMap((*(arg_06) == 1)) != 40) {
|
||||
/* global_address global_id=0x3C */
|
||||
if (Item.getType((*(arg_06) != 1)) != 40) goto block_0346;
|
||||
|
||||
block_032F:
|
||||
/* global_address global_id=0x3C */
|
||||
|
||||
block_0346:
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x42 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
|
||||
block_0366:
|
||||
if condition goto block_0374;
|
||||
|
||||
block_0369:
|
||||
}
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x42 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
pad = item;
|
||||
/* loopnext */
|
||||
goto block_0366;
|
||||
|
||||
block_0374:
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x44 */
|
||||
/* loop current_var=0xFE string_bytes=0xA loop_type=0x2 */
|
||||
|
||||
block_039F:
|
||||
if condition goto block_03F2;
|
||||
|
||||
block_03A2:
|
||||
if (Intrinsic0016(item) != 0x018E) goto block_03D8;
|
||||
|
||||
block_03BB:
|
||||
if (!Item.getFrame(item)) goto block_03D5;
|
||||
|
||||
block_03CE:
|
||||
padDir = 1;
|
||||
|
||||
block_03D5:
|
||||
goto block_03EE;
|
||||
|
||||
block_03D8:
|
||||
if Item.getFrame(item) goto block_03EE;
|
||||
|
||||
block_03E7:
|
||||
padDir = 1;
|
||||
|
||||
block_03EE:
|
||||
}
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x44 */
|
||||
/* loop current_var=0xFE string_bytes=0xA loop_type=0x2 */
|
||||
while (!condition) {
|
||||
if (Item.getShape(item) == 0x018E) {
|
||||
if (Item.getFrame(item)) {
|
||||
padDir = 1;
|
||||
}
|
||||
}
|
||||
else if (!Item.getFrame(item)) {
|
||||
padDir = 1;
|
||||
}
|
||||
/* loopnext */
|
||||
goto block_039F;
|
||||
|
||||
block_03F2:
|
||||
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
|
||||
}
|
||||
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
if (padDir) {
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
if (!padDir) goto block_0495;
|
||||
|
||||
block_046B:
|
||||
}
|
||||
else {
|
||||
suspend;
|
||||
goto block_04BC;
|
||||
|
||||
block_0495:
|
||||
suspend;
|
||||
|
||||
block_04BC:
|
||||
/* global_address global_id=0x3C */
|
||||
if Item.touch(48) goto block_04F4;
|
||||
|
||||
block_04CE:
|
||||
}
|
||||
/* global_address global_id=0x3C */
|
||||
if (!AudioProcess.isSFXPlayingForObject(48)) {
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
|
||||
block_04F4:
|
||||
if (*(arg_06) != 1) goto block_0529;
|
||||
|
||||
block_0504:
|
||||
}
|
||||
if (*(arg_06) == 1) {
|
||||
/* global_address global_id=0x3C */
|
||||
|
||||
block_0529:
|
||||
goto block_052F;
|
||||
|
||||
block_052F:
|
||||
return;
|
||||
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,85 +6,54 @@ function npc_slot_24() /* entry=387 class_id=0x0A11 slot=0x24 */
|
|||
pad, /* [BP-04h] type=0x24 */
|
||||
padDir; /* [BP-06h] type=0x69 */
|
||||
|
||||
entry:
|
||||
set_info(0x020A, *(arg_06));
|
||||
if (global[0x003C] != *(arg_06)) goto block_0627;
|
||||
|
||||
block_0589:
|
||||
/* global_address global_id=0x3C */
|
||||
|
||||
block_05AE:
|
||||
/* global_address global_id=0x3C */
|
||||
if Intrinsic0033() goto block_05E7;
|
||||
|
||||
block_05BE:
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
goto block_05AE;
|
||||
|
||||
block_05E7:
|
||||
/* global_address global_id=0x3C */
|
||||
if Intrinsic0035() goto block_0627;
|
||||
|
||||
block_05F7:
|
||||
set_info(0x020A, *(arg_06));
|
||||
if (global[0x003C] == *(arg_06)) {
|
||||
/* global_address global_id=0x3C */
|
||||
/* global_address global_id=0x3C */
|
||||
suspend;
|
||||
|
||||
block_0627:
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x42 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
|
||||
block_0647:
|
||||
if condition goto block_0655;
|
||||
|
||||
block_064A:
|
||||
while (!Actor.isBusy()) {
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
/* global_address global_id=0x3C */
|
||||
if (!Actor.getSomeFlagProbablyCrouch()) {
|
||||
/* global_address global_id=0x3C */
|
||||
/* global_address global_id=0x3C */
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x42 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
pad = item;
|
||||
/* loopnext */
|
||||
goto block_0647;
|
||||
|
||||
block_0655:
|
||||
if pad goto block_08C9;
|
||||
|
||||
block_065F:
|
||||
if (Item.getFrame(pad) != 1) goto block_0785;
|
||||
|
||||
block_06A9:
|
||||
}
|
||||
if (!pad) {
|
||||
if (Item.getFrame(pad) == 1) {
|
||||
/* global_address global_id=0x3C */
|
||||
suspend;
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
suspend;
|
||||
}
|
||||
else {
|
||||
/* global_address global_id=0x3C */
|
||||
suspend;
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
suspend;
|
||||
}
|
||||
/* global_address global_id=0x3C */
|
||||
suspend;
|
||||
suspend;
|
||||
if (!AudioProcess.isSFXPlayingForObject(52)) {
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
suspend;
|
||||
goto block_085E;
|
||||
|
||||
block_0785:
|
||||
/* global_address global_id=0x3C */
|
||||
suspend;
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
suspend;
|
||||
|
||||
block_085E:
|
||||
/* global_address global_id=0x3C */
|
||||
if Item.touch(52) goto block_08A3;
|
||||
|
||||
block_087D:
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
|
||||
block_08A3:
|
||||
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
|
||||
block_08C9:
|
||||
goto block_08CF;
|
||||
|
||||
block_08CF:
|
||||
return;
|
||||
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,17 +6,10 @@ function npc_slot_25() /* entry=387 class_id=0x0A11 slot=0x25 */
|
|||
toDir, /* [BP+0Ch] type=0x69 */
|
||||
e; /* [BP-02h] type=0x69 */
|
||||
|
||||
entry:
|
||||
set_info(0x020A, *(arg_06));
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
e = Item.getQHi(arg_06);
|
||||
if (!Kernel.resetRef(arg_06)) goto block_099E;
|
||||
|
||||
block_098A:
|
||||
|
||||
block_099E:
|
||||
return;
|
||||
|
||||
set_info(0x020A, *(arg_06));
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
e = Actor.GetNPCDataField0x4_0DD(arg_06);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,50 +15,26 @@ function npc_slot_26() /* entry=387 class_id=0x0A11 slot=0x26 */
|
|||
g, /* [BP-10h] type=0x69 */
|
||||
h; /* [BP-12h] type=0x69 */
|
||||
|
||||
entry:
|
||||
set_info(0x020A, *(arg_06));
|
||||
a = Item.getQHi(arg_06);
|
||||
b = Intrinsic0050(arg_06);
|
||||
if (!Kernel.resetRef(arg_06)) goto block_0A1B;
|
||||
|
||||
block_0A0E:
|
||||
|
||||
block_0A1B:
|
||||
c = Item.getQHi(arg_06);
|
||||
d = Intrinsic0050(arg_06);
|
||||
if (!Kernel.resetRef(arg_06)) goto block_0A92;
|
||||
|
||||
block_0A4A:
|
||||
set_info(0x020A, *(arg_06));
|
||||
a = Actor.GetNPCDataField0x4_0DD(arg_06);
|
||||
b = GetNPCDataField0x2_050(arg_06);
|
||||
c = Actor.GetNPCDataField0x4_0DD(arg_06);
|
||||
d = GetNPCDataField0x2_050(arg_06);
|
||||
if (Actor.isDead(arg_06)) {
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
|
||||
block_0A92:
|
||||
e = Item.getQHi(arg_06);
|
||||
f = Intrinsic0050(arg_06);
|
||||
counter = 1;
|
||||
|
||||
block_0AB5:
|
||||
if (counter <= stepNum) goto block_0B07;
|
||||
|
||||
block_0AC0:
|
||||
if (!Kernel.resetRef(arg_06)) goto block_0AFA;
|
||||
|
||||
block_0AD3:
|
||||
suspend;
|
||||
|
||||
block_0AFA:
|
||||
}
|
||||
e = Actor.GetNPCDataField0x4_0DD(arg_06);
|
||||
f = GetNPCDataField0x2_050(arg_06);
|
||||
counter = 1;
|
||||
while (counter > stepNum) {
|
||||
if (Actor.isDead(arg_06)) {
|
||||
suspend;
|
||||
}
|
||||
counter = (1 + counter);
|
||||
goto block_0AB5;
|
||||
|
||||
block_0B07:
|
||||
g = Item.getQHi(arg_06);
|
||||
h = Intrinsic0050(arg_06);
|
||||
if (!Kernel.resetRef(arg_06)) goto block_0B4A;
|
||||
|
||||
block_0B36:
|
||||
|
||||
block_0B4A:
|
||||
return;
|
||||
|
||||
}
|
||||
g = Actor.GetNPCDataField0x4_0DD(arg_06);
|
||||
h = GetNPCDataField0x2_050(arg_06);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,53 +1,25 @@
|
|||
function npc_slot_27() /* entry=387 class_id=0x0A11 slot=0x27 */
|
||||
{
|
||||
entry:
|
||||
set_info(0x020A, *(arg_06));
|
||||
|
||||
block_0E29:
|
||||
if Intrinsic0033(arg_06) goto block_0E61;
|
||||
|
||||
block_0E38:
|
||||
set_info(0x020A, *(arg_06));
|
||||
while (!Actor.isBusy(arg_06)) {
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
goto block_0E29;
|
||||
|
||||
block_0E61:
|
||||
if Kernel.resetRef(arg_06) goto block_0E76;
|
||||
|
||||
block_0E70:
|
||||
goto block_0F29;
|
||||
|
||||
block_0E76:
|
||||
if (arg_0A != 0) goto block_0F1C;
|
||||
|
||||
block_0E7E:
|
||||
local_02 = Intrinsic0050(arg_06);
|
||||
local_04 = Intrinsic00FA(arg_06);
|
||||
local_06 = Item.getQLo(arg_06);
|
||||
local_08 = Item.getCY(arg_06);
|
||||
if (local_02 != 112) goto block_0ED7;
|
||||
|
||||
block_0EC7:
|
||||
goto block_0F19;
|
||||
|
||||
block_0ED7:
|
||||
if (local_02 != 113) goto block_0EF8;
|
||||
|
||||
block_0EE8:
|
||||
goto block_0F19;
|
||||
|
||||
block_0EF8:
|
||||
if (local_02 != 114) goto block_0F19;
|
||||
|
||||
block_0F09:
|
||||
goto block_0F19;
|
||||
|
||||
block_0F19:
|
||||
goto block_0F29;
|
||||
|
||||
block_0F1C:
|
||||
|
||||
block_0F29:
|
||||
}
|
||||
if (!Actor.isDead(arg_06)) {
|
||||
return;
|
||||
|
||||
}
|
||||
else if (arg_0A == 0) {
|
||||
local_02 = GetNPCDataField0x2_050(arg_06);
|
||||
local_04 = Actor.getDefaultActivity0(arg_06);
|
||||
local_06 = Actor.getDefaultActivity1(arg_06);
|
||||
local_08 = Actor.getDefaultActivity2(arg_06);
|
||||
if (local_02 == 112) {
|
||||
}
|
||||
else if (local_02 == 113) {
|
||||
}
|
||||
else if (local_02 == 114) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
function npc_slot_28() /* entry=387 class_id=0x0A11 slot=0x28 */
|
||||
{
|
||||
entry:
|
||||
set_info(0x021B, *(arg_06));
|
||||
return;
|
||||
|
||||
set_info(0x021B, *(arg_06));
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
function npc_slot_29() /* entry=387 class_id=0x0A11 slot=0x29 */
|
||||
{
|
||||
entry:
|
||||
set_info(0x021B, *(arg_06));
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
return;
|
||||
|
||||
set_info(0x021B, *(arg_06));
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,38 +5,26 @@ function npc_slot_2A() /* entry=387 class_id=0x0A11 slot=0x2A */
|
|||
phrase, /* [BP+0Ah] type=0x69 */
|
||||
n; /* [BP-02h] type=0x24 */
|
||||
|
||||
entry:
|
||||
n = *(arg_06);
|
||||
set_info(0x0205, 0);
|
||||
if ((global[0x0008] != 1) || (Intrinsic002C(n) != 0)) goto block_1051;
|
||||
|
||||
block_104B:
|
||||
goto block_10F6;
|
||||
|
||||
block_1051:
|
||||
/* pop_global global_id=0x8 size=0x1 */
|
||||
if (Item.getStatus(n) & 4) goto block_1072;
|
||||
|
||||
block_106C:
|
||||
goto block_10F6;
|
||||
|
||||
block_1072:
|
||||
class_0A1E_slot_23(4, n);
|
||||
|
||||
block_108D:
|
||||
if Item.touch(phrase, n) goto block_10C7;
|
||||
|
||||
block_109E:
|
||||
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
|
||||
suspend;
|
||||
goto block_108D;
|
||||
|
||||
block_10C7:
|
||||
spawn class_0A0C_slot_32(pid, 30, 0x00000000);
|
||||
suspend;
|
||||
/* pop_global global_id=0x8 size=0x1 */
|
||||
|
||||
block_10F6:
|
||||
n = *(arg_06);
|
||||
set_info(0x0205, 0);
|
||||
if ((global[0x0008] == 1) || (Item.inFastArea(n) != 0)) {
|
||||
return;
|
||||
|
||||
}
|
||||
else {
|
||||
/* pop_global global_id=0x8 size=0x1 */
|
||||
if (!(Item.getStatus(n) & 4)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
class_0A1E_slot_23(4, n);
|
||||
while (!AudioProcess.isSFXPlayingForObject(phrase, n)) {
|
||||
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
spawn class_0A0C_slot_32(pid, 30, 0x00000000);
|
||||
suspend;
|
||||
/* pop_global global_id=0x8 size=0x1 */
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,10 @@
|
|||
function npc_slot_2B() /* entry=387 class_id=0x0A11 slot=0x2B */
|
||||
{
|
||||
entry:
|
||||
if (((((((Intrinsic0016(arg_06) != 0x02CB) || (Intrinsic0016(arg_06) != 0x033C)) || (Intrinsic0016(arg_06) != 0x045D)) || (Intrinsic0016(arg_06) != 0x0338)) || (Intrinsic0016(arg_06) != 0x0385)) || (Intrinsic0016(arg_06) != 0x04E6)) || (Intrinsic0016(arg_06) != 0x0383)) goto block_11BC;
|
||||
|
||||
block_11B3:
|
||||
goto block_11C5;
|
||||
|
||||
block_11BC:
|
||||
goto block_11C5;
|
||||
|
||||
block_11C5:
|
||||
if (((((((Item.getShape(arg_06) == 0x02CB) || (Item.getShape(arg_06) != 0x033C)) || (Item.getShape(arg_06) != 0x045D)) || (Item.getShape(arg_06) != 0x0338)) || (Item.getShape(arg_06) != 0x0385)) || (Item.getShape(arg_06) != 0x04E6)) || (Item.getShape(arg_06) != 0x0383)) {
|
||||
return;
|
||||
|
||||
}
|
||||
else {
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,10 +4,8 @@ function npc_slot_2C() /* entry=387 class_id=0x0A11 slot=0x2C */
|
|||
referent, /* [BP+00h] type=0x69 */
|
||||
damageSource; /* [BP+0Ah] type=0x69 */
|
||||
|
||||
entry:
|
||||
set_info(0x020A, *(arg_06));
|
||||
spawn class_0A11_slot_2D(pid, 8, damageSource, arg_06);
|
||||
suspend;
|
||||
return;
|
||||
|
||||
set_info(0x020A, *(arg_06));
|
||||
spawn class_0A11_slot_2D(pid, 8, damageSource, arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,42 +6,23 @@ function npc_slot_2D() /* entry=387 class_id=0x0A11 slot=0x2D */
|
|||
dir, /* [BP+0Ch] type=0x69 */
|
||||
aSet; /* [BP-02h] type=0x69 */
|
||||
|
||||
entry:
|
||||
set_info(0x020A, *(arg_06));
|
||||
if (*(arg_06) > 0x0100) goto block_126A;
|
||||
|
||||
block_1264:
|
||||
goto block_1346;
|
||||
|
||||
block_126A:
|
||||
if (*(arg_06) != 1) goto block_12C5;
|
||||
|
||||
block_1277:
|
||||
if (global[0x0009] != 1) goto block_128A;
|
||||
|
||||
block_1284:
|
||||
goto block_1346;
|
||||
|
||||
block_128A:
|
||||
aSet = Item.getNpcNum(arg_06);
|
||||
set_info(0x020A, *(arg_06));
|
||||
if (*(arg_06) <= 0x0100) {
|
||||
return;
|
||||
}
|
||||
else if (*(arg_06) == 1) {
|
||||
if (global[0x0009] == 1) {
|
||||
return;
|
||||
}
|
||||
aSet = Actor.getLastAnimSet(arg_06);
|
||||
spawn class_0A11_slot_2E(arg_06);
|
||||
goto block_1346;
|
||||
|
||||
block_12C5:
|
||||
if (*(arg_06) != Item.pop()) goto block_1346;
|
||||
|
||||
block_12D5:
|
||||
return;
|
||||
}
|
||||
else if (*(arg_06) == getTargetNPCNumMaybe()) {
|
||||
class_0A11_slot_2B(arg_06);
|
||||
if ((retval != 0) && (Intrinsic0007(arg_06) != 1)) goto block_131D;
|
||||
|
||||
block_12F8:
|
||||
|
||||
block_131D:
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
goto block_1346;
|
||||
|
||||
block_1346:
|
||||
return;
|
||||
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,9 @@
|
|||
function npc_slot_2E() /* entry=387 class_id=0x0A11 slot=0x2E */
|
||||
{
|
||||
entry:
|
||||
set_info(1, 0);
|
||||
/* pop_global global_id=0x9 size=0x1 */
|
||||
spawn class_0A0C_slot_32(1, pid, (90 - (Intrinsic0029() * 8)), 0x00000000);
|
||||
suspend;
|
||||
/* pop_global global_id=0x9 size=0x1 */
|
||||
return;
|
||||
|
||||
set_info(1, 0);
|
||||
/* pop_global global_id=0x9 size=0x1 */
|
||||
spawn class_0A0C_slot_32(1, pid, (90 - (Game.getDifficultyLevel() * 8)), 0x00000000);
|
||||
suspend;
|
||||
/* pop_global global_id=0x9 size=0x1 */
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue