/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* def.obj.h - version 1.0.3 */
unsigned o_cnt_id
; /* id of container object is in */
uchar quan
; /* use oextra for tmp gold objects */
schar spe
; /* quality of weapon, armor or ring (+ or -)
number of charges for wand ( >= -1 )
special for uball and amulet %% BAH */
Bitfield(oinvis
,1); /* not yet implemented */
Bitfield(known
,1); /* exact nature known */
Bitfield(dknown
,1); /* color or text known */
Bitfield(unpaid
,1); /* on some bill */
long age
; /* creation date */
#define W_ARMOR (W_ARM | W_ARM2 | W_ARMH | W_ARMS | W_ARMG)
#define W_RINGL 010000L /* make W_RINGL = RING_LEFT (see uprop) */
#define W_RING (W_RINGL | W_RINGR)
long oextra
[1]; /* used for name of ordinary objects - length
is flexible; amount for tmp gold objects */
#define newobj(xl) (struct obj *) alloc((unsigned)(xl) + sizeof(struct obj))
#define ONAME(otmp) ((char *) otmp->oextra)
#define OGOLD(otmp) (otmp->oextra[0])