mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-27 02:27:12 +00:00
2c3919c2e1
This reverts commit 68fbe6801e
.
21 lines
732 B
Python
21 lines
732 B
Python
from module.campaign.run import CampaignRun
|
|
|
|
|
|
RECORD_SINCE = (0,)
|
|
CAMPAIGN_NAME = ['a1', 'a2', 'a3', 'b1', 'b2', 'b3']
|
|
# CAMPAIGN_ALL = ['a1', 'a2', 'a3', 'b1', 'b2', 'b3', 'c1', 'c2', 'c3', 'd1', 'd2', 'd3'] # Trying implement all event maps
|
|
|
|
|
|
|
|
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)
|