mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
ref: remove functon
This commit is contained in:
parent
62bc1ed7f7
commit
54747a8055
@ -163,16 +163,6 @@ 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.
|
||||
|
||||
@ -240,7 +240,7 @@ class OperationSiren(OSMap):
|
||||
If not having enough yellow coins or purple coins, skip buying supplies in next port.
|
||||
"""
|
||||
logger.hr('OS port daily', level=1)
|
||||
if not self.is_in_azur_port(self.zone):
|
||||
if not self.zone.is_azur_port:
|
||||
self.globe_goto(self.zone_nearest_azur_port(self.zone))
|
||||
self.port_enter()
|
||||
not_empty = self.port_supply_buy()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user