81 lines
2 KiB
Text
81 lines
2 KiB
Text
|
|
/* synthesized appendix for FLOAT */
|
|
/* sparse lines above preserve recovered debugger line numbers where available */
|
|
|
|
/* ===== slot 0x06 gotHit ===== */
|
|
function float_gotHit() /* entry=339 class_id=0x057F slot=0x06 */
|
|
{
|
|
set_info(0x020C, *(arg_06));
|
|
process_exclude();
|
|
FREE.slot_35(arg_0C, arg_0A);
|
|
local_08 = retval;
|
|
if (!local_08) {
|
|
if (local_08 == 4) {
|
|
return;
|
|
}
|
|
else {
|
|
for local_02 in nearby_items(shape=0x01F5, origin=arg_06) {
|
|
if ((Item.getX(local_02) == Item.getX(arg_06)) && (Item.getY(local_02) != Item.getY(arg_06))) {
|
|
return;
|
|
}
|
|
/* loopnext */
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
else {
|
|
local_0A = arg_0A;
|
|
if (((arg_0A < 0x00FF) && (arg_0A == World.getControlledNPCNum())) && (Item.isEntirelyOnScreen(arg_06) != 0)) {
|
|
return;
|
|
}
|
|
else {
|
|
for local_02 in nearby_items(shape=0x01F5, origin=arg_06) {
|
|
if ((Item.getX(local_02) == Item.getX(arg_06)) && (Item.getY(local_02) != Item.getY(arg_06))) {
|
|
return;
|
|
}
|
|
/* loopnext */
|
|
}
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
|
|
/* ===== slot 0x0A equip ===== */
|
|
function float_equip() /* entry=339 class_id=0x057F slot=0x0A */
|
|
{
|
|
set_info(0x0211, *(arg_06));
|
|
process_exclude();
|
|
if (arg_0A == 1) {
|
|
for local_02 in nearby_items(shape=0x01F5, origin=arg_06) {
|
|
if ((Item.getX(local_02) == Item.getX(arg_06)) && (Item.getY(local_02) != Item.getY(arg_06))) {
|
|
return;
|
|
}
|
|
/* loopnext */
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
|
|
/* ===== slot 0x0B unequip ===== */
|
|
function float_unequip() /* entry=339 class_id=0x057F slot=0x0B */
|
|
{
|
|
set_info(0x0212, *(arg_06));
|
|
process_exclude();
|
|
spawn FLOAT.enterFastArea(pid, arg_06);
|
|
suspend;
|
|
return;
|
|
}
|
|
|
|
/* ===== slot 0x0F enterFastArea ===== */
|
|
function float_enterFastArea() /* entry=339 class_id=0x057F slot=0x0F */
|
|
{
|
|
set_info(0x021B, *(arg_06));
|
|
process_exclude();
|
|
if (!(Item.getStatus(arg_06) & 0x1000)) {
|
|
return;
|
|
}
|
|
else {
|
|
ITEM.slot_24(0x1000, arg_06);
|
|
}
|
|
return;
|
|
}
|