added detonate before next level
This commit is contained in:
2
farm.py
2
farm.py
@@ -188,6 +188,8 @@ class Farm:
|
||||
rectangles = self.vision_stun.find(screen, needle, 0.70, 1)
|
||||
if len(rectangles) == 0:
|
||||
return False
|
||||
if self.detonate_explosive_when_stuck(self.observation):
|
||||
return True
|
||||
point = self.vision_stun.get_click_points(rectangles)[0]
|
||||
self.dig_point(point[0]+ offset_left, point[1] + offset_down, 500)
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user