MCPcopy Create free account
hub / github.com/NetHack/NetHack / revive_egg

Function revive_egg

src/zap.c:1142–1152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1140}
1141
1142staticfn void
1143revive_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' */
1155int

Callers 2

unturn_deadFunction · 0.85
bhitoFunction · 0.85

Calls 2

dead_speciesFunction · 0.85
attach_egg_hatch_timeoutFunction · 0.85

Tested by

no test coverage detected