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

Function leader_speaks

src/quest.c:370–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370void
371leader_speaks(struct monst *mtmp)
372{
373 /* maybe you attacked leader? */
374 if (!mtmp->mpeaceful) {
375 if (!Qstat(pissed_off)) {
376 /* again, don't end it permanently if the leader gets angry
377 * since you're going to have to kill him to go questing... :)
378 * ...but do only show this crap once. */
379 qt_pager("leader_last");
380 }
381 Qstat(pissed_off) = TRUE;
382 mtmp->mstrategy &= ~STRAT_WAITMASK; /* end the inaction */
383 }
384 /* the quest leader might have passed through the portal into the
385 regular dungeon; if so, mustn't perform "backwards expulsion" */
386 if (!on_level(&u.uz, &qstart_level))
387 return;
388
389 if (!Qstat(pissed_off))
390 chat_with_leader(mtmp);
391}
392
393staticfn void
394chat_with_nemesis(void)

Callers 1

quest_talkFunction · 0.85

Calls 3

qt_pagerFunction · 0.85
on_levelFunction · 0.85
chat_with_leaderFunction · 0.85

Tested by

no test coverage detected