mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 03:58:22 +08:00
Add: 增加主线图开荒功能, 支持打三星, 打到绿海
This commit is contained in:
@@ -8,3 +8,7 @@ class PerspectiveError(Exception):
|
||||
|
||||
class ScriptError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class ScriptEnd(Exception):
|
||||
pass
|
||||
|
||||
@@ -43,7 +43,8 @@ class Map(Fleet):
|
||||
if grid is None:
|
||||
grid = self.map.select(may_ammo=True)
|
||||
if not grid:
|
||||
logger.warning('Ammo not found')
|
||||
logger.info('Ammo not found')
|
||||
return False
|
||||
grid = grid[0]
|
||||
|
||||
if self.ammo_count > 0:
|
||||
@@ -143,7 +144,7 @@ class Map(Fleet):
|
||||
Returns:
|
||||
bool: True if clear an enemy.
|
||||
"""
|
||||
grids = self.map.select(is_enemy=True)
|
||||
grids = self.map.select(is_enemy=True, is_boss=False)
|
||||
grids = self.select_grids(grids, **kwargs)
|
||||
|
||||
if grids:
|
||||
|
||||
@@ -55,6 +55,7 @@ class MapOperation(UrgentCommissionHandler, MysteryHandler, FleetPreparation, Re
|
||||
if map_timer.reached() and self.appear(MAP_PREPARATION):
|
||||
self.device.sleep(0.3) # Wait for map information.
|
||||
self.device.screenshot()
|
||||
self.handle_map_clear_mode_stop()
|
||||
self.handle_fast_forward()
|
||||
self.device.click(MAP_PREPARATION)
|
||||
map_timer.reset()
|
||||
|
||||
Reference in New Issue
Block a user