mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-23 16:45:56 +08:00
Fix: handle None case during filter exp processing
This commit is contained in:
@@ -203,11 +203,14 @@ class RewardTacticalClass(UI):
|
|||||||
books from self.books based on current
|
books from self.books based on current
|
||||||
progress of the tactical skill.
|
progress of the tactical skill.
|
||||||
"""
|
"""
|
||||||
|
selected = self._tactical_selected_get()
|
||||||
|
if selected is None:
|
||||||
|
return
|
||||||
|
|
||||||
current, remain, total = SKILL_EXP.ocr(self.device.image)
|
current, remain, total = SKILL_EXP.ocr(self.device.image)
|
||||||
if total == 5800:
|
if total == 5800:
|
||||||
# Read 'current' and 'remain' are inaccurate
|
# Read 'current' and 'remain' are inaccurate
|
||||||
# as selected exp_value is factored into it
|
# as selected exp_value is factored into it
|
||||||
selected = self._tactical_selected_get()
|
|
||||||
current -= selected.exp_value
|
current -= selected.exp_value
|
||||||
remain += selected.exp_value
|
remain += selected.exp_value
|
||||||
logger.info('About to reach level 10; will remove '
|
logger.info('About to reach level 10; will remove '
|
||||||
|
|||||||
Reference in New Issue
Block a user