package net.sourceforge.pain.logic.fn;
import net.sourceforge.pain.data.type.*;
public class DropFn {
public static void drop(Equipped equipped, Physical target) {
final Located located = equipped.asLocated();
RelocateFn.relocate(target.asLocated(), located.getLocation());
final Interactive iTarget = target.asInteractive();
MessageOutFn.outln(equipped, "You drop " + iTarget.getDesc() + ".");
MessageOutFn.outSpace(equipped, "$n drops $P.", equipped, iTarget, Receptive.SEE);
}
}