TRUE if the monster ate something */
| 2881 | |
| 2882 | /* TRUE if the monster ate something */ |
| 2883 | boolean |
| 2884 | munstone(struct monst *mon, boolean by_you) |
| 2885 | { |
| 2886 | struct obj *obj; |
| 2887 | boolean tinok; |
| 2888 | |
| 2889 | if (resists_ston(mon)) |
| 2890 | return FALSE; |
| 2891 | if (mon->meating || helpless(mon)) |
| 2892 | return FALSE; |
| 2893 | mon->mstrategy &= ~STRAT_WAITFORU; |
| 2894 | |
| 2895 | tinok = mcould_eat_tin(mon); |
| 2896 | for (obj = mon->minvent; obj; obj = obj->nobj) { |
| 2897 | if (cures_stoning(mon, obj, tinok)) { |
| 2898 | mon_consume_unstone(mon, obj, by_you, TRUE); |
| 2899 | return TRUE; |
| 2900 | } |
| 2901 | } |
| 2902 | return FALSE; |
| 2903 | } |
| 2904 | |
| 2905 | staticfn void |
| 2906 | mon_consume_unstone( |
no test coverage detected