Usecode pseudocode
This commit is contained in:
parent
f92d1504fa
commit
c12bb39437
1362 changed files with 71072 additions and 38056 deletions
|
|
@ -1,17 +1,12 @@
|
|||
function surcamns_use() /* entry=269 class_id=0x04C6 slot=0x01 */
|
||||
{
|
||||
entry:
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
if (Item.getStatus(arg_06) & 0x1000) goto block_01E7;
|
||||
|
||||
block_01E1:
|
||||
goto block_01F5;
|
||||
|
||||
block_01E7:
|
||||
spawn class_04C6_slot_20(arg_06);
|
||||
|
||||
block_01F5:
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
if (!(Item.getStatus(arg_06) & 0x1000)) {
|
||||
return;
|
||||
|
||||
}
|
||||
else {
|
||||
spawn class_04C6_slot_20(arg_06);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,12 +2,17 @@ function surcamns_equip() /* entry=269 class_id=0x04C6 slot=0x0A */
|
|||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if ((Item.getStatus(arg_06) & 0x1000)) {
|
||||
if (arg_0A == 0) {
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_04C6_slot_21(arg_06);
|
||||
}
|
||||
if (!(Item.getStatus(arg_06) & 0x1000)) {
|
||||
return;
|
||||
}
|
||||
else if (arg_0A == 0) {
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_04C6_slot_21(arg_06);
|
||||
return;
|
||||
}
|
||||
else {
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_04C6_slot_20(arg_06);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ function surcamns_slot_20() /* entry=269 class_id=0x04C6 slot=0x20 */
|
|||
|
||||
entry:
|
||||
set_info(0x021B, 0);
|
||||
link = Item.getNpcNum(arg_06);
|
||||
if (Item.getMapNum(arg_06) != 0) goto block_0356;
|
||||
link = Item.getQLo(arg_06);
|
||||
if (Item.getMapArray(arg_06) != 0) goto block_0356;
|
||||
|
||||
block_024D:
|
||||
/* loopscr value_u8=0x24 */
|
||||
|
|
@ -25,13 +25,13 @@ function surcamns_slot_20() /* entry=269 class_id=0x04C6 slot=0x20 */
|
|||
if condition goto block_02E4;
|
||||
|
||||
block_026E:
|
||||
if ((Item.getNpcNum(monit) != link) || (link != 0)) goto block_02E0;
|
||||
if ((Item.getQLo(monit) != link) || (link != 0)) goto block_02E0;
|
||||
|
||||
block_0289:
|
||||
if Intrinsic00FB(monit) goto block_02E0;
|
||||
if Item.getQHi(monit) goto block_02E0;
|
||||
|
||||
block_0298:
|
||||
class_0A17_slot_21(Intrinsic00FB(monit), Item.getNpcNum(monit), arg_06);
|
||||
class_0A17_slot_21(Item.getQHi(monit), Item.getQLo(monit), arg_06);
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = retval;
|
||||
spawn class_0A17_slot_20(pid, textFile, arg_06);
|
||||
|
|
@ -53,7 +53,7 @@ function surcamns_slot_20() /* entry=269 class_id=0x04C6 slot=0x20 */
|
|||
|
||||
block_0356:
|
||||
code = 0;
|
||||
if Intrinsic00FB(arg_06) goto block_043C;
|
||||
if Item.getQHi(arg_06) goto block_043C;
|
||||
|
||||
block_036C:
|
||||
/* loopscr value_u8=0x24 */
|
||||
|
|
@ -66,7 +66,7 @@ function surcamns_slot_20() /* entry=269 class_id=0x04C6 slot=0x20 */
|
|||
if condition goto block_03C2;
|
||||
|
||||
block_038D:
|
||||
if (Item.getNpcNum(valueBox) != link) goto block_03BE;
|
||||
if (Item.getQLo(valueBox) != link) goto block_03BE;
|
||||
|
||||
block_039F:
|
||||
class_0A19_slot_20(valueBox);
|
||||
|
|
@ -82,13 +82,13 @@ function surcamns_slot_20() /* entry=269 class_id=0x04C6 slot=0x20 */
|
|||
if code goto block_03F4;
|
||||
|
||||
block_03CC:
|
||||
class_0A17_slot_23(passcode, Intrinsic00FB(arg_06), Item.getNpcNum(arg_06), arg_06);
|
||||
class_0A17_slot_23(passcode, Item.getQHi(arg_06), Item.getQLo(arg_06), arg_06);
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = retval;
|
||||
goto block_0417;
|
||||
|
||||
block_03F4:
|
||||
class_0A17_slot_21(Intrinsic00FB(arg_06), Item.getNpcNum(arg_06), arg_06);
|
||||
class_0A17_slot_21(Item.getQHi(arg_06), Item.getQLo(arg_06), arg_06);
|
||||
/* free_local_string bp_offset=0xFE target=[BP-02h] */
|
||||
textFile = retval;
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ function surcamns_slot_21() /* entry=269 class_id=0x04C6 slot=0x21 */
|
|||
entry:
|
||||
set_info(0x021B, 0);
|
||||
trueRef = *(arg_06);
|
||||
if Item.getQLo(0, 0x0471, screen) goto block_0534;
|
||||
if Item.create(0, 0x0471, screen) goto block_0534;
|
||||
|
||||
block_0508:
|
||||
|
||||
|
|
@ -34,10 +34,10 @@ function surcamns_slot_21() /* entry=269 class_id=0x04C6 slot=0x21 */
|
|||
if condition goto block_0B05;
|
||||
|
||||
block_057C:
|
||||
if (Item.getNpcNum(cameraEgg) != Item.getNpcNum(arg_06)) goto block_0B01;
|
||||
if (Item.getQLo(cameraEgg) != Item.getQLo(arg_06)) goto block_0B01;
|
||||
|
||||
block_0598:
|
||||
if (Item.getNpcNum(arg_06) != 0x00FE) goto block_085D;
|
||||
if (Item.getQLo(arg_06) != 0x00FE) goto block_085D;
|
||||
|
||||
block_05AB:
|
||||
/* global_address global_id=0x3C */
|
||||
|
|
@ -55,10 +55,10 @@ function surcamns_slot_21() /* entry=269 class_id=0x04C6 slot=0x21 */
|
|||
if condition goto block_0695;
|
||||
|
||||
block_0659:
|
||||
if Item.isNpc(npc) goto block_0691;
|
||||
if Actor.isNPC(npc) goto block_0691;
|
||||
|
||||
block_0668:
|
||||
if (Item.getQLo(npc) != Item.getNpcNum(arg_06)) goto block_0691;
|
||||
if (Actor.GetNPCDataField0x63_00B(npc) != Item.getQLo(arg_06)) goto block_0691;
|
||||
|
||||
block_0684:
|
||||
therma = npc;
|
||||
|
|
@ -73,16 +73,16 @@ function surcamns_slot_21() /* entry=269 class_id=0x04C6 slot=0x21 */
|
|||
|
||||
block_069F:
|
||||
/* global_address global_id=0x3C */
|
||||
x1 = Intrinsic0013();
|
||||
x1 = Item.getX();
|
||||
/* global_address global_id=0x3C */
|
||||
y1 = Item.legal_create();
|
||||
y1 = Item.getY();
|
||||
/* global_address global_id=0x3C */
|
||||
z1 = Item.getZ();
|
||||
spawn class_0A11_slot_28(pid, therma);
|
||||
suspend;
|
||||
|
||||
block_06FD:
|
||||
if (Item.pop() != 1) goto block_0737;
|
||||
if (getTargetNPCNumMaybe() != 1) goto block_0737;
|
||||
|
||||
block_070E:
|
||||
spawn class_0A0C_slot_32(pid, 3, 0x00000000);
|
||||
|
|
@ -100,14 +100,14 @@ function surcamns_slot_21() /* entry=269 class_id=0x04C6 slot=0x21 */
|
|||
|
||||
block_079B:
|
||||
/* global_address global_id=0x3C */
|
||||
x1 = Intrinsic0013();
|
||||
x1 = Item.getX();
|
||||
/* global_address global_id=0x3C */
|
||||
y1 = Item.legal_create();
|
||||
y1 = Item.getY();
|
||||
/* global_address global_id=0x3C */
|
||||
z1 = Item.getZ();
|
||||
|
||||
block_07C8:
|
||||
if (!Item.enterFastArea()) goto block_0800;
|
||||
if (!Kernel.getCurrentKeyDown()) goto block_0800;
|
||||
|
||||
block_07D7:
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
|
|
@ -124,7 +124,7 @@ function surcamns_slot_21() /* entry=269 class_id=0x04C6 slot=0x21 */
|
|||
goto block_0B01;
|
||||
|
||||
block_085D:
|
||||
if (Item.getNpcNum(arg_06) != 0x00FD) goto block_08C6;
|
||||
if (Item.getQLo(arg_06) != 0x00FD) goto block_08C6;
|
||||
|
||||
block_0870:
|
||||
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
|
||||
|
|
@ -135,7 +135,7 @@ function surcamns_slot_21() /* entry=269 class_id=0x04C6 slot=0x21 */
|
|||
goto block_0B01;
|
||||
|
||||
block_08C6:
|
||||
if (Item.getNpcNum(arg_06) > 0x00F9) goto block_0956;
|
||||
if (Item.getQLo(arg_06) > 0x00F9) goto block_0956;
|
||||
|
||||
block_08D9:
|
||||
/* global_address global_id=0x3C */
|
||||
|
|
@ -148,15 +148,15 @@ function surcamns_slot_21() /* entry=269 class_id=0x04C6 slot=0x21 */
|
|||
goto block_0B01;
|
||||
|
||||
block_0956:
|
||||
x = Intrinsic0013(cameraEgg);
|
||||
y = Item.legal_create(cameraEgg);
|
||||
x = Item.getX(cameraEgg);
|
||||
y = Item.getY(cameraEgg);
|
||||
z = Item.getZ(cameraEgg);
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
if (Item.getMapNum(cameraEgg) != 0) goto block_0A31;
|
||||
if (Item.getMapArray(cameraEgg) != 0) goto block_0A31;
|
||||
|
||||
block_0A0C:
|
||||
spawn class_0A18_slot_20(pid, 0, cameraEgg, arg_06);
|
||||
|
|
@ -167,7 +167,7 @@ function surcamns_slot_21() /* entry=269 class_id=0x04C6 slot=0x21 */
|
|||
suspend;
|
||||
|
||||
block_0A57:
|
||||
if (!Item.enterFastArea()) goto block_0A8F;
|
||||
if (!Kernel.getCurrentKeyDown()) goto block_0A8F;
|
||||
|
||||
block_0A66:
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
|
|
|
|||
|
|
@ -6,51 +6,32 @@ function surcamns_slot_22() /* entry=269 class_id=0x04C6 slot=0x22 */
|
|||
n, /* [BP-02h] type=0x24 */
|
||||
foundGun; /* [BP-03h] type=0x62 */
|
||||
|
||||
entry:
|
||||
set_info(0x00F0, 0);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x42 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
|
||||
block_0C00:
|
||||
if condition goto block_0C28;
|
||||
|
||||
block_0C03:
|
||||
if Item.isNpc(n) goto block_0C24;
|
||||
|
||||
block_0C12:
|
||||
foundGun = 1;
|
||||
|
||||
block_0C24:
|
||||
set_info(0x00F0, 0);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x42 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
if (!Actor.isNPC(n)) {
|
||||
foundGun = 1;
|
||||
}
|
||||
/* loopnext */
|
||||
goto block_0C00;
|
||||
|
||||
block_0C28:
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
if foundGun goto block_0CCA;
|
||||
|
||||
block_0C8D:
|
||||
if (Item.pop() != 1) goto block_0CC7;
|
||||
|
||||
block_0C9E:
|
||||
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
|
||||
suspend;
|
||||
goto block_0C8D;
|
||||
|
||||
block_0CC7:
|
||||
goto block_0CF1;
|
||||
|
||||
block_0CCA:
|
||||
}
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
if (!foundGun) {
|
||||
while (getTargetNPCNumMaybe() == 1) {
|
||||
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
else {
|
||||
spawn class_0A0C_slot_32(pid, 0x00C8, 0x00000000);
|
||||
suspend;
|
||||
|
||||
block_0CF1:
|
||||
/* global_address global_id=0x3C */
|
||||
/* global_address global_id=0x3C */
|
||||
/* global_address global_id=0x3C */
|
||||
/* global_address global_id=0x3C */
|
||||
return;
|
||||
|
||||
}
|
||||
/* global_address global_id=0x3C */
|
||||
/* global_address global_id=0x3C */
|
||||
/* global_address global_id=0x3C */
|
||||
/* global_address global_id=0x3C */
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue