Skip to content

Cockroaches no longer spam useless, dead eggs + tiny nerf

Rob Nelson requested to merge pull/7288/BUGfix_he into Bleeding-Edge

Created by: unid15

Roaches breed slightly slower, no longer create THOUSANDS of useless eggs

  • Chance of roaches laying eggs when found a good place is 75% (previously 100%). Quarter of that if the place is trash.
  • Chance of roach eggs being hatchable is 100% (previously 75%), unless there are more than 50 roaches
  • Roaches stop laying eggs after making 30 unhatchable eggs. They'll start laying eggs again once they can make hatchable eggs (i.e. their population goes down)
  • Roach eggs hatch slightly slower (from 10-30 ticks to 20-40 ticks)
  • Added is_in_valid_nest(egg) macro used by cockroach and chicken eggs. It checks if egg's location is a turf. It's called in process() of fertilized eggs, if it returns 0 the eggs are no longer be able to hatch.
  • Fixes #7286 (closed)

Merge request reports