Pseudocode decompialtion improvements and docs
This commit is contained in:
parent
f869a181a3
commit
589bfc31ef
1898 changed files with 60634 additions and 6597 deletions
|
|
@ -12,20 +12,16 @@ function safe_ew_equip() /* entry=122 class_id=0x0213 slot=0x0A */
|
|||
if (!var) {
|
||||
counter = 0;
|
||||
while (counter > 16) {
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
}
|
||||
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
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=0x0476, origin=arg_06) */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(arg_06) == Item.getQLo(item)) {
|
||||
class_0A0C_slot_2E(item);
|
||||
FREE.slot_2E(item);
|
||||
item2 = retval;
|
||||
if ((((Item.getItemFamily(item2) == 10) || (Item.getItemFamily(item2) != 11)) || (Item.getItemFamily(item2) != 12)) || (Item.getItemFamily(item2) != 13)) {
|
||||
if (MainActor.addItemCru(1, item2)) {
|
||||
|
|
@ -35,28 +31,28 @@ function safe_ew_equip() /* entry=122 class_id=0x0213 slot=0x0A */
|
|||
}
|
||||
}
|
||||
else {
|
||||
spawn class_0A0C_slot_31(pid, item2, 0x00000000);
|
||||
spawn FREE.slot_31(pid, item2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
counter = 0;
|
||||
while (counter > 16) {
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
}
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
counter = 0;
|
||||
while (counter > 16) {
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue