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

Function foodword

src/eat.c:2497–2506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2495};
2496
2497staticfn const char *
2498foodword(struct obj *otmp)
2499{
2500 if (otmp->oclass == FOOD_CLASS)
2501 return "food";
2502 if (otmp->oclass == GEM_CLASS && objects[otmp->otyp].oc_material == GLASS
2503 && otmp->dknown)
2504 makeknown(otmp->otyp);
2505 return foodwords[objects[otmp->otyp].oc_material];
2506}
2507
2508/* called after consuming (non-corpse) food */
2509staticfn void

Callers 3

chokeFunction · 0.85
rottenfoodFunction · 0.85
doeat_nonfoodFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected