mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-16 18:49:28 +08:00
adj: GemsFarming allow low vanguard level when hook is enabled
This commit is contained in:
@@ -705,7 +705,9 @@ class GemsFarming(CampaignRun, FleetEquipment, Dock):
|
||||
max_level = 70
|
||||
from module.gg_handler.gg_data import GGData
|
||||
_ggdata = GGData(self.config).get_data()
|
||||
if _ggdata['gg_enable'] and _ggdata['gg_auto'] and self.config.GemsFarming_ALLowLowVanguardLevel:
|
||||
from module.config.deep import deep_get
|
||||
_hook_on = deep_get(self.config.data, "Hook.HookGeneral.Enable", False)
|
||||
if (_ggdata['gg_enable'] and _ggdata['gg_auto'] or _hook_on) and self.config.GemsFarming_ALLowLowVanguardLevel:
|
||||
min_level = 2
|
||||
else:
|
||||
min_level = max_level
|
||||
|
||||
Reference in New Issue
Block a user