Revert "ranged_attk() - there can be only one"

This reverts commit b399e3f2f5.
This commit is contained in:
nhmall
2022-11-05 15:26:29 -04:00
parent b399e3f2f5
commit 242c05ccf3
3 changed files with 23 additions and 8 deletions
+12
View File
@@ -302,6 +302,18 @@ can_blnd(
return TRUE;
}
/* returns True if monster can attack at range */
boolean
ranged_attk(struct permonst* ptr)
{
int i;
for (i = 0; i < NATTK; i++)
if (DISTANCE_ATTK_TYPE(ptr->mattk[i].aatyp))
return TRUE;
return FALSE;
}
/* True if specific monster is especially affected by silver weapons */
boolean
mon_hates_silver(struct monst *mon)