| 1140 | } |
| 1141 | |
| 1142 | staticfn void |
| 1143 | revive_egg(struct obj *obj) /* nonnull */ |
| 1144 | { |
| 1145 | /* |
| 1146 | * Note: generic eggs with corpsenm set to NON_PM will never hatch. |
| 1147 | */ |
| 1148 | if (obj->otyp != EGG) |
| 1149 | return; |
| 1150 | if (obj->corpsenm != NON_PM && !dead_species(obj->corpsenm, TRUE)) |
| 1151 | attach_egg_hatch_timeout(obj, 0L); |
| 1152 | } |
| 1153 | |
| 1154 | /* try to revive all corpses and eggs carried by `mon' */ |
| 1155 | int |
no test coverage detected