1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-15 04:07:20 +08:00

Feature: New OpsiShop. (#3086)

* feat: New OpsiShop

* fix: use AdaptiveScroll

* feat: scan counter

* perf: calculate y value
This commit is contained in:
霞飛
2024-06-17 11:24:40 +08:00
committed by GitHub
parent a70d4c4675
commit 0b97b40c46
116 changed files with 1178 additions and 342 deletions

View File

@@ -163,6 +163,16 @@ class ZoneManager:
ports = ports.sort_by_camera_distance(camera=tuple(zone.location))
return ports[0]
def is_in_azur_port(self, zone):
"""
Args:
zone (str, int, Zone): Name in CN/EN/JP/TW, zone id, or Zone instance.
Returns:
bool: True if zone is in azur port.
"""
return zone.is_azur_port
def zone_select(self, hazard_level):
"""
Similar to `self.zone.select(**kwargs)`, but delete zones in region 5.