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

Function dmgtype

src/mondata.c:711–715  ·  view source on GitHub ↗

does monster-type deal out a particular type of damage from any attack */

Source from the content-addressed store, hash-verified

709
710/* does monster-type deal out a particular type of damage from any attack */
711boolean
712dmgtype(struct permonst *ptr, int dtyp)
713{
714 return dmgtype_fromattack(ptr, dtyp, AT_ANY) ? TRUE : FALSE;
715}
716
717/* returns the maximum damage a defender can do to the attacker via
718 a passive defense */

Callers 15

resists_magmFunction · 0.85
passes_barsFunction · 0.85
sticksFunction · 0.85
stealarmFunction · 0.85
potionhitFunction · 0.85
attack_checksFunction · 0.85
mhitm_ad_seduFunction · 0.85
stumble_onto_mimicFunction · 0.85
test_moveFunction · 0.85
rustmFunction · 0.85
set_uasmonFunction · 0.85
cpostfxFunction · 0.85

Calls 1

dmgtype_fromattackFunction · 0.85

Tested by 1

test_moveFunction · 0.68