added log message and cooldown for flower reset
This commit is contained in:
parent
22cb2f41b6
commit
4a971bbdba
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user