MCPcopy Index your code
hub / github.com/NetHack/NetHack / attacktype

Function attacktype

src/mondata.c:53–57  ·  view source on GitHub ↗

does monster-type have a particular type of attack */

Source from the content-addressed store, hash-verified

51
52/* does monster-type have a particular type of attack */
53boolean
54attacktype(struct permonst *ptr, int atyp)
55{
56 return attacktype_fordmg(ptr, atyp, AD_ANY) ? TRUE : FALSE;
57}
58
59/* returns True if monster doesn't attack, False if it does */
60boolean

Callers 15

sticksFunction · 0.85
mpickobjFunction · 0.85
mhitm_knockbackFunction · 0.85
possibly_unwieldFunction · 0.85
Mb_hitFunction · 0.85
domove_fight_emptyFunction · 0.85
nastyFunction · 0.85
xdrainenergymFunction · 0.85
can_reach_floorFunction · 0.85
polymonFunction · 0.85
mbodypartFunction · 0.85
dog_inventFunction · 0.85

Calls 1

attacktype_fordmgFunction · 0.85

Tested by

no test coverage detected