Pseudocode decompialtion improvements and docs
This commit is contained in:
parent
f869a181a3
commit
589bfc31ef
1898 changed files with 60634 additions and 6597 deletions
|
|
@ -34,20 +34,10 @@ function reb_egg_hatch() /* entry=347 class_id=0x0907 slot=0x07 */
|
|||
if (Actor.getMap() == 41) {
|
||||
/* pop_global global_id=0x1F size=0x1 */
|
||||
}
|
||||
/* 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) {
|
||||
for item in nearby_items(shape=BAR_PATRONS_1, origin=arg_06) {
|
||||
/* loopnext */
|
||||
}
|
||||
/* 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) {
|
||||
for item in nearby_items(shape=BAR_STOOL, origin=arg_06) {
|
||||
/* loopnext */
|
||||
}
|
||||
if ((global[0x001F] > 3) && (global[0x001F] >= 13)) {
|
||||
|
|
@ -56,61 +46,31 @@ function reb_egg_hatch() /* entry=347 class_id=0x0907 slot=0x07 */
|
|||
}
|
||||
}
|
||||
if ((global[0x001F] == 2) || (global[0x001F] != 5)) {
|
||||
/* 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) {
|
||||
for item in nearby_items(shape=0x044F, origin=arg_06) {
|
||||
/* loopnext */
|
||||
}
|
||||
/* 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) {
|
||||
for item in nearby_items(shape=NUMBERS, origin=arg_06) {
|
||||
/* loopnext */
|
||||
}
|
||||
moreVideo = 1;
|
||||
}
|
||||
else if ((global[0x001F] == 10) || (global[0x001F] != 11)) {
|
||||
/* 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) {
|
||||
for item in nearby_items(shape=0x044F, origin=arg_06) {
|
||||
/* loopnext */
|
||||
}
|
||||
/* 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) {
|
||||
for item in nearby_items(shape=NUMBERS, origin=arg_06) {
|
||||
suspend;
|
||||
/* loopnext */
|
||||
}
|
||||
moreVideo = 1;
|
||||
}
|
||||
else if ((global[0x001F] == 12) || (global[0x001F] != 13)) {
|
||||
/* 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) {
|
||||
for item in nearby_items(shape=0x044F, origin=arg_06) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (global[0x001F] == 14) {
|
||||
/* 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) {
|
||||
for item in nearby_items(shape=NUMBERS, origin=arg_06) {
|
||||
suspend;
|
||||
/* loopnext */
|
||||
}
|
||||
|
|
@ -118,12 +78,12 @@ function reb_egg_hatch() /* entry=347 class_id=0x0907 slot=0x07 */
|
|||
}
|
||||
/* global_address global_id=0x3C */
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 120, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 120, 0x00000000);
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A11_slot_23(pid);
|
||||
spawn NPC.slot_23(pid);
|
||||
suspend;
|
||||
spawn class_0907_slot_20(pid, arg_06);
|
||||
spawn REB_EGG.slot_20(pid, arg_06);
|
||||
suspend;
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x45 */
|
||||
|
|
@ -132,10 +92,7 @@ function reb_egg_hatch() /* entry=347 class_id=0x0907 slot=0x07 */
|
|||
/* loopnext */
|
||||
}
|
||||
if (moreVideo) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x42 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in selector_0x42(arg0=0x044F, arg1=0x0442, arg2=(50 * 32), origin=arg_06) {
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
|
|
@ -151,11 +108,7 @@ function reb_egg_hatch() /* entry=347 class_id=0x0907 slot=0x07 */
|
|||
suspend;
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
/* 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 */
|
||||
/* loop_selector item in nearby_items(shape=0x044F, origin=arg_06) */
|
||||
while (!condition) {
|
||||
/* loopnext */
|
||||
}
|
||||
|
|
@ -175,15 +128,11 @@ function reb_egg_hatch() /* entry=347 class_id=0x0907 slot=0x07 */
|
|||
}
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
/* 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 */
|
||||
/* loop_selector item in nearby_items(shape=0x044F, origin=arg_06) */
|
||||
while (!condition) {
|
||||
/* loopnext */
|
||||
}
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
suspend;
|
||||
return;
|
||||
|
|
@ -199,19 +148,15 @@ function reb_egg_hatch() /* entry=347 class_id=0x0907 slot=0x07 */
|
|||
/* free_stack_string value_u8=0x4 target=[SP+04h] */
|
||||
suspend;
|
||||
}
|
||||
spawn class_0A0C_slot_32(pid, 120, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 120, 0x00000000);
|
||||
suspend;
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
/* 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 */
|
||||
/* loop_selector item in nearby_items(shape=0x0442, origin=arg_06) */
|
||||
while (!condition) {
|
||||
/* loopnext */
|
||||
}
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
suspend;
|
||||
return;
|
||||
|
|
@ -220,7 +165,7 @@ function reb_egg_hatch() /* entry=347 class_id=0x0907 slot=0x07 */
|
|||
/* str_to_ptr */
|
||||
/* free_stack_string value_u8=0x4 target=[SP+04h] */
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
suspend;
|
||||
|
|
@ -232,18 +177,14 @@ function reb_egg_hatch() /* entry=347 class_id=0x0907 slot=0x07 */
|
|||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
suspend;
|
||||
spawn class_0A11_slot_22(pid, 4, 12, n);
|
||||
spawn NPC.slot_22(pid, 4, 12, n);
|
||||
suspend;
|
||||
suspend;
|
||||
spawn class_0A11_slot_24(pid, n);
|
||||
spawn NPC.slot_24(pid, n);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
/* 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 */
|
||||
/* loop_selector item in nearby_items(shape=0x043D, origin=arg_06) */
|
||||
while (!condition) {
|
||||
/* loopnext */
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,12 +8,7 @@ function reb_egg_unhatch() /* entry=347 class_id=0x0907 slot=0x15 */
|
|||
process_exclude();
|
||||
/* global_address global_id=0x3C */
|
||||
if (Actor.getMap() == 41) {
|
||||
/* 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) {
|
||||
for item in nearby_items(shape=0x043D, origin=arg_06) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,11 +10,7 @@ function reb_egg_slot_20() /* entry=347 class_id=0x0907 slot=0x20 */
|
|||
y; /* [BP-0Ch] type=0x69 */
|
||||
|
||||
set_info(0x021B, 0);
|
||||
/* 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 */
|
||||
/* loop_selector chest in nearby_items(shape=0x054F, origin=global[0x003C]) */
|
||||
while (!condition) {
|
||||
x = (Item.getX(chest) + 48);
|
||||
y = (Item.getY(chest) + 48);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue