public bool attach(PartTag tag) { if (equipped) return false; else { attachedPart = tag; equipped = true; return true; } }
public void detach() { equipped = false; attachedPart = null; }