Minor ranged attack tweak

Make monsters with magic and gaze attacks avoid hero,
just like spitters and breathers already did.
Some small code cleanup related to the ranged attacks.
This commit is contained in:
Pasi Kallinen
2022-08-07 22:31:41 +03:00
parent 2b51a22c6c
commit b635160297
3 changed files with 15 additions and 20 deletions

View File

@@ -28,6 +28,11 @@
#define AT_WEAP 254 /* uses weapon */
#define AT_MAGC 255 /* uses magic spell(s) */
#define DISTANCE_ATTK_TYPE(atyp) ((atyp) == AT_SPIT \
|| (atyp) == AT_BREA \
|| (atyp) == AT_MAGC \
|| (atyp) == AT_GAZE)
/* Add new damage types below.
*
* Note that 1-10 correspond to the types of attack used in buzz().