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

Function do_stone_u

src/uhitm.c:3923–3942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3921}
3922
3923boolean
3924do_stone_u(struct monst *mtmp)
3925{
3926 if (!Stoned && !Stone_resistance
3927 && !(poly_when_stoned(gy.youmonst.data)
3928 && polymon(PM_STONE_GOLEM))) {
3929 int kformat = KILLED_BY_AN;
3930 const char *kname = pmname(mtmp->data, Mgender(mtmp));
3931
3932 if (mtmp->data->geno & G_UNIQ) {
3933 if (!type_is_pname(mtmp->data))
3934 kname = the(kname);
3935 kformat = KILLED_BY;
3936 }
3937 make_stoned(5L, (char *) 0, kformat, kname);
3938 return 1;
3939 /* done_in_by(mtmp, STONING); */
3940 }
3941 return 0;
3942}
3943
3944void
3945do_stone_mon(

Callers 2

mhitm_ad_physFunction · 0.85
mhitm_ad_stonFunction · 0.85

Calls 6

poly_when_stonedFunction · 0.85
polymonFunction · 0.85
pmnameFunction · 0.85
MgenderFunction · 0.85
theFunction · 0.85
make_stonedFunction · 0.85

Tested by

no test coverage detected