mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 14:29:26 +08:00
Fix: skip change ship in most situation
This commit is contained in:
@@ -314,6 +314,13 @@ class GGHandler:
|
||||
if task == 'gems_farming':
|
||||
if not deep_get(self.config.data, "GameManager.ChangeShip.Enable"):
|
||||
return True
|
||||
HARDMODEMAPS = [
|
||||
'd1', 'd2', 'd3',
|
||||
'ht4', 'ht5', 'ht6',
|
||||
]
|
||||
if not self.config.is_task_enabled("GemsFarming") or deep_get(self.config.data,
|
||||
"GemsFarming.Campaign.Name").lower() not in HARDMODEMAPS:
|
||||
return 0
|
||||
logger.hr('GG Ship Type', level=2)
|
||||
success = timeout(self.gg.set_on,
|
||||
timeout_sec=deep_get(self.config.data, "GameManager.GGHandler.Timeout"),
|
||||
|
||||
Reference in New Issue
Block a user