| 192 | } |
| 193 | |
| 194 | void |
| 195 | make_slimed(long xtime, const char *msg) |
| 196 | { |
| 197 | long old = Slimed; |
| 198 | |
| 199 | #if 0 /* tell player even if hero is unconscious */ |
| 200 | if (Unaware) |
| 201 | msg = 0; |
| 202 | #endif |
| 203 | set_itimeout(&Slimed, xtime); |
| 204 | if ((xtime != 0L) ^ (old != 0L)) { |
| 205 | disp.botl = TRUE; |
| 206 | if (msg) |
| 207 | pline("%s", msg); |
| 208 | } |
| 209 | if (!Slimed) { |
| 210 | dealloc_killer(find_delayed_killer(SLIMED)); |
| 211 | /* fake appearance is set late in turn-to-slime countdown */ |
| 212 | if (U_AP_TYPE == M_AP_MONSTER |
| 213 | && gy.youmonst.mappearance == PM_GREEN_SLIME) { |
| 214 | gy.youmonst.m_ap_type = M_AP_NOTHING; |
| 215 | gy.youmonst.mappearance = 0; |
| 216 | } |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | /* start or stop petrification */ |
| 221 | void |
no test coverage detected