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

Function see_lamp_flicker

src/timeout.c:1344–1356  ·  view source on GitHub ↗

Print a lamp flicker message with tailer. Only called if seen. */

Source from the content-addressed store, hash-verified

1342
1343/* Print a lamp flicker message with tailer. Only called if seen. */
1344staticfn void
1345see_lamp_flicker(struct obj *obj, const char *tailer)
1346{
1347 switch (obj->where) {
1348 case OBJ_INVENT:
1349 case OBJ_MINVENT:
1350 pline("%s flickers%s.", Yname2(obj), tailer);
1351 break;
1352 case OBJ_FLOOR:
1353 You_see("%s flicker%s.", an(xname(obj)), tailer);
1354 break;
1355 }
1356}
1357
1358/* Print a dimming message for brass lanterns. Only called if seen. */
1359staticfn void

Callers 1

burn_objectFunction · 0.85

Calls 5

Yname2Function · 0.85
You_seeFunction · 0.85
anFunction · 0.85
xnameFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected