| 2032 | } |
| 2033 | |
| 2034 | staticfn void |
| 2035 | seffect_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 | |
| 2045 | staticfn void |
| 2046 | seffect_food_detection(struct obj **sobjp) |
no test coverage detected