MCPcopy Create free account
hub / github.com/NetHack/NetHack / hates_silver

Function hates_silver

src/mondata.c:523–529  ·  view source on GitHub ↗

True if monster-type is especially affected by silver weapons */

Source from the content-addressed store, hash-verified

521
522/* True if monster-type is especially affected by silver weapons */
523boolean
524hates_silver(struct permonst *ptr)
525{
526 return (boolean) (is_were(ptr) || ptr->mlet == S_VAMPIRE || is_demon(ptr)
527 || ptr == &mons[PM_SHADE]
528 || (ptr->mlet == S_IMP && ptr != &mons[PM_TENGU]));
529}
530
531/* True if specific monster is especially affected by blessed objects */
532boolean

Callers 1

mon_hates_silverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected