public boolean wear(MOB mob, Item item, int locationIndex, boolean quiet) { String str = "<S-NAME> put(s) on <T-NAME>."; int msgType = CMMsg.MSG_WEAR; if (item.rawProperLocationBitmap() == Wearable.WORN_HELD) { str = "<S-NAME> hold(s) <T-NAME>."; msgType = CMMsg.MSG_HOLD; } else if ((item.rawProperLocationBitmap() == Wearable.WORN_WIELD) || (item.rawProperLocationBitmap() == (Wearable.WORN_HELD | Wearable.WORN_WIELD))) { str = "<S-NAME> wield(s) <T-NAME>."; msgType = CMMsg.MSG_WIELD; } else if (locationIndex != 0) str = "<S-NAME> put(s) <T-NAME> on <S-HIS-HER> " + Wearable.CODES.NAME(locationIndex).toLowerCase() + "."; CMMsg newMsg = CMClass.getMsg(mob, item, null, msgType, quiet ? null : str); newMsg.setValue(locationIndex); if (mob.location().okMessage(mob, newMsg)) { mob.location().send(mob, newMsg); return true; } return false; }