99 lines
2.5 KiB
Text
99 lines
2.5 KiB
Text
|
|
/* synthesized appendix for CHEST_EW */
|
|
/* sparse lines above preserve recovered debugger line numbers where available */
|
|
|
|
/* ===== slot 0x01 use ===== */
|
|
function chest_ew_use() /* entry=321 class_id=0x0550 slot=0x01 */
|
|
{
|
|
set_info(0x0207, *(arg_06));
|
|
process_exclude();
|
|
if (Item.getFrame(arg_06) <= 1) {
|
|
return;
|
|
}
|
|
else if (Item.getFrame(arg_06) == 1) {
|
|
FREE.slot_36(Item.getZ(arg_06), Item.getY(arg_06), Item.getX(arg_06), 6, 0x054B, *(arg_06));
|
|
if (!retval) {
|
|
local_06 = 6;
|
|
while (local_06 > 10) {
|
|
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
|
suspend;
|
|
local_06 = (1 + local_06);
|
|
}
|
|
}
|
|
else {
|
|
return;
|
|
}
|
|
}
|
|
else {
|
|
FREE.slot_36(Item.getZ(arg_06), Item.getY(arg_06), Item.getX(arg_06), 1, 0x054B, *(arg_06));
|
|
if (!retval) {
|
|
local_06 = 1;
|
|
while (local_06 > 5) {
|
|
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
|
suspend;
|
|
local_06 = (1 + local_06);
|
|
}
|
|
}
|
|
else {
|
|
return;
|
|
}
|
|
}
|
|
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 */
|
|
if (Actor.getMap() == 25) {
|
|
}
|
|
else {
|
|
/* 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 */
|
|
}
|
|
return;
|
|
}
|
|
|
|
/* ===== slot 0x06 gotHit ===== */
|
|
function chest_ew_gotHit() /* entry=321 class_id=0x0550 slot=0x06 */
|
|
{
|
|
set_info(0x020C, *(arg_06));
|
|
process_exclude();
|
|
FREE.slot_35(arg_0C, arg_0A);
|
|
if (retval) {
|
|
return;
|
|
}
|
|
else {
|
|
local_02 = Item.getFrame(arg_06);
|
|
if (local_02 >= 2) {
|
|
spawn ITEM.slot_29(pid, 0x008C, arg_0C, arg_0A, arg_06);
|
|
suspend;
|
|
/* dword_to_word */
|
|
if (process_result) {
|
|
FREE.slot_20(1);
|
|
if (!retval) {
|
|
}
|
|
return;
|
|
}
|
|
else {
|
|
spawn ITEM.slot_2A(pid, 0, 0, arg_06);
|
|
suspend;
|
|
ITEM.slot_24(0x1000, arg_06);
|
|
}
|
|
}
|
|
}
|
|
return;
|
|
}
|