26 lines
601 B
Text
26 lines
601 B
Text
function fffloor_unequip() /* entry=54 class_id=0x0135 slot=0x0B */
|
|
{
|
|
var
|
|
referent, /* [BP+00h] type=0x69 */
|
|
var, /* [BP+0Ah] type=0x69 */
|
|
item; /* [BP-02h] type=0x24 */
|
|
|
|
set_info(0x0212, *(arg_06));
|
|
process_exclude();
|
|
if (Item.getFrame(arg_06) == 1) {
|
|
return;
|
|
}
|
|
else {
|
|
for item in nearby_items(family=6, origin=arg_06) {
|
|
if (Actor.isNPC(item) == 1) {
|
|
if (!Item.overlaps(item, arg_06)) {
|
|
FREE.slot_20(pid, 8);
|
|
spawn NPC.slot_2D(retval, *(arg_06), item);
|
|
suspend;
|
|
}
|
|
}
|
|
/* loopnext */
|
|
}
|
|
}
|
|
return;
|
|
}
|