Pseudocode decompialtion improvements and docs
This commit is contained in:
parent
f869a181a3
commit
589bfc31ef
1898 changed files with 60634 additions and 6597 deletions
|
|
@ -13,9 +13,9 @@ function reb_pad_gotHit() /* entry=236 class_id=0x043D slot=0x06 */
|
|||
item = ref;
|
||||
pad = *(arg_06);
|
||||
set_info(1, 0);
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
class_0A0C_slot_2C(ke, ref);
|
||||
FREE.slot_2C(ke, ref);
|
||||
if (!retval) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -24,76 +24,72 @@ function reb_pad_gotHit() /* entry=236 class_id=0x043D slot=0x06 */
|
|||
}
|
||||
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 */
|
||||
/* loop_selector item in nearby_items(shape=PLACEHOLDER_CUBE, origin=arg_06) */
|
||||
while (!condition) {
|
||||
/* loopnext */
|
||||
}
|
||||
if (global[0x001F] == 1) {
|
||||
spawn class_043D_slot_20(30, 1, arg_06);
|
||||
spawn REB_PAD.slot_20(30, 1, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 2) {
|
||||
spawn class_043D_slot_20(30, 3, arg_06);
|
||||
spawn REB_PAD.slot_20(30, 3, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 3) {
|
||||
spawn class_043D_slot_20(30, 5, arg_06);
|
||||
spawn REB_PAD.slot_20(30, 5, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 4) {
|
||||
spawn class_043D_slot_20(30, 7, arg_06);
|
||||
spawn REB_PAD.slot_20(30, 7, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 5) {
|
||||
spawn class_043D_slot_20(30, 9, arg_06);
|
||||
spawn REB_PAD.slot_20(30, 9, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 6) {
|
||||
spawn class_043D_slot_20(30, 11, arg_06);
|
||||
spawn REB_PAD.slot_20(30, 11, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 7) {
|
||||
spawn class_043D_slot_20(30, 13, arg_06);
|
||||
spawn REB_PAD.slot_20(30, 13, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 8) {
|
||||
spawn class_043D_slot_20(30, 15, arg_06);
|
||||
spawn REB_PAD.slot_20(30, 15, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 9) {
|
||||
spawn class_043D_slot_20(30, 17, arg_06);
|
||||
spawn REB_PAD.slot_20(30, 17, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 10) {
|
||||
spawn class_043D_slot_20(30, 19, arg_06);
|
||||
spawn REB_PAD.slot_20(30, 19, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 11) {
|
||||
spawn class_043D_slot_20(30, 21, arg_06);
|
||||
spawn REB_PAD.slot_20(30, 21, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 12) {
|
||||
spawn class_043D_slot_20(30, 23, arg_06);
|
||||
spawn REB_PAD.slot_20(30, 23, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 13) {
|
||||
spawn class_043D_slot_20(30, 25, arg_06);
|
||||
spawn REB_PAD.slot_20(30, 25, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 14) {
|
||||
spawn class_043D_slot_20(30, 27, arg_06);
|
||||
spawn REB_PAD.slot_20(30, 27, arg_06);
|
||||
return;
|
||||
}
|
||||
else if (global[0x001F] == 15) {
|
||||
spawn class_043D_slot_20(30, 29, arg_06);
|
||||
spawn REB_PAD.slot_20(30, 29, arg_06);
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn class_043D_slot_20(29, 40, arg_06);
|
||||
spawn REB_PAD.slot_20(29, 40, arg_06);
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -7,14 +7,14 @@ function reb_pad_slot_20() /* entry=236 class_id=0x043D slot=0x20 */
|
|||
|
||||
set_info(1, 0);
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A11_slot_24(pid);
|
||||
spawn NPC.slot_24(pid);
|
||||
suspend;
|
||||
suspend;
|
||||
if (Item.getStatus(arg_06) & 0x1000) {
|
||||
spawn class_043D_slot_21(pid, arg_06);
|
||||
spawn REB_PAD.slot_21(pid, arg_06);
|
||||
suspend;
|
||||
}
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
suspend;
|
||||
if (mapNum == 29) {
|
||||
|
|
@ -24,7 +24,7 @@ function reb_pad_slot_20() /* entry=236 class_id=0x043D slot=0x20 */
|
|||
/* global_address global_id=0x3C */
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A11_slot_23(pid);
|
||||
spawn NPC.slot_23(pid);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -9,25 +9,16 @@ function reb_pad_slot_21() /* entry=236 class_id=0x043D slot=0x21 */
|
|||
counter2; /* [BP-0Ah] type=0x69 */
|
||||
|
||||
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 */
|
||||
/* loop_selector gun in nearby_items(family=10, origin=global[0x003C]) */
|
||||
while (!condition) {
|
||||
spawn class_0A0C_slot_31(pid, gun, 0x00000000);
|
||||
spawn FREE.slot_31(pid, gun, 0x00000000);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
gunHold = process_result;
|
||||
counter = (1 + counter);
|
||||
/* 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 phold in nearby_items(shape=0x0476, origin=global[0x003C]) {
|
||||
counter2 = (1 + counter2);
|
||||
/* loopnext */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue