|
@@ -1268,12 +1268,46 @@ class task_checkDiamond(dongri_task):
|
|
|
return False
|
|
|
|
|
|
return True
|
|
|
-
|
|
|
+
|
|
|
+class task_fight_campion(dongri_task):
|
|
|
+ def __init__(self):
|
|
|
+ super().__init__(f"打竞技场")
|
|
|
+ def run(self):
|
|
|
+ basic_operate.go_town()
|
|
|
+ if waitClickImg_noWait_withBool(train_img.quick_panel, 2, 1) == False:
|
|
|
+ return False
|
|
|
+
|
|
|
+ myTimeSleep_big()
|
|
|
+ if waitClickImg_noWait_withBool(special_activity_img.goto_arrow, 2, 1) == False:
|
|
|
+ return False
|
|
|
+ myTimeSleep_big()
|
|
|
+ maxMoveTimes = 2
|
|
|
+ while maxMoveTimes > 0:
|
|
|
+ maxMoveTimes -= 1
|
|
|
+ yys_dragAuto(special_activity_img.champion_move)
|
|
|
+ myTimeSleep_big()
|
|
|
+ if waitClickImg_noWait_withBool(special_activity_img.enter_champion, 2, 1) == True:
|
|
|
+ break
|
|
|
+
|
|
|
+ if waitClickImg_noWait_withBool(special_activity_img.champion_fight, 2, 1) == False:
|
|
|
+ return False
|
|
|
+ myTimeSleep_big()
|
|
|
+
|
|
|
+ dstPos = get_yys_random_point(special_activity_img.fight_last)
|
|
|
+ pcacc_mouse.click(dstPos[0], dstPos[1])
|
|
|
+ myTimeSleep_big()
|
|
|
+
|
|
|
+ if waitClickImg_noWait_withBool(special_activity_img.champion_fight2, 2, 1) == False:
|
|
|
+ return False
|
|
|
+ return True
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
- save_game_screen()
|
|
|
+ #save_game_screen()
|
|
|
#basic_operate.get_line_num()
|
|
|
#task_cure(True, 85).run()
|
|
|
#task_fight_enemy().run()
|
|
@@ -1291,7 +1325,8 @@ if __name__ == '__main__':
|
|
|
#task_checkHelp().run()
|
|
|
#task_checkStoreRoom().run()
|
|
|
#task_start_game(0)
|
|
|
- task_activity_lianmeng().run()
|
|
|
+ task_fight_campion().run()
|
|
|
+ #task_activity_lianmeng().run()
|
|
|
#task_fight_yongbing(True).run()
|
|
|
#task_collect([4,3,2,1]).run()
|
|
|
#task_train("upgrade").run()
|