Pseudocode decompialtion improvements and docs
This commit is contained in:
parent
f869a181a3
commit
589bfc31ef
1898 changed files with 60634 additions and 6597 deletions
|
|
@ -6,8 +6,8 @@ function miss13_hatch() /* entry=365 class_id=0x0919 slot=0x07 */
|
|||
return;
|
||||
}
|
||||
else if (Egg.getEggId(arg_06) == 2) {
|
||||
class_0A0C_slot_41();
|
||||
spawn class_0919_slot_20(pid, arg_06);
|
||||
FREE.slot_41();
|
||||
spawn MISS13.slot_20(pid, arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,26 +15,17 @@ function miss13_slot_20() /* entry=365 class_id=0x0919 slot=0x20 */
|
|||
set_info(1, 0);
|
||||
/* global_address global_id=0x3C */
|
||||
while (!Actor.isBusy()) {
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
wench = 0;
|
||||
door = 0;
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF6 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector npcWench in nearby_items(shape=0x0524, origin=global[0x003C]) */
|
||||
while (!condition) {
|
||||
wench = npcWench;
|
||||
/* loopnext */
|
||||
}
|
||||
/* 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) {
|
||||
for item in nearby_items(shape=PRISON_BARS_DOOR, origin=global[0x003C]) {
|
||||
if (Item.getQLo(item) == 4) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -42,67 +33,61 @@ function miss13_slot_20() /* entry=365 class_id=0x0919 slot=0x20 */
|
|||
}
|
||||
if (!wench) {
|
||||
suspend;
|
||||
/* 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 */
|
||||
/* loop_selector item in nearby_items(shape=door_shape_00a9, origin=global[0x003C]) */
|
||||
while (!condition) {
|
||||
class_0A0C_slot_29(item, global[0x003C]);
|
||||
FREE.slot_29(item, global[0x003C]);
|
||||
while ((retval > 3) && (counter == 20)) {
|
||||
/* global_address global_id=0x3C */
|
||||
/* global_address global_id=0x3C */
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A11_slot_22(Item.getDirFromTo16(Item.getX(pid, 1, Item.getY(Item.getY(wench), Item.getX(wench)))));
|
||||
spawn NPC.slot_22(Item.getDirFromTo16(Item.getX(pid, 1, Item.getY(Item.getY(wench), Item.getX(wench)))));
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
}
|
||||
door = item;
|
||||
spawn class_0A06_slot_20(pid, door);
|
||||
spawn DOOR.slot_20(pid, door);
|
||||
suspend;
|
||||
/* loopnext */
|
||||
}
|
||||
/* global_address global_id=0x3C */
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A11_slot_22(pid, 3, 0);
|
||||
spawn NPC.slot_22(pid, 3, 0);
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A11_slot_22(pid, 2, 14);
|
||||
spawn NPC.slot_22(pid, 2, 14);
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A11_slot_22(pid, 4, 12);
|
||||
spawn NPC.slot_22(pid, 4, 12);
|
||||
suspend;
|
||||
suspend;
|
||||
/* str_to_ptr */
|
||||
/* global_address global_id=0x3C */
|
||||
/* free_stack_string value_u8=0x4 target=[SP+04h] */
|
||||
suspend;
|
||||
spawn class_0A11_slot_22(pid, 6, 4, wench);
|
||||
spawn NPC.slot_22(pid, 6, 4, wench);
|
||||
suspend;
|
||||
spawn class_0A11_slot_22(pid, 3, 4, wench);
|
||||
spawn NPC.slot_22(pid, 3, 4, wench);
|
||||
suspend;
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A11_slot_22(pid, 2, 4);
|
||||
spawn NPC.slot_22(pid, 2, 4);
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
/* global_address global_id=0x3C */
|
||||
suspend;
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x42 */
|
||||
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in selector_0x42(arg0=0x0329, arg1=0x032A, arg2=(15 * 32), origin=global[0x003C]) */
|
||||
while (!condition) {
|
||||
/* loopnext */
|
||||
}
|
||||
spawn class_0A11_slot_22(pid, 3, 0, wench);
|
||||
spawn NPC.slot_22(pid, 3, 0, wench);
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
suspend;
|
||||
suspend;
|
||||
spawn class_0A11_slot_24(pid, wench);
|
||||
spawn NPC.slot_24(pid, wench);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 15, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 15, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue