mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Opt: Set flags to configured values when applicable
This commit is contained in:
parent
fe4d6801bd
commit
9039788063
@ -58,8 +58,8 @@ class RewardGuild(GuildLogistics, GuildOperations):
|
||||
logger.attr(f'{attr}', f'Record time: {guild_record}')
|
||||
logger.attr(f'{attr}', f'Next update: {update}')
|
||||
if now > update or self.appear(GUILD_RED_DOT, offset=(30, 30)):
|
||||
do_logistics = True
|
||||
do_operations = False
|
||||
do_logistics = self.config.ENABLE_GUILD_LOGISTICS
|
||||
do_operations = self.config.ENABLE_GUILD_OPERATIONS
|
||||
|
||||
if not self.guild_run(logistics=do_logistics, operations=do_operations):
|
||||
return False
|
||||
|
||||
@ -538,8 +538,8 @@ class RewardGuild(UI):
|
||||
logger.attr(f'{attr}', f'Record time: {guild_record}')
|
||||
logger.attr(f'{attr}', f'Next update: {update}')
|
||||
if now > update or self.appear(GUILD_RED_DOT, offset=(30, 30)):
|
||||
do_logistics = True
|
||||
do_operations = False
|
||||
do_logistics = self.config.ENABLE_GUILD_LOGISTICS
|
||||
do_operations = self.config.ENABLE_GUILD_OPERATIONS
|
||||
|
||||
if not self.guild_run(logistics=do_logistics, operations=do_operations):
|
||||
return False
|
||||
|
||||
Loading…
Reference in New Issue
Block a user