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

Function forget_temple_entry

src/priest.c:540–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538}
539
540RESTORE_WARNING_FORMAT_NONLITERAL
541
542/* reset the move counters used to limit temple entry feedback;
543 leaving the level and then returning yields a fresh start */
544void
545forget_temple_entry(struct monst *priest)
546{
547 struct epri *epri_p = priest->ispriest ? EPRI(priest) : 0;
548
549 if (!epri_p) {
550 impossible("attempting to manipulate shrine data for non-priest?");
551 return;
552 }
553 epri_p->intone_time = epri_p->enter_time = epri_p->peaceful_time =
554 epri_p->hostile_time = 0L;
555}
556
557void
558priest_talk(struct monst *priest)

Callers 2

save_mtraitsFunction · 0.85
savemonchnFunction · 0.85

Calls 1

impossibleFunction · 0.70

Tested by

no test coverage detected