Richard Köhl преди 1 година
родител
ревизия
6f6d78af41
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      dungeon.py

+ 3 - 0
dungeon.py

@@ -83,6 +83,9 @@ def tap(name, x, y=None):
     sleep += random.uniform(0, 0.2)
     text = f"- {name} (pause for {sleep}s)"
 
+    if y is None and isinstance(x, tuple):
+        x, y, *_ = x
+
     tap_helper(x + random.randint(-3, 3), y + random.randint(-3, 3), text)
     time.sleep(sleep)