Unify unpolyable objects to single define
This commit is contained in:
@@ -356,6 +356,10 @@ struct obj {
|
||||
&& !undiscovered_artifact(ART_EYES_OF_THE_OVERWORLD)))
|
||||
#define pair_of(o) ((o)->otyp == LENSES || is_gloves(o) || is_boots(o))
|
||||
|
||||
#define unpolyable(o) ((o)->otyp == WAN_POLYMORPH \
|
||||
|| (o)->otyp == SPE_POLYMORPH \
|
||||
|| (o)->otyp == POT_POLYMORPH)
|
||||
|
||||
/* achievement tracking; 3.6.x did this differently */
|
||||
#define is_mines_prize(o) ((o)->o_id == g.context.achieveo.mines_prize_oid)
|
||||
#define is_soko_prize(o) ((o)->o_id == g.context.achieveo.soko_prize_oid)
|
||||
|
||||
Reference in New Issue
Block a user