document obj->owornmask
ship_object() and obj_delivery() use obj->owornmask for something other than tracking what slot(s) an object is worn in.
This commit is contained in:
@@ -133,14 +133,19 @@ struct obj {
|
||||
#define spestudied usecount /* # of times a spellbook has been studied */
|
||||
unsigned oeaten; /* nutrition left in food, if partly eaten */
|
||||
long age; /* creation date */
|
||||
long owornmask;
|
||||
long owornmask; /* bit mask indicating which equipment slot(s) an
|
||||
* item is worn in [by hero or by monster; could
|
||||
* indicate more than one bit: attached iron ball
|
||||
* that's also wielded];
|
||||
* overloaded for the destination of migrating
|
||||
* objects (which can't be worn at same time) */
|
||||
unsigned lua_ref_cnt; /* # of lua script references for this object */
|
||||
xchar omigr_from_dnum; /* where obj is migrating from */
|
||||
xchar omigr_from_dlevel; /* where obj is migrating from */
|
||||
struct oextra *oextra; /* pointer to oextra struct */
|
||||
};
|
||||
|
||||
#define newobj() (struct obj *) alloc(sizeof(struct obj))
|
||||
#define newobj() (struct obj *) alloc(sizeof (struct obj))
|
||||
|
||||
/***
|
||||
** oextra referencing and testing macros
|
||||
|
||||
Reference in New Issue
Block a user