mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-16 01:07:22 +08:00
Opt: Change research consumption True/False to Always Use/Only 0.5 Hour Researches/Don't Use
This commit is contained in:
@@ -606,10 +606,25 @@ class ResearchSelector(UI):
|
||||
"""
|
||||
if not project.valid:
|
||||
return False
|
||||
if (not self.config.Research_UseCube and project.need_cube) \
|
||||
or (not self.config.Research_UseCoin and project.need_coin) \
|
||||
or (not self.config.Research_UsePart and project.need_part):
|
||||
return False
|
||||
|
||||
# Check project consumption
|
||||
is_05 = str(project.duration) == '0.5'
|
||||
if project.need_cube:
|
||||
if self.config.Research_UseCube == 'do_not_use':
|
||||
return False
|
||||
if self.config.Research_UseCube == 'only_05_hour' and not is_05:
|
||||
return False
|
||||
if project.need_coin:
|
||||
if self.config.Research_UseCoin == 'do_not_use':
|
||||
return False
|
||||
if self.config.Research_UseCoin == 'only_05_hour' and not is_05:
|
||||
return False
|
||||
if project.need_part:
|
||||
if self.config.Research_UsePart == 'do_not_use':
|
||||
return False
|
||||
if self.config.Research_UsePart == 'only_05_hour' and not is_05:
|
||||
return False
|
||||
|
||||
# Reasons to ignore B series and E-2:
|
||||
# - Can't guarantee research condition satisfied.
|
||||
# You may get nothing after a day of running, because you didn't complete the precondition.
|
||||
|
||||
Reference in New Issue
Block a user