Przeglądaj źródła

fix(MetaDemon): Update image

ryland 11 miesięcy temu
rodzic
commit
4df72e870c

+ 1 - 1
tasks/MetaDemon/assets.py

@@ -49,7 +49,7 @@ class MetaDemonAssets:
 
 	# Image Rule Assets
 	# 右侧进去 
-	I_RIGHT_ENTER = RuleImage(roi_front=(1183,314,46,42), roi_back=(1150,131,100,360), threshold=0.75, method="Template matching", file="./tasks/MetaDemon/md/md_right_enter.png")
+	I_RIGHT_ENTER = RuleImage(roi_front=(1183,314,46,34), roi_back=(1150,131,100,360), threshold=0.75, method="Template matching", file="./tasks/MetaDemon/md/md_right_enter.png")
 	# description 
 	I_ENTER2 = RuleImage(roi_front=(461,265,44,156), roi_back=(428,220,100,258), threshold=0.8, method="Template matching", file="./tasks/MetaDemon/md/md_enter2.png")
 	# 寻找鬼王 

+ 1 - 1
tasks/MetaDemon/md/image_2025.json

@@ -2,7 +2,7 @@
   {
     "itemName": "right_enter",
     "imageName": "md_right_enter.png",
-    "roiFront": "1183,314,46,42",
+    "roiFront": "1183,314,46,34",
     "roiBack": "1150,131,100,360",
     "method": "Template matching",
     "threshold": 0.75,

BIN
tasks/MetaDemon/md/md_right_enter.png


+ 2 - 2
tasks/MetaDemon/script_task.py

@@ -100,7 +100,7 @@ class ScriptTask(RightActivity, GeneralBattle, SwitchSoul, Star56):
         if self.config.meta_demon.meta_demon_config.meta_crafting_card:
             self.crafting()
 
-        boss_timer = Timer(180)
+        boss_timer = Timer(50)
         boss_timer.start()
         first_battle_for_easy_boss = True
         while 1:
@@ -133,7 +133,7 @@ class ScriptTask(RightActivity, GeneralBattle, SwitchSoul, Star56):
                     is_hard_boss = True
             # 是否喝茶 疲劳满了就不打了
             current_exhaustion = self.current_exhaustion()
-            if current_exhaustion > 99:
+            if current_exhaustion > 100:
                 if self.config.meta_demon.meta_demon_config.auto_tea:
                     logger.info('Exhaustion is full, buy tea')
                     boss_timer.reset()