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

Method check_layer

tasks/EvoZone/script_task.py:76–84  ·  view source on GitHub ↗

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

(self, layer: str)

Source from the content-addressed store, hash-verified

74 continue
75
76 def check_layer(self, layer: str) -> bool:
77 """
78 检查挑战的层数, 并选中挑战的层
79 :return:
80 """
81 pos = self.list_find(self.L_LAYER_LIST, layer)
82 if pos:
83 self.device.click(x=pos[0], y=pos[1])
84 return True
85
86 def check_lock(self, lock: bool = True) -> bool:
87 """

Callers 2

run_leaderMethod · 0.95
run_aloneMethod · 0.95

Calls 2

list_findMethod · 0.80
clickMethod · 0.45

Tested by

no test coverage detected