start or stop petrification */
| 219 | |
| 220 | /* start or stop petrification */ |
| 221 | void |
| 222 | make_stoned(long xtime, const char *msg, int killedby, const char *killername) |
| 223 | { |
| 224 | long old = Stoned; |
| 225 | |
| 226 | #if 0 /* tell player even if hero is unconscious */ |
| 227 | if (Unaware) |
| 228 | msg = 0; |
| 229 | #endif |
| 230 | set_itimeout(&Stoned, xtime); |
| 231 | if ((xtime != 0L) ^ (old != 0L)) { |
| 232 | disp.botl = TRUE; |
| 233 | if (msg) |
| 234 | pline("%s", msg); |
| 235 | } |
| 236 | if (!Stoned) |
| 237 | dealloc_killer(find_delayed_killer(STONED)); |
| 238 | else if (!old) |
| 239 | delayed_killer(STONED, killedby, killername); |
| 240 | } |
| 241 | |
| 242 | void |
| 243 | make_vomiting(long xtime, boolean talk) |
no test coverage detected