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

Function prisoner_speaks

src/quest.c:450–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448}
449
450staticfn void
451prisoner_speaks(struct monst *mtmp)
452{
453 if (mtmp->data == &mons[PM_PRISONER]
454 && (mtmp->mstrategy & STRAT_WAITMASK)) {
455 /* Awaken the prisoner */
456 if (canseemon(mtmp))
457 pline("%s speaks:", Monnam(mtmp));
458 SetVoice(mtmp, 0, 80, 0);
459 verbalize("I'm finally free!");
460 mtmp->mstrategy &= ~STRAT_WAITMASK;
461 mtmp->mpeaceful = 1;
462
463 /* Your god is happy... */
464 adjalign(3);
465
466 /* ...But the guards are not */
467 (void) angry_guards(FALSE);
468 }
469 return;
470}
471
472void
473quest_chat(struct monst *mtmp)

Callers 1

quest_talkFunction · 0.85

Calls 6

canseemonFunction · 0.85
MonnamFunction · 0.85
verbalizeFunction · 0.85
adjalignFunction · 0.85
angry_guardsFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected