Make hostile monsters with launcher and ammo keep away

If a hostile monster is wielding a ranged weapon, and is carrying
appropriate ammo for it, make the monster try to stay away,
outside the melee range.
This commit is contained in:
Pasi Kallinen
2020-04-14 15:19:26 +03:00
parent ffb9540295
commit bddb80f13c
4 changed files with 24 additions and 0 deletions

View File

@@ -1660,6 +1660,7 @@ E void FDECL(Delay, (int));
/* ### mthrowu.c ### */
E boolean FDECL(m_has_launcher_and_ammo, (struct monst *));
E int FDECL(thitu, (int, int, struct obj **, const char *));
E int FDECL(ohitmon, (struct monst *, struct obj *, int, BOOLEAN_P));
E void FDECL(thrwmu, (struct monst *));