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

Function candy_wrapper_text

src/read.c:295–300  ·  view source on GitHub ↗

return the text of a candy bar's wrapper */

Source from the content-addressed store, hash-verified

293
294/* return the text of a candy bar's wrapper */
295const char *
296candy_wrapper_text(struct obj *obj)
297{
298 /* modulo operation is just bullet proofing; 'spe' is already in range */
299 return candy_wrappers[obj->spe % SIZE(candy_wrappers)];
300}
301
302/* assign a wrapper to a candy bar stack */
303void

Callers 2

xname_flagsFunction · 0.85
doreadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected