mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 13:09:25 +08:00
add: redirect gemsfarming to 15-2 after pt finished
This commit is contained in:
@@ -211,3 +211,14 @@ class CampaignEvent(CampaignStatus):
|
||||
"""
|
||||
regex_main = re.compile(r'\d{1,2}[-_]\d')
|
||||
return bool(regex_main.search(name))
|
||||
|
||||
|
||||
class CampaignEvent(CampaignEvent):
|
||||
def _disable_tasks(self, tasks):
|
||||
super()._disable_tasks(tasks)
|
||||
|
||||
if tasks in GEMS_FARMINGS:
|
||||
full_config = self.config.full_config
|
||||
if full_config.Hook_HookGeneral_Enable:
|
||||
full_config.GemsFarming_Campaign_Name = "15-2"
|
||||
full_config.WarArchives_Campaign_Event = "campaign_main"
|
||||
|
||||
Reference in New Issue
Block a user