B20007 age of potion of oil from bones
First From a bug report.4.1 beta 20.
This commit is contained in:
@@ -260,6 +260,22 @@ struct obj {
|
||||
otmp->otyp == WAX_CANDLE)
|
||||
#define MAX_OIL_IN_FLASK 400 /* maximum amount of oil in a potion of oil */
|
||||
|
||||
/* MAGIC_LAMP intentionally excluded below */
|
||||
/* age field of this is relative age rather than absolute */
|
||||
#define age_is_relative(otmp) ((otmp)->otyp == BRASS_LANTERN\
|
||||
|| (otmp)->otyp == OIL_LAMP\
|
||||
|| (otmp)->otyp == CANDELABRUM_OF_INVOCATION\
|
||||
|| (otmp)->otyp == TALLOW_CANDLE\
|
||||
|| (otmp)->otyp == WAX_CANDLE\
|
||||
|| (otmp)->otyp == POT_OIL)
|
||||
/* object can be ignited */
|
||||
#define ignitable(otmp) ((otmp)->otyp == BRASS_LANTERN\
|
||||
|| (otmp)->otyp == OIL_LAMP\
|
||||
|| (otmp)->otyp == CANDELABRUM_OF_INVOCATION\
|
||||
|| (otmp)->otyp == TALLOW_CANDLE\
|
||||
|| (otmp)->otyp == WAX_CANDLE\
|
||||
|| (otmp)->otyp == POT_OIL)
|
||||
|
||||
/* special stones */
|
||||
#define is_graystone(obj) ((obj)->otyp == LUCKSTONE || \
|
||||
(obj)->otyp == LOADSTONE || \
|
||||
|
||||
Reference in New Issue
Block a user