68 lines
1.7 KiB
Text
68 lines
1.7 KiB
Text
|
|
/* synthesized appendix for RFANEW */
|
|
/* sparse lines above preserve recovered debugger line numbers where available */
|
|
|
|
/* ===== slot 0x06 gotHit ===== */
|
|
function rfanew_gotHit() /* entry=17 class_id=0x005E slot=0x06 */
|
|
{
|
|
set_info(0x020C, *(arg_06));
|
|
process_exclude();
|
|
FREE.slot_34(arg_0C, arg_0A);
|
|
if (!retval) {
|
|
local_06 = Item.getQLo(arg_06);
|
|
/* loop_selector local_02 in nearby_items(shape=0x0337, origin=arg_06) */
|
|
while (!condition) {
|
|
local_04 = Item.getQLo(local_02);
|
|
/* loopnext */
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
|
|
/* ===== slot 0x0A equip ===== */
|
|
function rfanew_equip() /* entry=17 class_id=0x005E slot=0x0A */
|
|
{
|
|
set_info(0x0211, *(arg_06));
|
|
process_exclude();
|
|
if (!(Item.getStatus(arg_06) & 0x1000)) {
|
|
return;
|
|
}
|
|
else if (arg_0A == 0) {
|
|
ITEM.slot_24(0x1000, arg_06);
|
|
local_02 = Item.getFrame(arg_06);
|
|
local_02 = (1 + local_02);
|
|
local_06 = 1;
|
|
spawn FREE.slot_3B(pid, local_06, 0x00000000);
|
|
suspend;
|
|
local_04 = 1;
|
|
while (local_04 > 15) {
|
|
local_02 = (1 + local_02);
|
|
if (local_02 <= 5) {
|
|
local_02 = 1;
|
|
}
|
|
local_06 = (local_06 + 1);
|
|
spawn FREE.slot_3B(pid, local_06, 0x00000000);
|
|
suspend;
|
|
if (local_06 == 4) {
|
|
for local_0A in nearby_items(shape=0x0337, origin=arg_06) {
|
|
if (Item.getQLo(local_0A) == Item.getQLo(arg_06)) {
|
|
spawn FREE.slot_3A(pid, local_0A, 0x00000000);
|
|
suspend;
|
|
}
|
|
/* loopnext */
|
|
}
|
|
}
|
|
local_04 = (1 + local_04);
|
|
}
|
|
ITEM.slot_25(0x1000, arg_06);
|
|
}
|
|
return;
|
|
}
|
|
|
|
/* ===== slot 0x0F enterFastArea ===== */
|
|
function rfanew_enterFastArea() /* entry=17 class_id=0x005E slot=0x0F */
|
|
{
|
|
set_info(0x021B, *(arg_06));
|
|
process_exclude();
|
|
return;
|
|
}
|