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

Function dowaternymph

src/fountain.c:93–116  ·  view source on GitHub ↗

Water Nymph */

Source from the content-addressed store, hash-verified

91
92/* Water Nymph */
93staticfn void
94dowaternymph(void)
95{
96 struct monst *mtmp;
97
98 if (!(svm.mvitals[PM_WATER_NYMPH].mvflags & G_GONE)
99 && (mtmp = makemon(&mons[PM_WATER_NYMPH], u.ux, u.uy,
100 MM_NOMSG)) != 0) {
101 if (!Blind)
102 You("attract %s!", a_monnam(mtmp));
103 else
104 You_hear("a seductive voice.");
105 mtmp->msleeping = 0;
106 if (t_at(mtmp->mx, mtmp->my))
107 (void) mintrap(mtmp, NO_TRAP_FLAGS);
108 } else if (!Blind) {
109 Soundeffect(se_bubble_rising, 50);
110 Soundeffect(se_loud_pop, 50);
111 pline("A large bubble rises to the surface and pops.");
112 } else {
113 Soundeffect(se_loud_pop, 50);
114 You_hear("a loud pop.");
115 }
116}
117
118/* Gushing forth along LOS from (u.ux, u.uy) */
119void

Callers 2

drinkfountainFunction · 0.85
dipfountainFunction · 0.85

Calls 7

makemonFunction · 0.85
YouFunction · 0.85
a_monnamFunction · 0.85
You_hearFunction · 0.85
t_atFunction · 0.85
mintrapFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected