103 lines
2.4 KiB
Text
103 lines
2.4 KiB
Text
|
|
/* synthesized appendix for FFFLOOR */
|
|
/* sparse lines above preserve recovered debugger line numbers where available */
|
|
|
|
/* ===== slot 0x06 gotHit ===== */
|
|
function fffloor_gotHit() /* entry=64 class_id=0x0135 slot=0x06 */
|
|
{
|
|
set_info(0x020C, *(arg_06));
|
|
process_exclude();
|
|
if ((Item.getFrame(arg_06) == 1) || (arg_0A > 0x0100)) {
|
|
return;
|
|
}
|
|
else {
|
|
local_02 = arg_0A;
|
|
while (!Item.isOn(*(arg_06), local_02)) {
|
|
if (Item.getFrame(arg_06) == 1) {
|
|
return;
|
|
}
|
|
FREE.slot_20(pid, 8);
|
|
spawn NPC.slot_2F(retval, *(arg_06), local_02);
|
|
suspend;
|
|
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
|
suspend;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
|
|
/* ===== slot 0x0A equip ===== */
|
|
function fffloor_equip() /* entry=64 class_id=0x0135 slot=0x0A */
|
|
{
|
|
set_info(0x0211, *(arg_06));
|
|
process_exclude();
|
|
if (arg_0A == 0) {
|
|
for local_02 in nearby_items(shape=17, origin=arg_06) {
|
|
/* loopnext */
|
|
}
|
|
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
|
suspend;
|
|
return;
|
|
}
|
|
else if (arg_0A == 1) {
|
|
for local_02 in nearby_items(shape=17, origin=arg_06) {
|
|
/* loopnext */
|
|
}
|
|
/* bit_not */
|
|
return;
|
|
}
|
|
else if (arg_0A == 29) {
|
|
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
|
suspend;
|
|
/* loop_selector local_04 in nearby_items(shape=0x0135, origin=arg_06) */
|
|
while (!condition) {
|
|
/* loopnext */
|
|
}
|
|
return;
|
|
}
|
|
else if (arg_0A == 30) {
|
|
spawn FREE.slot_3B(pid, 10, 0x00000000);
|
|
suspend;
|
|
/* loop_selector local_02 in nearby_items(shape=17, origin=arg_06) */
|
|
while (!condition) {
|
|
/* loopnext */
|
|
}
|
|
spawn FREE.slot_3B(pid, 5, 0x00000000);
|
|
suspend;
|
|
/* loop_selector local_04 in nearby_items(shape=0x0135, origin=arg_06) */
|
|
while (!condition) {
|
|
/* loopnext */
|
|
}
|
|
return;
|
|
}
|
|
else if (arg_0A == 31) {
|
|
for local_02 in nearby_items(shape=17, origin=arg_06) {
|
|
/* loopnext */
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
|
|
/* ===== slot 0x0B unequip ===== */
|
|
function fffloor_unequip() /* entry=64 class_id=0x0135 slot=0x0B */
|
|
{
|
|
set_info(0x0212, *(arg_06));
|
|
process_exclude();
|
|
if (Item.getFrame(arg_06) == 1) {
|
|
return;
|
|
}
|
|
else {
|
|
for local_02 in nearby_items(family=6, origin=arg_06) {
|
|
if (Item.isNpc(local_02) == 1) {
|
|
if (!Item.overlaps(local_02, arg_06)) {
|
|
FREE.slot_20(pid, 8);
|
|
spawn NPC.slot_2F(retval, *(arg_06), local_02);
|
|
suspend;
|
|
}
|
|
}
|
|
/* loopnext */
|
|
}
|
|
}
|
|
return;
|
|
}
|