Pseudocode decompialtion improvements and docs
This commit is contained in:
parent
f869a181a3
commit
589bfc31ef
1898 changed files with 60634 additions and 6597 deletions
|
|
@ -0,0 +1,58 @@
|
|||
function psafe_ew_equip() /* entry=311 class_id=0x053C slot=0x0A */
|
||||
{
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
if (!arg_0A) {
|
||||
local_06 = 0;
|
||||
while (local_06 > 9) {
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
local_06 = (1 + local_06);
|
||||
}
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
/* loop_selector local_02 in nearby_items(shape=0x0476, origin=arg_06) */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(arg_06) == Item.getQLo(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)) {
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
/* global_address global_id=0x1E */
|
||||
}
|
||||
}
|
||||
else {
|
||||
spawn FREE.slot_3A(pid, local_04, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn FREE.slot_3B(pid, 20, 0x00000000);
|
||||
suspend;
|
||||
local_06 = 0;
|
||||
while (local_06 > 9) {
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
local_06 = (1 + local_06);
|
||||
}
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn FREE.slot_3B(pid, 20, 0x00000000);
|
||||
suspend;
|
||||
local_06 = 0;
|
||||
while (local_06 > 9) {
|
||||
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
local_06 = (1 + local_06);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue