Macros for checking is object artifact
This commit is contained in:
@@ -266,7 +266,7 @@ mk_mplayer(struct permonst *ptr, coordxy x, coordxy y, boolean special)
|
||||
&& monmightthrowwep(otmp))
|
||||
otmp->quan += (long) rn2(is_spear(otmp) ? 4 : 8);
|
||||
/* mplayers knew better than to overenchant Magicbane */
|
||||
if (otmp->oartifact == ART_MAGICBANE)
|
||||
if (is_art(otmp, ART_MAGICBANE))
|
||||
otmp->spe = rnd(4);
|
||||
(void) mpickobj(mtmp, otmp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user