Move radius and angle limits into ray manager.
[tabakrolletjie.git] / tabakrolletjie / enemies.py
index a4ed7b73432e67f7ef54027b6d1674791c8debd0..d40af93750b64be2592558d14e13c45242b2ba2d 100644 (file)
@@ -126,11 +126,6 @@ class Mould(pymunk.Body):
 
     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