StarRailCopilot/module/event/campaign_ab.py
LmeSzinc 8366d7a258 Add: 活动AB图每日三倍基本稳定
- 调整了微层混合透视识别的参数
- 增加了在hsv色彩空间下的识别方法
- 增加了对地面闪烁红框的识别
- 增加了已打精英的计数
- 修改精英识别, boss识别, 舰队识别方法为hsv颜色计数
- 修复了自动生成camera_data的报错
2020-03-31 14:23:44 +08:00

19 lines
607 B
Python

from module.campaign.run import CampaignRun
RECORD_SINCE = (0,)
CAMPAIGN_NAME = ['a1', 'a2', 'a3', 'b1', 'b2', 'b3']
class CampaignAB(CampaignRun):
def run(self, name, folder='campaign_main', total=0):
name = name.lower()
option = ('EventABRecord', name)
if not self.config.record_executed_since(option=option, since=RECORD_SINCE):
super().run(name=name, folder=folder, total=1)
self.config.record_save(option=option)
def run_event_daily(self):
for name in CAMPAIGN_NAME:
self.run(name=name, folder=self.config.EVENT_NAME_AB)