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

Function gush

src/fountain.c:12–30  ·  view source on GitHub ↗
(coordxy, coordxy, genericptr_t)

Source from the content-addressed store, hash-verified

10staticfn void dowaterdemon(void);
11staticfn void dowaternymph(void);
12staticfn void gush(coordxy, coordxy, genericptr_t) NONNULLARG3;
13staticfn void dofindgem(void);
14staticfn boolean watchman_warn_fountain(struct monst *) NONNULLARG1;
15
16DISABLE_WARNING_FORMAT_NONLITERAL
17
18/* used when trying to dip in or drink from fountain or sink or pool while
19 levitating above it, or when trying to move downwards in that state */
20void
21floating_above(const char *what)
22{
23 const char *umsg = "are floating high above the %s.";
24
25 if (u.utrap && (u.utraptype == TT_INFLOOR || u.utraptype == TT_LAVA)) {
26 /* when stuck in floor (not possible at fountain or sink location,
27 so must be attempting to move down), override the usual message */
28 umsg = "are trapped in the %s.";
29 what = surface(u.ux, u.uy); /* probably redundant */
30 }
31 You(umsg, what);
32}
33

Callers

nothing calls this directly

Calls 13

surfaceFunction · 0.85
rn2Function · 0.85
distminFunction · 0.85
sobj_atFunction · 0.85
nexttodoorFunction · 0.85
t_atFunction · 0.85
delfloortrapFunction · 0.85
set_levltypFunction · 0.85
del_engr_atFunction · 0.85
water_damage_chainFunction · 0.85
minliquidFunction · 0.85
newsymFunction · 0.85

Tested by

no test coverage detected