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

Function breathwep_name

src/mthrowu.c:1082–1089  ·  view source on GitHub ↗

Return the name of a breath weapon. If the player is hallucinating, return * a silly name instead. * typ is AD_MAGM, AD_FIRE, etc */

Source from the content-addressed store, hash-verified

1080 * a silly name instead.
1081 * typ is AD_MAGM, AD_FIRE, etc */
1082staticfn const char *
1083breathwep_name(int typ)
1084{
1085 if (Hallucination)
1086 return rnd_hallublast();
1087
1088 return breathwep[BZ_OFS_AD(typ)];
1089}
1090
1091/* monster breathes at monster (ranged) */
1092int

Callers 1

breammFunction · 0.85

Calls 1

rnd_hallublastFunction · 0.85

Tested by

no test coverage detected