mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 23:18:22 +08:00
Fix: Shop module quick fix except the new medal shop
- Fix: Cannot detect AMOUNT_MAX in core shop - Todo: All servers need to update SHOP_MEDAL_SWIPE_END and SHOP_MERIT_SWIPE_END
This commit is contained in:
@@ -47,7 +47,7 @@ class Navbar:
|
||||
total.append(index)
|
||||
|
||||
if len(active) == 0:
|
||||
logger.warning(f'No active nav item found in {self.name}')
|
||||
# logger.warning(f'No active nav item found in {self.name}')
|
||||
active = None
|
||||
elif len(active) == 1:
|
||||
active = active[0]
|
||||
@@ -126,8 +126,9 @@ class Navbar:
|
||||
return False
|
||||
|
||||
active, minimum, maximum = self.get_info(main=main)
|
||||
if active is None:
|
||||
continue
|
||||
logger.info(f'Nav item active: {active} from range ({minimum}, {maximum})')
|
||||
# if active is None:
|
||||
# continue
|
||||
index = minimum + left - 1 if left is not None else maximum - right + 1
|
||||
if not minimum <= index <= maximum:
|
||||
logger.warning(
|
||||
|
||||
Reference in New Issue
Block a user