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

Function seffect_punishment

src/read.c:1975–1988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1973}
1974
1975staticfn void
1976seffect_punishment(struct obj **sobjp)
1977{
1978 struct obj *sobj = *sobjp;
1979 boolean sblessed = sobj->blessed;
1980 boolean confused = (Confusion != 0);
1981
1982 gk.known = TRUE;
1983 if (confused || sblessed) {
1984 You_feel("guilty.");
1985 return;
1986 }
1987 punish(sobj);
1988}
1989
1990staticfn void
1991seffect_stinking_cloud(struct obj **sobjp)

Callers 1

seffectsFunction · 0.85

Calls 2

You_feelFunction · 0.85
punishFunction · 0.85

Tested by

no test coverage detected