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

Function poly_when_stoned

src/mondata.c:79–86  ·  view source on GitHub ↗

does monster-type transform into something else when petrified? */

Source from the content-addressed store, hash-verified

77
78/* does monster-type transform into something else when petrified? */
79boolean
80poly_when_stoned(struct permonst *ptr)
81{
82 /* non-stone golems turn into stone golems unless latter is genocided */
83 return (boolean) (is_golem(ptr) && ptr != &mons[PM_STONE_GOLEM]
84 && !(svm.mvitals[PM_STONE_GOLEM].mvflags & G_GENOD));
85 /* allow G_EXTINCT */
86}
87
88/* is 'mon' (possibly youmonst) protected against damage type 'adtype' via
89 wielded weapon or worn dragon scales? [or by virtue of being a dragon?] */

Callers 15

theft_petrifiesFunction · 0.85
do_stone_uFunction · 0.85
do_stone_monFunction · 0.85
passiveFunction · 0.85
use_saddleFunction · 0.85
mdisplacemFunction · 0.85
mdamagemFunction · 0.85
toss_upFunction · 0.85
look_hereFunction · 0.85
feel_cockatriceFunction · 0.85
polymonFunction · 0.85
fatal_corpse_mistakeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected