MCPcopy Create free account
hub / github.com/runhey/OnmyojiAutoScript / check_honor

Method check_honor

tasks/Duel/script_task.py:86–94  ·  view source on GitHub ↗

检查荣誉是否满了 :return:

(self)

Source from the content-addressed store, hash-verified

84 self.ui_click(self.I_UI_BACK_YELLOW, self.I_D_TEAM)
85
86 def check_honor(self) -> bool:
87 """
88 检查荣誉是否满了
89 :return:
90 """
91 current, remain, total = self.O_D_HONOR.ocr(self.device.image)
92 if current == total and remain == 0:
93 return True
94 return False
95
96 def check_score(self, target: int) -> int or None:
97 """

Callers 1

runMethod · 0.95

Calls 1

ocrMethod · 0.80

Tested by

no test coverage detected