Test cvs script patch mailer

Move an is_elven_* macro definition to the same spot as the other ones
so future elven equipment changes can be done in one place.
This commit is contained in:
nethack.allison
2003-01-17 03:40:47 +00:00
parent e9c25be839
commit d3dfe5dfc8
2 changed files with 7 additions and 8 deletions

View File

@@ -185,6 +185,12 @@ struct obj {
|| (otmp)->otyp == ELVEN_CLOAK\
|| (otmp)->otyp == ELVEN_SHIELD\
|| (otmp)->otyp == ELVEN_BOOTS)
#define is_elven_weapon(otmp) ((otmp)->otyp == ELVEN_ARROW\
|| (otmp)->otyp == ELVEN_SPEAR\
|| (otmp)->otyp == ELVEN_DAGGER\
|| (otmp)->otyp == ELVEN_SHORT_SWORD\
|| (otmp)->otyp == ELVEN_BROADSWORD\
|| (otmp)->otyp == ELVEN_BOW)
#define is_orcish_armor(otmp) ((otmp)->otyp == ORCISH_HELM\
|| (otmp)->otyp == ORCISH_CHAIN_MAIL\
|| (otmp)->otyp == ORCISH_RING_MAIL\