Pseudocode decompialtion improvements and docs
This commit is contained in:
parent
f869a181a3
commit
589bfc31ef
1898 changed files with 60634 additions and 6597 deletions
|
|
@ -24,22 +24,18 @@ function sswitchn_use() /* entry=247 class_id=0x0452 slot=0x01 */
|
|||
a = Item.getFrame(arg_06);
|
||||
if (Item.getMapArray(arg_06) == 0) {
|
||||
if (a == 2) {
|
||||
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
else if (a >= 2) {
|
||||
b = ((a + 1) & 1);
|
||||
spawn class_0A18_slot_20(pid, a, *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, a, *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
else {
|
||||
qLo = Item.getQLo(arg_06);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF9 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector sswitch in nearby_items(shape=0x0452, origin=arg_06) */
|
||||
while (!condition) {
|
||||
if (!(sswitch == *(arg_06))) {
|
||||
if (Item.getMapArray(sswitch) == 0) {
|
||||
|
|
@ -60,12 +56,7 @@ function sswitchn_use() /* entry=247 class_id=0x0452 slot=0x01 */
|
|||
counter = (1 + counter);
|
||||
/* loopnext */
|
||||
}
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xEF string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for sswitch2 in nearby_items(shape=0x0457, origin=arg_06) {
|
||||
if (Item.getMapArray(sswitch2) == 0) {
|
||||
if (Item.getQLo(sswitch2) == 29) {
|
||||
switch21 = sswitch2;
|
||||
|
|
@ -128,12 +119,7 @@ function sswitchn_use() /* entry=247 class_id=0x0452 slot=0x01 */
|
|||
return;
|
||||
}
|
||||
else {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF1 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for timer in nearby_items(shape=0x04C9, origin=arg_06) {
|
||||
if (Item.getQLo(timer) == 29) {
|
||||
suspend;
|
||||
}
|
||||
|
|
@ -146,12 +132,7 @@ function sswitchn_use() /* entry=247 class_id=0x0452 slot=0x01 */
|
|||
return;
|
||||
}
|
||||
else {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF1 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for timer in nearby_items(shape=0x04C9, origin=arg_06) {
|
||||
if (Item.getQLo(timer) == 30) {
|
||||
suspend;
|
||||
}
|
||||
|
|
@ -160,22 +141,17 @@ function sswitchn_use() /* entry=247 class_id=0x0452 slot=0x01 */
|
|||
}
|
||||
}
|
||||
else if (!c1) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF1 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for timer in nearby_items(shape=0x04C9, origin=arg_06) {
|
||||
if (Item.getQLo(timer) == 31) {
|
||||
suspend;
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
spawn class_0A0C_slot_32(pid, 20, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 20, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
spawn class_0A0C_slot_32(pid, 20, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 20, 0x00000000);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,13 +7,13 @@ function sswitchn_gotHit() /* entry=247 class_id=0x0452 slot=0x06 */
|
|||
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
class_0A0C_slot_2B(vel, ref);
|
||||
FREE.slot_2B(vel, ref);
|
||||
if (retval == 4) {
|
||||
if (ref == 1) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn class_0452_use(pid, arg_06);
|
||||
spawn SSWITCHN.use(pid, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue