|
|
@@ -118,6 +118,10 @@ class ScriptTask(GeneralBattle, GameUi, SwitchSoul, RyouToppaAssets):
|
|
|
elif self.appear(self.I_SELECT_RYOU_BUTTON, threshold=0.8):
|
|
|
ryou_toppa_start_flag = False
|
|
|
break
|
|
|
+ # 出现晴明说明寮突未开
|
|
|
+ elif self.appear(self.I_NO_SELECT_RYOU, threshold=0.8):
|
|
|
+ ryou_toppa_start_flag = False
|
|
|
+ break
|
|
|
# 出现寮奖励, 说明寮突已开
|
|
|
elif self.appear(self.I_RYOU_REWARD, threshold=0.8) or self.appear(self.I_RYOU_REWARD_90, threshold=0.8):
|
|
|
ryou_toppa_start_flag = True
|
|
|
@@ -125,11 +129,16 @@ class ScriptTask(GeneralBattle, GameUi, SwitchSoul, RyouToppaAssets):
|
|
|
|
|
|
logger.attr('ryou_toppa_start_flag', ryou_toppa_start_flag)
|
|
|
logger.attr('ryou_toppa_success_penetration', ryou_toppa_success_penetration)
|
|
|
- # 寮突未开 并且有权限, 开开寮突
|
|
|
- if not ryou_toppa_start_flag and ryou_config.raid_config.ryou_access:
|
|
|
- # 作为寮管理,开启今天的寮突
|
|
|
- logger.info("As the manager of the ryou, try to start ryou toppa.")
|
|
|
- self.start_ryou_toppa()
|
|
|
+ # 寮突未开 并且有权限, 开开寮突,没有权限则标记失败
|
|
|
+ if not ryou_toppa_start_flag:
|
|
|
+ if ryou_config.raid_config.ryou_access:
|
|
|
+ # 作为寮管理,开启今天的寮突
|
|
|
+ logger.info("As the manager of the ryou, try to start ryou toppa.")
|
|
|
+ self.start_ryou_toppa()
|
|
|
+ else:
|
|
|
+ logger.info("The ryou toppa is not open and you are a ryou member.")
|
|
|
+ self.set_next_run(task='RyouToppa', finish=True, server=True, success=False)
|
|
|
+ raise TaskEnd
|
|
|
|
|
|
# 100% 攻破, 第二天再执行
|
|
|
if ryou_toppa_success_penetration:
|