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

Function dopoly

src/polyself.c:1876–1890  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1874}
1875
1876int
1877dopoly(void)
1878{
1879 struct permonst *savedat = gy.youmonst.data;
1880
1881 if (is_vampire(gy.youmonst.data) || is_vampshifter(&gy.youmonst)) {
1882 polyself(POLY_MONSTER);
1883 if (savedat != gy.youmonst.data) {
1884 You("transform into %s.",
1885 an(pmname(gy.youmonst.data, Ugender)));
1886 newsym(u.ux, u.uy);
1887 }
1888 }
1889 return ECMD_TIME;
1890}
1891
1892/* #monster for hero-as-mind_flayer giving psychic blast */
1893int

Callers 1

domonabilityFunction · 0.85

Calls 5

polyselfFunction · 0.85
YouFunction · 0.85
anFunction · 0.85
pmnameFunction · 0.85
newsymFunction · 0.85

Tested by

no test coverage detected