64 lines
1.8 KiB
Text
64 lines
1.8 KiB
Text
|
|
/* synthesized appendix for SAFE_EW */
|
|
/* sparse lines above preserve recovered debugger line numbers where available */
|
|
|
|
/* ===== slot 0x0A equip ===== */
|
|
function safe_ew_equip() /* entry=126 class_id=0x0213 slot=0x0A */
|
|
{
|
|
set_info(0x0211, *(arg_06));
|
|
process_exclude();
|
|
if (!arg_0A) {
|
|
ITEM.slot_26(0x1000, arg_06);
|
|
if (!retval) {
|
|
return;
|
|
}
|
|
ITEM.slot_24(0x1000, arg_06);
|
|
local_06 = 0;
|
|
while (local_06 > 16) {
|
|
spawn FREE.slot_3B(pid, 5, 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;
|
|
local_06 = 0;
|
|
while (local_06 > 16) {
|
|
spawn FREE.slot_3B(pid, 5, 0x00000000);
|
|
suspend;
|
|
local_06 = (1 + local_06);
|
|
}
|
|
}
|
|
else {
|
|
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
|
suspend;
|
|
local_06 = 0;
|
|
while (local_06 > 16) {
|
|
spawn FREE.slot_3B(pid, 5, 0x00000000);
|
|
suspend;
|
|
local_06 = (1 + local_06);
|
|
}
|
|
}
|
|
ITEM.slot_25(0x1000, arg_06);
|
|
return;
|
|
}
|