mirror of
https://github.com/ok-oldking/ok-wuthering-waves.git
synced 2025-06-02 00:45:25 +00:00
战斗检查FPS字样报错
降低维里奈出场优先级
This commit is contained in:
parent
a2d1310215
commit
2480bbacd6
@ -18,3 +18,6 @@ class Verina(BaseChar):
|
||||
|
||||
def count_base_priority(self):
|
||||
return - 1
|
||||
|
||||
def count_echo_priority(self):
|
||||
return 0
|
||||
|
@ -1,8 +1,8 @@
|
||||
import re
|
||||
import time
|
||||
|
||||
import cv2
|
||||
|
||||
import re
|
||||
from ok.color.Color import find_color_rectangles, get_mask_in_color_range, is_pure_black
|
||||
from ok.feature.Box import find_boxes_by_name
|
||||
from ok.logging.Logger import get_logger
|
||||
@ -237,6 +237,10 @@ class CombatCheck:
|
||||
def find_boss_lv_text(self):
|
||||
texts = self.ocr(box=self.box_of_screen(1269 / 3840, 10 / 2160, 2533 / 3840, 140 / 2160, hcenter=True),
|
||||
target_height=540, name='boss_lv_text')
|
||||
fps_text = find_boxes_by_name(texts,
|
||||
re.compile(r'FPS', re.IGNORECASE))
|
||||
if fps_text:
|
||||
raise Exception('FPS text detected on screen, please close any FPS overlay!')
|
||||
boss_lv_texts = find_boxes_by_name(texts,
|
||||
[re.compile(r'(?i)^L[Vv].*')])
|
||||
if len(boss_lv_texts) > 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user