mirror of
https://github.com/zoriya/AnonymousGoose.git
synced 2026-05-25 11:33:40 +00:00
Finishing the merge
This commit is contained in:
@@ -26,7 +26,7 @@ class AnonymousGoose:
|
||||
for trick in self.tricks:
|
||||
trick.revert()
|
||||
|
||||
def run(self):
|
||||
def run(self, disable_x):
|
||||
next_trick_time = 5
|
||||
while not self.should_exit:
|
||||
try:
|
||||
@@ -35,7 +35,7 @@ class AnonymousGoose:
|
||||
time.sleep(1)
|
||||
next_trick_time -= 1
|
||||
if next_trick_time <= 0:
|
||||
trick = Trick.get_random_trick()
|
||||
trick = Trick.get_random_trick(not disable_x)
|
||||
next_trick_time = trick.delay
|
||||
trick.run()
|
||||
if trick.is_reversible:
|
||||
|
||||
Reference in New Issue
Block a user