added log message and cooldown for flower reset

This commit is contained in:
lars 2025-08-12 23:19:41 +02:00
parent 22cb2f41b6
commit 4a971bbdba

View File

@ -360,6 +360,8 @@ class FlowerGameEnv(gym.Env):
if self._cooldown == 0 and tf:
if not ff:
pyautogui.press("r")
print("Flower Reset")
self._cooldown = self.contact_cooldown_frames
else:
if self.prev_flower_x is None:
self.prev_flower_x = fx