1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 07:28:21 +08:00

Add: Event PT and time limit

- Fix: Auto update events in GemsFarming
This commit is contained in:
LmeSzinc
2022-02-11 22:38:41 +08:00
parent afa9bf1686
commit e47e613638
12 changed files with 167 additions and 5 deletions

View File

@@ -126,8 +126,10 @@ class AzurLaneConfig(ConfigUpdater, ManualConfig, GeneratedConfig):
if isinstance(func, Function):
func = func.command
func_set = {func, 'General', 'Alas'}
if 'opsi' in func.lower():
if func.startswith('Opsi'):
func_set.add('OpsiGeneral')
if func.startswith('Event') or func.startswith('Raid') or func in ['MaritimeEscort', 'GemsFarming']:
func_set.add('EventGeneral')
logger.info(f'Bind task {func_set}')
# Bind arguments