选助战简化
All checks were successful
ci/woodpecker/push/check_format Pipeline was successful

This commit is contained in:
Elaina 2024-12-24 11:08:12 +08:00
parent 9a47e37d9e
commit 394c1104b9

View file

@ -83,13 +83,6 @@ class ChooseSupportSolver(SceneGraphSolver):
else: else:
match.append(((i, 500), (i + 194, 625))) match.append(((i, 500), (i + 194, 625)))
logger.debug(match) logger.debug(match)
if (
len(match) == 0
and not self.swiped
and self.scene() == Scene.OPERATOR_SUPPORT
): # 切换职业时干员没有加载出来
self.sleep(0.5)
return self.get_oper_pos()
match_opers = dict(match_portrait(config.recog.gray, segment=match)) match_opers = dict(match_portrait(config.recog.gray, segment=match))
result = {} result = {}
for op in self.opers_skill: for op in self.opers_skill:
@ -152,6 +145,8 @@ class ChooseSupportSolver(SceneGraphSolver):
def transition(self): def transition(self):
if (scene := self.scene()) == Scene.OPERATOR_SUPPORT: if (scene := self.scene()) == Scene.OPERATOR_SUPPORT:
if self.animation():
return
if self.retry_times < 0: if self.retry_times < 0:
self.scene_graph_step(Scene.OPERATOR_SELECT) self.scene_graph_step(Scene.OPERATOR_SELECT)
return return