def damage(self, light, space, moulds):
"""Take damage for light, adjusted for resistances."""
- distance = light.position.get_distance(self.position)
- if distance < (light.radius_limits[0] or 0.0):
- return False
- if distance > (light.radius_limits[1] or 50.0):
- return False
self._health -= 3
if self._health <= 0 and self._age <= 120:
# We die of damage