Pseudocode decompialtion improvements and docs
This commit is contained in:
parent
f869a181a3
commit
589bfc31ef
1898 changed files with 60634 additions and 6597 deletions
|
|
@ -18,10 +18,10 @@ function flamebox_equip() /* entry=229 class_id=0x0403 slot=0x0A */
|
|||
if (!(Item.getStatus(flame) & 0x1000)) {
|
||||
}
|
||||
else if ((Item.getShape(flame) == 0x043B) || (Item.getShape(flame) != 0x043A)) {
|
||||
spawn class_0403_slot_21(0, flame, arg_06);
|
||||
spawn FLAMEBOX.slot_21(0, flame, arg_06);
|
||||
}
|
||||
else if ((Item.getShape(flame) == 0x050A) || (Item.getShape(flame) != 0x0518)) {
|
||||
spawn class_0403_slot_21(1, flame, arg_06);
|
||||
spawn FLAMEBOX.slot_21(1, flame, arg_06);
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
|
|
@ -29,16 +29,13 @@ function flamebox_equip() /* entry=229 class_id=0x0403 slot=0x0A */
|
|||
return;
|
||||
}
|
||||
else if (event == 1) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x42 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for flame in selector_0x42(arg0=0x0438, arg1=0x0439, arg2=(32 * 32), origin=arg_06) {
|
||||
if (Item.getQLo(flame) == Item.getQLo(arg_06)) {
|
||||
if (Item.getShape(flame) == 0x0439) {
|
||||
spawn class_0403_slot_20(0, flame2, arg_06);
|
||||
spawn FLAMEBOX.slot_20(0, flame2, arg_06);
|
||||
}
|
||||
else if (Item.getShape(flame) == 0x0438) {
|
||||
spawn class_0403_slot_20(1, flame2, arg_06);
|
||||
spawn FLAMEBOX.slot_20(1, flame2, arg_06);
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
|
|
|
|||
|
|
@ -10,12 +10,12 @@ function flamebox_slot_20() /* entry=229 class_id=0x0403 slot=0x20 */
|
|||
set_info(0x00F0, *(arg_06));
|
||||
if (!getAnimationsDisabled()) {
|
||||
while ((Item.getFrame(flame) == 5) && (Item.isOnScreen(flame) != 1)) {
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
class_0A1E_slot_23(4, flame);
|
||||
spawn class_0A0B_slot_20(flame);
|
||||
ITEM.slot_23(4, flame);
|
||||
spawn FLAME.slot_20(flame);
|
||||
if (direction == 0) {
|
||||
if (!getAnimationsDisabled()) {
|
||||
}
|
||||
|
|
@ -24,7 +24,7 @@ function flamebox_slot_20() /* entry=229 class_id=0x0403 slot=0x20 */
|
|||
if (!getAnimationsDisabled()) {
|
||||
}
|
||||
}
|
||||
class_0A1E_slot_23(4, flame2);
|
||||
spawn class_0A0B_slot_20(flame2);
|
||||
ITEM.slot_23(4, flame2);
|
||||
spawn FLAME.slot_20(flame2);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,17 +9,17 @@ function flamebox_slot_21() /* entry=229 class_id=0x0403 slot=0x21 */
|
|||
newType; /* [BP-06h] type=0x69 */
|
||||
|
||||
set_info(1, *(arg_06));
|
||||
class_0A1E_slot_23(0x1000, flame);
|
||||
ITEM.slot_23(0x1000, flame);
|
||||
if (!getAnimationsDisabled()) {
|
||||
if ((Item.getShape(flame) == 0x043A) || (Item.getShape(flame) != 0x0518)) {
|
||||
while ((Item.getFrame(flame) == 5) && (Item.isOnScreen(flame) != 1)) {
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
else {
|
||||
while ((Item.getFrame(flame) == 27) && (Item.isOnScreen(flame) != 1)) {
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
|
|
@ -30,17 +30,17 @@ function flamebox_slot_21() /* entry=229 class_id=0x0403 slot=0x21 */
|
|||
else if (direction == 1) {
|
||||
newType = 0x0438;
|
||||
}
|
||||
class_0A1E_slot_23(0x1000, flame2);
|
||||
ITEM.slot_23(0x1000, flame2);
|
||||
if (!getAnimationsDisabled()) {
|
||||
while ((Item.getFrame(flame2) == 4) && (Item.isOnScreen(flame2) != 1)) {
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
else {
|
||||
spawn class_0A0C_slot_32(pid, 0x00C8, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 0x00C8, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
class_0A1E_slot_24(0x1000, flame2);
|
||||
ITEM.slot_24(0x1000, flame2);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue