Usecode pseudocode
This commit is contained in:
parent
f92d1504fa
commit
c12bb39437
1362 changed files with 71072 additions and 38056 deletions
|
|
@ -16,10 +16,85 @@ function reb_pad_gotHit() /* entry=236 class_id=0x043D slot=0x06 */
|
|||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
class_0A0C_slot_2C(ke, ref);
|
||||
if (retval) {
|
||||
if (((Intrinsic0070() != 1) || (!Item.isInNpc(*(arg_06), item))) || (Item.getNpcNum(arg_06) == 0)) {
|
||||
}
|
||||
if (!retval) {
|
||||
return;
|
||||
}
|
||||
else if (((Ultima8Engine.getUnkCrusaderFlag() == 1) || (!Item.isCompletelyOn(*(arg_06), item))) || (Item.getQLo(arg_06) != 0)) {
|
||||
return;
|
||||
}
|
||||
else if (item == 1) {
|
||||
/* pop_global global_id=0x1D size=0x2 */
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
/* loopnext */
|
||||
}
|
||||
if (global[0x001F] == 1) {
|
||||
spawn class_043D_slot_20(30, 1, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 2) {
|
||||
spawn class_043D_slot_20(30, 3, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 3) {
|
||||
spawn class_043D_slot_20(30, 5, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 4) {
|
||||
spawn class_043D_slot_20(30, 7, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 5) {
|
||||
spawn class_043D_slot_20(30, 9, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 6) {
|
||||
spawn class_043D_slot_20(30, 11, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 7) {
|
||||
spawn class_043D_slot_20(30, 13, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 8) {
|
||||
spawn class_043D_slot_20(30, 15, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 9) {
|
||||
spawn class_043D_slot_20(30, 17, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 10) {
|
||||
spawn class_043D_slot_20(30, 19, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 11) {
|
||||
spawn class_043D_slot_20(30, 21, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 12) {
|
||||
spawn class_043D_slot_20(30, 23, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 13) {
|
||||
spawn class_043D_slot_20(30, 25, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 14) {
|
||||
spawn class_043D_slot_20(30, 27, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 15) {
|
||||
spawn class_043D_slot_20(30, 29, arg_06);
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn class_043D_slot_20(29, 40, arg_06);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,35 +5,27 @@ function reb_pad_slot_20() /* entry=236 class_id=0x043D slot=0x20 */
|
|||
mapNum, /* [BP+0Ah] type=0x69 */
|
||||
eggNum; /* [BP+0Ch] type=0x69 */
|
||||
|
||||
entry:
|
||||
set_info(1, 0);
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A11_slot_24(pid);
|
||||
suspend;
|
||||
suspend;
|
||||
if (!(Item.getStatus(arg_06) & 0x1000)) goto block_049F;
|
||||
|
||||
block_0480:
|
||||
set_info(1, 0);
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A11_slot_24(pid);
|
||||
suspend;
|
||||
suspend;
|
||||
if (Item.getStatus(arg_06) & 0x1000) {
|
||||
spawn class_043D_slot_21(pid, arg_06);
|
||||
suspend;
|
||||
|
||||
block_049F:
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
suspend;
|
||||
if (mapNum != 29) goto block_0505;
|
||||
|
||||
block_04FF:
|
||||
goto block_055F;
|
||||
|
||||
block_0505:
|
||||
}
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
suspend;
|
||||
if (mapNum == 29) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
/* global_address global_id=0x3C */
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A11_slot_23(pid);
|
||||
suspend;
|
||||
|
||||
block_055F:
|
||||
return;
|
||||
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,43 +8,29 @@ function reb_pad_slot_21() /* entry=236 class_id=0x043D slot=0x21 */
|
|||
counter, /* [BP-08h] type=0x69 */
|
||||
counter2; /* [BP-0Ah] type=0x69 */
|
||||
|
||||
entry:
|
||||
set_info(1, 0);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
|
||||
block_05CA:
|
||||
if condition goto block_062C;
|
||||
|
||||
block_05CD:
|
||||
set_info(1, 0);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
spawn class_0A0C_slot_31(pid, gun, 0x00000000);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
gunHold = process_result;
|
||||
counter = (1 + counter);
|
||||
/* loopnext */
|
||||
goto block_05CA;
|
||||
|
||||
block_062C:
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x2 */
|
||||
|
||||
block_064C:
|
||||
if condition goto block_0677;
|
||||
|
||||
block_064F:
|
||||
}
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
counter2 = (1 + counter2);
|
||||
/* loopnext */
|
||||
goto block_064C;
|
||||
|
||||
block_0677:
|
||||
/* bit_not */
|
||||
return;
|
||||
|
||||
}
|
||||
/* bit_not */
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue