Timeout callback. Revive the corpse as a zombie. */
| 2296 | |
| 2297 | /* Timeout callback. Revive the corpse as a zombie. */ |
| 2298 | void |
| 2299 | zombify_mon(anything *arg, long timeout) |
| 2300 | { |
| 2301 | struct obj *body = arg->a_obj; |
| 2302 | int zmon = zombie_form(&mons[body->corpsenm]); |
| 2303 | |
| 2304 | if (zmon != NON_PM && !(svm.mvitals[zmon].mvflags & G_GENOD)) { |
| 2305 | if (has_omid(body)) |
| 2306 | free_omid(body); |
| 2307 | if (has_omonst(body)) |
| 2308 | free_omonst(body); |
| 2309 | |
| 2310 | set_corpsenm(body, zmon); |
| 2311 | revive_mon(arg, timeout); |
| 2312 | } else { |
| 2313 | rot_corpse(arg, timeout); |
| 2314 | } |
| 2315 | } |
| 2316 | |
| 2317 | /* return TRUE if hero properties are dangerous to hero */ |
| 2318 | staticfn boolean |
nothing calls this directly
no test coverage detected