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

Function ghostfruit

src/restore.c:499–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497
498#ifndef SFCTOOL
499staticfn void
500ghostfruit(struct obj *otmp)
501{
502 struct fruit *oldf;
503
504 for (oldf = go.oldfruit; oldf; oldf = oldf->nextf)
505 if (oldf->fid == otmp->spe)
506 break;
507
508 if (!oldf)
509 impossible("no old fruit?");
510 else
511 otmp->spe = fruitadd(oldf->fname, (struct fruit *) 0);
512}
513#endif /* !SFCTOOL */
514
515#ifdef SYSCF

Callers 1

restobjchnFunction · 0.85

Calls 2

fruitaddFunction · 0.85
impossibleFunction · 0.70

Tested by

no test coverage detected