Преглед изворни кода

add S_SWIPE_LEVEL_DOWN_PRO

llBai пре 1 месец
родитељ
комит
372ef8f3b4
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 0
      tasks/Exploration/assets.py
  2. 1 1
      tasks/Exploration/base.py

+ 1 - 0
tasks/Exploration/assets.py

@@ -162,6 +162,7 @@ class ExplorationAssets:
 	S_SWIPE_LEVEL_UP = RuleSwipe(roi_front=(1142,328,21,21), roi_back=(1143,444,21,21), mode="default", name="swipe_level_up")
 	# 向下滑动章节 
 	S_SWIPE_LEVEL_DOWN = RuleSwipe(roi_front=(1143,486,21,21), roi_back=(1143,367,21,23), mode="default", name="swipe_level_down")
+	S_SWIPE_LEVEL_DOWN_PRO = RuleSwipe(roi_front=(1143, 486, 21, 21), roi_back=(1143, 248, 21, 23), mode="default", name="swipe_level_down_pro")
 	# 往左滑动 
 	S_SWIPE_BACKGROUND_RIGHT = RuleSwipe(roi_front=(1093,148,21,21), roi_back=(397,140,21,21), mode="default", name="swipe_background_right")
 	# 往右滑动 

+ 1 - 1
tasks/Exploration/base.py

@@ -162,7 +162,7 @@ class BaseExploration(GameUi, GeneralBattle, GeneralRoom, GeneralInvite, Replace
             if self.appear_then_click(self.I_UI_CONFIRM_SAMLL, interval=1):
                 continue
             self.device.click_record_clear()
-            self.swipe(self.S_SWIPE_LEVEL_DOWN)
+            self.swipe(self.S_SWIPE_LEVEL_DOWN_PRO)
             swipeCount += 1
             debug_info = f"Swiped {swipeCount} times, current exploration level: {text1}"
             logger.info(debug_info)