mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: 修复敌人识别错误后, 会原地踏步的问题
This commit is contained in:
parent
a42aa00864
commit
2f6fc2669a
@ -126,14 +126,16 @@ class GridInfo:
|
|||||||
# failure = 0
|
# failure = 0
|
||||||
for item in ['boss', 'siren']:
|
for item in ['boss', 'siren']:
|
||||||
if info.__getattribute__('is_' + item):
|
if info.__getattribute__('is_' + item):
|
||||||
if self.__getattribute__('may_' + item) and not self.is_cleared:
|
if self.__getattribute__('may_' + item) and not self.is_cleared \
|
||||||
|
and not info.is_fleet and not self.is_fleet:
|
||||||
self.__setattr__('is_' + item, True)
|
self.__setattr__('is_' + item, True)
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
logger.info(f'Wrong Prediction. Grid: {self}, Attr: {item}')
|
logger.info(f'Wrong Prediction. Grid: {self}, Attr: {item}')
|
||||||
# failure += 1
|
# failure += 1
|
||||||
|
|
||||||
if info.is_enemy and self.may_enemy and not self.is_cleared:
|
if info.is_enemy and self.may_enemy and not self.is_cleared \
|
||||||
|
and not info.is_fleet and not self.is_fleet:
|
||||||
self.is_enemy = True
|
self.is_enemy = True
|
||||||
self.enemy_scale = info.enemy_scale
|
self.enemy_scale = info.enemy_scale
|
||||||
self.enemy_type = info.enemy_type
|
self.enemy_type = info.enemy_type
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user