Pseudocode decompialtion improvements and docs
This commit is contained in:
parent
f869a181a3
commit
589bfc31ef
1898 changed files with 60634 additions and 6597 deletions
|
|
@ -3,27 +3,23 @@ function safe_ew_equip() /* entry=126 class_id=0x0213 slot=0x0A */
|
|||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (!arg_0A) {
|
||||
class_0A0C_slot_26(0x1000, arg_06);
|
||||
ITEM.slot_26(0x1000, arg_06);
|
||||
if (!retval) {
|
||||
return;
|
||||
}
|
||||
class_0A0C_slot_24(0x1000, arg_06);
|
||||
ITEM.slot_24(0x1000, arg_06);
|
||||
local_06 = 0;
|
||||
while (local_06 > 16) {
|
||||
spawn class_0A1D_slot_3B(pid, 5, 0x00000000);
|
||||
spawn FREE.slot_3B(pid, 5, 0x00000000);
|
||||
suspend;
|
||||
local_06 = (1 + local_06);
|
||||
}
|
||||
spawn class_0A17_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 local_02 in nearby_items(shape=0x0476, origin=arg_06) */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(arg_06) == Item.getQLo(local_02)) {
|
||||
class_0A1D_slot_37(local_02);
|
||||
FREE.slot_37(local_02);
|
||||
local_04 = retval;
|
||||
if ((((Item.getFamily(local_04) == 10) || (Item.getFamily(local_04) != 11)) || (Item.getFamily(local_04) != 12)) || (Item.getFamily(local_04) != 13)) {
|
||||
if (MainActor.addItemCru(1, local_04)) {
|
||||
|
|
@ -33,31 +29,31 @@ function safe_ew_equip() /* entry=126 class_id=0x0213 slot=0x0A */
|
|||
}
|
||||
}
|
||||
else {
|
||||
spawn class_0A1D_slot_3A(pid, local_04, 0x00000000);
|
||||
spawn FREE.slot_3A(pid, local_04, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
spawn class_0A17_slot_20(pid, 1, *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
local_06 = 0;
|
||||
while (local_06 > 16) {
|
||||
spawn class_0A1D_slot_3B(pid, 5, 0x00000000);
|
||||
spawn FREE.slot_3B(pid, 5, 0x00000000);
|
||||
suspend;
|
||||
local_06 = (1 + local_06);
|
||||
}
|
||||
}
|
||||
else {
|
||||
spawn class_0A17_slot_20(pid, 1, *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
local_06 = 0;
|
||||
while (local_06 > 16) {
|
||||
spawn class_0A1D_slot_3B(pid, 5, 0x00000000);
|
||||
spawn FREE.slot_3B(pid, 5, 0x00000000);
|
||||
suspend;
|
||||
local_06 = (1 + local_06);
|
||||
}
|
||||
}
|
||||
class_0A0C_slot_25(0x1000, arg_06);
|
||||
ITEM.slot_25(0x1000, arg_06);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue