ranged_attk() - there can be only one

Relocate the newer code for the function to mdlib.c
where makedefs can still use it.
This commit is contained in:
nhmall
2022-11-05 13:07:10 -04:00
parent eeedff9478
commit b399e3f2f5
3 changed files with 8 additions and 23 deletions

View File

@@ -302,18 +302,6 @@ 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)