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

Function seffect_gold_detection

src/read.c:2034–2043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2032}
2033
2034staticfn void
2035seffect_gold_detection(struct obj **sobjp)
2036{
2037 struct obj *sobj = *sobjp;
2038 boolean scursed = sobj->cursed;
2039 boolean confused = (Confusion != 0);
2040
2041 if ((confused || scursed) ? trap_detect(sobj) : gold_detect(sobj))
2042 *sobjp = 0; /* failure: strange_feeling() -> useup() */
2043}
2044
2045staticfn void
2046seffect_food_detection(struct obj **sobjp)

Callers 1

seffectsFunction · 0.85

Calls 2

trap_detectFunction · 0.85
gold_detectFunction · 0.85

Tested by

no test coverage detected