weapon shattering follow-up

This commit is contained in:
nethack.allison
2002-03-06 02:05:14 +00:00
parent 233385401a
commit bc99fd14a6
+4 -1
View File
@@ -223,9 +223,12 @@ struct obj {
(obj)->otyp == TOUCHSTONE) (obj)->otyp == TOUCHSTONE)
/* misc */ /* misc */
#ifdef KOPS
#define is_flimsy(otmp) (objects[(otmp)->otyp].oc_material <= LEATHER || \ #define is_flimsy(otmp) (objects[(otmp)->otyp].oc_material <= LEATHER || \
(otmp)->otyp == RUBBER_HOSE) (otmp)->otyp == RUBBER_HOSE)
#else
#define is_flimsy(otmp) (objects[(otmp)->otyp].oc_material <= LEATHER)
#endif
/* helpers, simple enough to be macros */ /* helpers, simple enough to be macros */
#define is_plural(o) ((o)->quan > 1 || \ #define is_plural(o) ((o)->quan > 1 || \