mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-15 23:57:23 +08:00
Fix: Enemy detection
- Log shows 'E' and wrong prediction is_siren, because attributes are kept to the next detection - Fix missing predict also - Fix log show DEFAULT_BUTTON for the entrance of campaign
This commit is contained in:
@@ -211,3 +211,16 @@ class GridInfo:
|
||||
self.is_current_fleet = False
|
||||
self.is_submarine = False
|
||||
self.is_cleared = False
|
||||
|
||||
def covered_grid(self):
|
||||
"""Relative coordinate of the covered grid.
|
||||
|
||||
Returns:
|
||||
list[tuple]:
|
||||
"""
|
||||
if self.is_current_fleet:
|
||||
return [(0, -1), (0, -2)]
|
||||
if self.is_fleet or self.is_siren or self.is_mystery:
|
||||
return [(0, -1)]
|
||||
|
||||
return []
|
||||
|
||||
Reference in New Issue
Block a user