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

Function quest_chat

src/quest.c:472–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470}
471
472void
473quest_chat(struct monst *mtmp)
474{
475 if (mtmp->m_id == Qstat(leader_m_id)) {
476 chat_with_leader(mtmp);
477 /* leader might have become pissed during the chat */
478 if (Qstat(pissed_off))
479 setmangry(mtmp, FALSE);
480 return;
481 }
482 switch (mtmp->data->msound) {
483 case MS_NEMESIS:
484 chat_with_nemesis();
485 break;
486 case MS_GUARDIAN:
487 chat_with_guardian();
488 break;
489 default:
490 impossible("quest_chat: Unknown quest character %s.", mon_nam(mtmp));
491 }
492}
493
494void
495quest_talk(struct monst *mtmp)

Callers 1

domonnoiseFunction · 0.85

Calls 6

chat_with_leaderFunction · 0.85
setmangryFunction · 0.85
chat_with_nemesisFunction · 0.85
chat_with_guardianFunction · 0.85
mon_namFunction · 0.85
impossibleFunction · 0.70

Tested by

no test coverage detected