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

Function wizdeadorgone

src/wizard.c:814–822  ·  view source on GitHub ↗

Wizard of Yendor is being removed from play (dead or escaped the dungeon); keep the bookkeeping for him up to date */

Source from the content-addressed store, hash-verified

812/* Wizard of Yendor is being removed from play (dead or escaped the dungeon);
813 keep the bookkeeping for him up to date */
814void
815wizdeadorgone(void)
816{
817 svc.context.no_of_wizards--;
818 if (!u.uevent.udemigod) {
819 u.uevent.udemigod = TRUE;
820 u.udg_cnt = rn1(250, 50);
821 }
822}
823
824static const char *const random_insult[] = {
825 "antic", "blackguard", "caitiff", "chucklehead",

Callers 1

m_detachFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected