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

Function unleash_all

src/apply.c:745–756  ·  view source on GitHub ↗

player is about to die (for bones) */

Source from the content-addressed store, hash-verified

743
744/* player is about to die (for bones) */
745void
746unleash_all(void)
747{
748 struct obj *otmp;
749 struct monst *mtmp;
750
751 for (otmp = gi.invent; otmp; otmp = otmp->nobj)
752 if (otmp->otyp == LEASH)
753 otmp->leashmon = 0;
754 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon)
755 mtmp->mleashed = 0;
756}
757
758#define MAXLEASHED 2
759

Callers 4

savebonesFunction · 0.85
drownFunction · 0.85
gulpmuFunction · 0.85
finish_paybillFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected