소스 검색

go to next loop as soon as possible

Richard Köhl 1 년 전
부모
커밋
60e567502e
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      dungeon.py

+ 5 - 2
dungeon.py

@@ -101,12 +101,15 @@ while True:
                 tap(*locations[0])
                 if name in ["auto_battle", "ok"]:
                     time.sleep(1.5)
+                    continue
             if name == "attack":
                 if len(locations) == 1:
                     element = first_template(tpl_mixed)
                     is_mixed = element is not None
                     tap(*locations[0])
-                elif len(locations) == 2:
+                    continue
+
+                if len(locations) == 2:
                     element = first_template(tpl_mixed)
                     if element:
                         is_mixed = True
@@ -117,7 +120,7 @@ while True:
                             element = first_template(tpl_earth)
 
                     tap(element[0], locations[0][1])
-
+                    continue
         print("...")
     except Exception as e:
         print(f"error: {e}")