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

Function sticks

src/mondata.c:653–659  ·  view source on GitHub ↗

creature sticks other creatures it hits */

Source from the content-addressed store, hash-verified

651
652/* creature sticks other creatures it hits */
653boolean
654sticks(struct permonst *ptr)
655{
656 return (boolean) (dmgtype(ptr, AD_STCK)
657 || (dmgtype(ptr, AD_WRAP) && !attacktype(ptr, AT_ENGL))
658 || attacktype(ptr, AT_HUGS));
659}
660
661/* some monster-types can't vomit */
662boolean

Callers 15

savelifeFunction · 0.85
dositFunction · 0.85
known_hitumFunction · 0.85
mhitm_ad_stckFunction · 0.85
mhitm_ad_wrapFunction · 0.85
mhitm_ad_physFunction · 0.85
mhitm_knockbackFunction · 0.85
hmonasFunction · 0.85
u_stuck_cannot_goFunction · 0.85
Mb_hitFunction · 0.85
escape_from_sticky_monFunction · 0.85
slept_monstFunction · 0.85

Calls 2

dmgtypeFunction · 0.85
attacktypeFunction · 0.85

Tested by

no test coverage detected