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

Function dogushforth

src/fountain.c:119–131  ·  view source on GitHub ↗

Gushing forth along LOS from (u.ux, u.uy) */

Source from the content-addressed store, hash-verified

117
118/* Gushing forth along LOS from (u.ux, u.uy) */
119void
120dogushforth(int drinking)
121{
122 int madepool = 0;
123
124 do_clear_area(u.ux, u.uy, 7, gush, (genericptr_t) &madepool);
125 if (!madepool) {
126 if (drinking)
127 Your("thirst is quenched.");
128 else
129 pline("Water sprays all over you.");
130 }
131}
132
133staticfn void
134gush(coordxy x, coordxy y, genericptr_t poolcnt)

Callers 3

furniture_handledFunction · 0.85
drinkfountainFunction · 0.85
dipfountainFunction · 0.85

Calls 3

do_clear_areaFunction · 0.85
YourFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected