Fix: [EN] event map

This commit is contained in:
LmeSzinc 2020-06-01 02:46:05 +08:00
parent 2609b4a70d
commit 16cc542219
3 changed files with 14 additions and 2 deletions

View File

@ -13,6 +13,7 @@ MAP.map_data = '''
-- ME -- -- ++ ME -- ME --
SP -- -- ME ++ -- ME -- MB
'''
MAP.camera_data = ['D1', 'D3', 'F1', 'F3']
class Config:
POOR_MAP_DATA = True
@ -25,6 +26,12 @@ class Config:
TRUST_EDGE_LINES = True
INTERNAL_LINES_HOUGHLINES_THRESHOLD = 40
EDGE_LINES_HOUGHLINES_THRESHOLD = 40
COINCIDENT_POINT_ENCOURAGE_DISTANCE = 1.5
MID_DIFF_RANGE_H = (140 - 3, 140 + 3)
MID_DIFF_RANGE_V = (143 - 3, 143 + 3)
INTERNAL_LINES_FIND_PEAKS_PARAMETERS = {
'height': (80, 255 - 40),
'width': (0.9, 10),
@ -42,3 +49,8 @@ class Config:
class Campaign(CampaignBase):
MAP = MAP
def handle_boss_appear_refocus(self):
if self.battle_count == 4:
self.map_swipe((-3, -2))
return super().handle_boss_appear_refocus()

View File

@ -74,5 +74,5 @@ class Campaign(CampaignBase):
return self.battle_default()
def battle_5(self):
return self.clear_boss()
return self.fleet_2.clear_boss()

View File

@ -82,6 +82,6 @@ class Campaign(CampaignBase):
return self.battle_default()
def battle_5(self):
return self.clear_boss()
return self.fleet_2.clear_boss()