potion-from-sink and the corpsenm field

Change the code involved to use a new #define for the field, like other
overloaded uses of corpsenm.  Also remove one check for this field from
potion.c: there are no blessed potions from sinks.
This commit is contained in:
cohrs
2003-09-30 18:55:02 +00:00
parent 2d8bc8875e
commit 1e2d502ac6
5 changed files with 8 additions and 10 deletions

View File

@@ -96,7 +96,8 @@ struct obj {
int corpsenm; /* type of corpse is mons[corpsenm] */
#define leashmon corpsenm /* gets m_id of attached pet */
#define spestudied corpsenm /* how many times a spellbook has been studied */
#define spestudied corpsenm /* # of times a spellbook has been studied */
#define fromsink corpsenm /* a potion from a sink */
unsigned oeaten; /* nutrition left in food, if partly eaten */
long age; /* creation date */