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 self._cooldown == 0 and tf:
|
||||||
if not ff:
|
if not ff:
|
||||||
pyautogui.press("r")
|
pyautogui.press("r")
|
||||||
|
print("Flower Reset")
|
||||||
|
self._cooldown = self.contact_cooldown_frames
|
||||||
else:
|
else:
|
||||||
if self.prev_flower_x is None:
|
if self.prev_flower_x is None:
|
||||||
self.prev_flower_x = fx
|
self.prev_flower_x = fx
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user