| 104 | } |
| 105 | |
| 106 | void |
| 107 | make_stunned(long xtime, boolean talk) |
| 108 | { |
| 109 | long old = HStun; |
| 110 | |
| 111 | if (Unaware) |
| 112 | talk = FALSE; |
| 113 | |
| 114 | if (!xtime && old) { |
| 115 | if (talk) |
| 116 | You_feel("%s now.", |
| 117 | Hallucination ? "less wobbly" : "a bit steadier"); |
| 118 | } |
| 119 | if (xtime && !old) { |
| 120 | if (talk) { |
| 121 | if (u.usteed) |
| 122 | You("wobble in the saddle."); |
| 123 | else |
| 124 | You("%s...", stagger(gy.youmonst.data, "stagger")); |
| 125 | } |
| 126 | } |
| 127 | if ((!xtime && old) || (xtime && !old)) |
| 128 | disp.botl = TRUE; |
| 129 | |
| 130 | set_itimeout(&HStun, xtime); |
| 131 | } |
| 132 | |
| 133 | /* Sick is overloaded with both fatal illness and food poisoning (via |
| 134 | u.usick_type bit mask), but delayed killer can only support one or |
no test coverage detected