mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 01:23:34 +08:00
Merge pull request #248 from noname94/patch
Opt: grid.merge() optimization
This commit is contained in:
@@ -206,7 +206,7 @@ class GridInfo:
|
|||||||
self.is_enemy = True
|
self.is_enemy = True
|
||||||
if info.enemy_scale:
|
if info.enemy_scale:
|
||||||
self.enemy_scale = info.enemy_scale
|
self.enemy_scale = info.enemy_scale
|
||||||
if info.enemy_genre:
|
if info.enemy_genre and not (info.enemy_genre == 'Enemy' and self.enemy_genre):
|
||||||
self.enemy_genre = info.enemy_genre
|
self.enemy_genre = info.enemy_genre
|
||||||
return True
|
return True
|
||||||
elif mode == 'carrier' and not self.is_land and self.may_carrier:
|
elif mode == 'carrier' and not self.is_land and self.may_carrier:
|
||||||
@@ -214,7 +214,7 @@ class GridInfo:
|
|||||||
self.is_carrier = True
|
self.is_carrier = True
|
||||||
if info.enemy_scale:
|
if info.enemy_scale:
|
||||||
self.enemy_scale = info.enemy_scale
|
self.enemy_scale = info.enemy_scale
|
||||||
if info.enemy_genre:
|
if info.enemy_genre and not (info.enemy_genre == 'Enemy' and self.enemy_genre):
|
||||||
self.enemy_genre = info.enemy_genre
|
self.enemy_genre = info.enemy_genre
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user