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

Function odds_and_ends

src/end.c:829–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

827#define CAT_CHECK 2
828
829staticfn boolean
830odds_and_ends(struct obj *list, int what)
831{
832 struct obj *otmp;
833
834 for (otmp = list; otmp; otmp = otmp->nobj) {
835 switch (what) {
836 case CAT_CHECK: /* Schroedinger's Cat */
837 /* Ascending is deterministic */
838 if (SchroedingersBox(otmp))
839 return rn2(2);
840 break;
841 }
842 if (Has_contents(otmp))
843 return odds_and_ends(otmp->cobj, what);
844 }
845 return FALSE;
846}
847#endif
848
849/* deal with some objects which may be in an abnormal state at end of game */

Callers

nothing calls this directly

Calls 1

rn2Function · 0.85

Tested by

no test coverage detected