/* helpers, simple enough to be macros */
#define is_plural(o) \
- ((o)->quan > 1 || (o)->oartifact == ART_EYES_OF_THE_OVERWORLD)
+ ((o)->quan != 1L || (o)->otyp == LENSES || is_gloves(o) || is_boots(o))
/* Flags for get_obj_location(). */
#define CONTAINED_TOO 0x1
if (mon->mhp > 0) {
mon->misc_worn_check &= ~obj->owornmask;
update_mon = TRUE;
- /* don't charge for an owned saddle on dead steed (provided
- that the hero is within the same shop at the time) */
- } else if (mon->mtame && (obj->owornmask & W_SADDLE) && !obj->unpaid
- && costly_spot(omx, omy)
+
+ /* don't charge for an owned saddle on dead steed (provided
+ that the hero is within the same shop at the time) */
+ } else if (mon->mtame && (obj->owornmask & W_SADDLE) != 0L
+ && !obj->unpaid && costly_spot(omx, omy)
/* being at costly_spot guarantees lev->roomno is not 0 */
&& index(in_rooms(u.ux, u.uy, SHOPBASE),
levl[omx][omy].roomno)) {
if (Blind) {
if (!paper->dknown) {
You("don't know if that %s is blank or not.", typeword);
- return 1;
+ return 0;
} else if (paper->oclass == SPBOOK_CLASS) {
/* can't write a magic book while blind */
pline("%s can't create braille text.",
upstart(ysimple_name(pen)));
- return 1;
+ return 0;
}
}
paper->dknown = 1;