mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: MetaReward undefined category defaults to beacon (#5063)
This commit is contained in:
parent
3d947fc72e
commit
0e7eaf6fae
@ -122,6 +122,10 @@ class OpsiAshBeacon(Meta):
|
|||||||
self._make_an_attack()
|
self._make_an_attack()
|
||||||
continue
|
continue
|
||||||
if MetaState.COMPLETE == state:
|
if MetaState.COMPLETE == state:
|
||||||
|
if self.appear(BEACON_LIST, offset=(20, 20)):
|
||||||
|
self._meta_category = "beacon"
|
||||||
|
elif self.appear(DOSSIER_LIST, offset=(20, 20)):
|
||||||
|
self._meta_category = "dossier"
|
||||||
self._handle_ash_beacon_reward()
|
self._handle_ash_beacon_reward()
|
||||||
if not self._meta_category in self._meta_receive:
|
if not self._meta_category in self._meta_receive:
|
||||||
self._meta_receive.append(self._meta_category)
|
self._meta_receive.append(self._meta_category)
|
||||||
@ -244,7 +248,7 @@ class OpsiAshBeacon(Meta):
|
|||||||
|
|
||||||
def _pre_attack(self):
|
def _pre_attack(self):
|
||||||
"""
|
"""
|
||||||
Some pre_attack preparations, including recording meta category.
|
Some pre_attack preparations
|
||||||
In beacon:
|
In beacon:
|
||||||
ask for help if needed
|
ask for help if needed
|
||||||
In dossier:
|
In dossier:
|
||||||
@ -253,13 +257,11 @@ class OpsiAshBeacon(Meta):
|
|||||||
"""
|
"""
|
||||||
# Page beacon or dossier
|
# Page beacon or dossier
|
||||||
if self.appear(BEACON_LIST, offset=(20, 20)):
|
if self.appear(BEACON_LIST, offset=(20, 20)):
|
||||||
self._meta_category = "beacon"
|
|
||||||
if self.config.OpsiAshBeacon_OneHitMode or self.config.OpsiAshBeacon_RequestAssist:
|
if self.config.OpsiAshBeacon_OneHitMode or self.config.OpsiAshBeacon_RequestAssist:
|
||||||
if not self._ask_for_help():
|
if not self._ask_for_help():
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
if self.appear(DOSSIER_LIST, offset=(20, 20)):
|
if self.appear(DOSSIER_LIST, offset=(20, 20)):
|
||||||
self._meta_category = "dossier"
|
|
||||||
# can auto attack but not auto attacking
|
# can auto attack but not auto attacking
|
||||||
if _server_support_dossier_auto_attack() and self.config.OpsiAshBeacon_DossierAutoAttackMode \
|
if _server_support_dossier_auto_attack() and self.config.OpsiAshBeacon_DossierAutoAttackMode \
|
||||||
and self.appear(META_AUTO_ATTACK_START, offset=(5, 5)):
|
and self.appear(META_AUTO_ATTACK_START, offset=(5, 5)):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user