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

Function breaksink

src/fountain.c:580–591  ·  view source on GitHub ↗

convert a sink into a fountain */

Source from the content-addressed store, hash-verified

578
579/* convert a sink into a fountain */
580void
581breaksink(coordxy x, coordxy y)
582{
583 if (cansee(x, y) || u_at(x, y))
584 pline_The("pipes break! Water spurts out!");
585 /* updates level.flags.nsinks and level.flags.nfountains */
586 set_levltyp(x, y, FOUNTAIN);
587 levl[x][y].looted = 0;
588 levl[x][y].blessedftn = 0;
589 SET_FOUNTAIN_LOOTED(x, y);
590 newsym(x, y);
591}
592
593/* quaff from a sink while standing on its location */
594void

Callers 3

furniture_handledFunction · 0.85
drinksinkFunction · 0.85
dipsinkFunction · 0.85

Calls 3

pline_TheFunction · 0.85
set_levltypFunction · 0.85
newsymFunction · 0.85

Tested by

no test coverage detected