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

Function showdamage

src/hack.c:4246–4253  ·  view source on GitHub ↗

show a message how much damage you received */

Source from the content-addressed store, hash-verified

4244
4245/* show a message how much damage you received */
4246void
4247showdamage(int dmg)
4248{
4249 if (!iflags.showdamage || !dmg)
4250 return;
4251
4252 pline("[HP %i, %i left]", -dmg, Upolyd ? u.mh : u.uhp);
4253}
4254
4255void
4256losehp(int n, const char *knam, schar k_format)

Callers 2

losehpFunction · 0.85
mdamageuFunction · 0.85

Calls 1

plineFunction · 0.70

Tested by

no test coverage detected