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

Function wake_msg

src/mon.c:4321–4329  ·  view source on GitHub ↗

Indicate via message that a monster has awoken. */

Source from the content-addressed store, hash-verified

4319
4320/* Indicate via message that a monster has awoken. */
4321void
4322wake_msg(struct monst *mtmp, boolean interesting)
4323{
4324 if (mtmp->msleeping && canseemon(mtmp)) {
4325 pline_mon(mtmp, "%s wakes up%s%s",
4326 Monnam(mtmp), interesting ? "!" : ".",
4327 mtmp->data == &mons[PM_FLESH_GOLEM] ? " It's alive!" : "");
4328 }
4329}
4330
4331/* wake up a monster, possibly making it angry in the process */
4332void

Callers 4

check_special_roomFunction · 0.85
wakeupFunction · 0.85
wake_nearto_coreFunction · 0.85
disturbFunction · 0.85

Calls 3

canseemonFunction · 0.85
pline_monFunction · 0.85
MonnamFunction · 0.85

Tested by

no test coverage detected