1
0
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:
Zuosizhu
2024-07-26 01:26:58 +08:00
parent 3a66eceabf
commit ef9f51d719

View File

@@ -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"),