MCPcopy Index your code
hub / github.com/NetHack/NetHack / currency

Function currency

src/invent.c:1545–1554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1543};
1544
1545const char *
1546currency(long amount)
1547{
1548 const char *res;
1549
1550 res = Hallucination ? ROLL_FROM(currencies) : "zorkmid";
1551 if (amount != 1L)
1552 res = makeplural(res);
1553 return res;
1554}
1555
1556struct obj *
1557u_carried_gloves(void)

Callers 15

artifact_scoreFunction · 0.85
really_doneFunction · 0.85
gold_detectFunction · 0.85
domonnoiseFunction · 0.85
doname_baseFunction · 0.85
bury_objsFunction · 0.85
breakchestlockFunction · 0.85
xprnameFunction · 0.85
doprgoldFunction · 0.85
demon_talkFunction · 0.85
bribeFunction · 0.85
use_containerFunction · 0.85

Calls 1

makepluralFunction · 0.85

Tested by

no test coverage detected