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

Function eating_glob

src/eat.c:2077–2081  ·  view source on GitHub ↗

used by shrink_glob() timer routine */

Source from the content-addressed store, hash-verified

2075
2076/* used by shrink_glob() timer routine */
2077boolean
2078eating_glob(struct obj *glob)
2079{
2080 return (go.occupation == eatfood && glob == svc.context.victual.piece);
2081}
2082
2083/* scare nearby monster when hero eats garlic */
2084staticfn void

Callers 1

shrink_globFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected