| 898 | } |
| 899 | |
| 900 | staticfn void |
| 901 | peffect_sleeping(struct obj *otmp) |
| 902 | { |
| 903 | if (Sleep_resistance || Free_action) { |
| 904 | monstseesu(M_SEEN_SLEEP); |
| 905 | You("yawn."); |
| 906 | } else { |
| 907 | You("suddenly fall asleep!"); |
| 908 | monstunseesu(M_SEEN_SLEEP); |
| 909 | fall_asleep(-rn1(10, 25 - 12 * bcsign(otmp)), TRUE); |
| 910 | } |
| 911 | } |
| 912 | |
| 913 | staticfn int |
| 914 | peffect_monster_detection(struct obj *otmp) |
no test coverage detected