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

Function flash_mon

src/mon.c:6066–6079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6064}
6065
6066void
6067flash_mon(struct monst *mtmp)
6068{
6069 coordxy mx = mtmp->mx, my = mtmp->my;
6070 int count = couldsee(mx, my) ? 8 : 4;
6071 char saveviz = gv.viz_array[my][mx];
6072
6073 if (!flags.sparkle)
6074 count /= 2;
6075 gv.viz_array[my][mx] |= (IN_SIGHT | COULD_SEE);
6076 flash_glyph_at(mx, my, mon_to_glyph(mtmp, newsym_rn2), count);
6077 gv.viz_array[my][mx] = saveviz;
6078 newsym(mx, my);
6079}
6080
6081/* cleanup for 'onefile' processing */
6082#undef LEVEL_SPECIFIC_NOCORPSE

Callers 2

mreadmsgFunction · 0.85

Calls 2

flash_glyph_atFunction · 0.85
newsymFunction · 0.85

Tested by

no test coverage detected