added r when flower not found
This commit is contained in:
1 parent
68660f7f73
commit
22cb2f41b6
1 file changed
+4
-1
+4
-1
@@ -357,7 +357,10 @@ class FlowerGameEnv(gym.Env):
|
||||
self.prev_dist_to_flower_nd = None
|
||||
|
||||
# Eat-Event (Wenn die Blume woanders neu spawnt)
|
||||
if self._cooldown == 0 and tf and ff:
|
||||
if self._cooldown == 0 and tf:
|
||||
if not ff:
|
||||
pyautogui.press("r")
|
||||
else:
|
||||
if self.prev_flower_x is None:
|
||||
self.prev_flower_x = fx
|
||||
if self.prev_flower_y is None:
|
||||
|
||||
Reference in new issue
Block a user