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