dragon armor properties
Special abilities conferred by wearing dragon armor was implemented in a somewhat half-assed fashion; extend it to 3/4-assed. Abilities came from wearing dragon armor but not from being poly'd into a dragon or for monsters that were wearing dragon armor or actually were dragons. This covers much of that. There are umpteen calls of 'resists_foo(mon)' and some are now 'resists_foo(mon) || defended(mon, AD_FOO)' but the second part ought to be incorporated into update_mon_intrinics() so that the extra '|| defended()' doesn't have to be spread all over the place and the ones being put in now could/should be removed. While testing, I noticed that a monster wielding Fire Brand did not resist being hit by a wand of fire. This fixes that and should also fix various comparable situations for other artifacts. But so far it has only been done for zapping (and any other actions which use the zapping code). Folding defended() checks into update_mon_intrinsics() matters more than that probably sounds.
This commit is contained in:
@@ -1495,6 +1495,7 @@ extern struct attack *attacktype_fordmg(struct permonst *, int, int);
|
||||
extern boolean attacktype(struct permonst *, int);
|
||||
extern boolean noattacks(struct permonst *);
|
||||
extern boolean poly_when_stoned(struct permonst *);
|
||||
extern boolean defended(struct monst *, int);
|
||||
extern boolean resists_drli(struct monst *);
|
||||
extern boolean resists_magm(struct monst *);
|
||||
extern boolean resists_blnd(struct monst *);
|
||||
|
||||
Reference in New Issue
Block a user