mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-14 07:08:04 +08:00
Fix: map round reset
This commit is contained in:
parent
c22355ee86
commit
ec2a6b53f4
@ -114,6 +114,13 @@ class Fleet(Camera, MapOperation, AmbushHandler):
|
||||
r = self.round % self.config.MOVABLE_ENEMY_TURN
|
||||
self.enemy_round[r] = self.enemy_round.get(r, 0) + enemy
|
||||
|
||||
def round_reset(self):
|
||||
"""
|
||||
Call this method after entering map.
|
||||
"""
|
||||
self.round = 0
|
||||
self.enemy_round = {}
|
||||
|
||||
@property
|
||||
def round_is_new(self):
|
||||
"""
|
||||
@ -448,6 +455,7 @@ class Fleet(Camera, MapOperation, AmbushHandler):
|
||||
self.find_current_fleet()
|
||||
self.find_path_initial()
|
||||
self.map.show_cost()
|
||||
self.round_reset()
|
||||
self.round_battle()
|
||||
|
||||
def handle_map_green_config_cover(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user