(coordxy, coordxy, genericptr_t)
| 10 | staticfn void dowaterdemon(void); |
| 11 | staticfn void dowaternymph(void); |
| 12 | staticfn void gush(coordxy, coordxy, genericptr_t) NONNULLARG3; |
| 13 | staticfn void dofindgem(void); |
| 14 | staticfn boolean watchman_warn_fountain(struct monst *) NONNULLARG1; |
| 15 | |
| 16 | DISABLE_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 */ |
| 20 | void |
| 21 | floating_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 |
nothing calls this directly
no test coverage detected