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

Method check_layer

tasks/Orochi/script_task.py:83–91  ·  view source on GitHub ↗

检查挑战的层数, 并选中挑战的层 :return:

(self, layer: str)

Source from the content-addressed store, hash-verified

81 continue
82
83 def check_layer(self, layer: str) -> bool:
84 """
85 检查挑战的层数, 并选中挑战的层
86 :return:
87 """
88 pos = self.list_find(self.L_LAYER_LIST, layer)
89 if pos:
90 self.device.click(x=pos[0], y=pos[1])
91 return True
92
93 def check_lock(self, lock: bool = True) -> bool:
94 """

Callers 3

run_leaderMethod · 0.95
run_aloneMethod · 0.95
run_wildMethod · 0.95

Calls 2

list_findMethod · 0.80
clickMethod · 0.45

Tested by

no test coverage detected