1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-04-14 15:31:10 +08:00

Revam of event_20200611_en maps

This commit is contained in:
MarioGilera
2020-06-13 21:29:31 +02:00
parent 0450cbdf80
commit 6a62e54a25
11 changed files with 140 additions and 52 deletions

View File

@@ -2,18 +2,19 @@ from module.campaign.campaign_base import CampaignBase
from module.map.map_base import CampaignMap
from module.map.map_grids import SelectedGrids, RoadGrids
from module.logger import logger
from campaign.event_20200521_cn.b1 import Config as ConfigBase
from campaign.event_20200611_en.b1 import Config as ConfigBase
MAP = CampaignMap()
MAP.shape = 'K7'
MAP.map_data = """
-- -- -- -- ++ -- -- -- -- ++ ++
-- -- -- -- -- -- ++ ++ -- -- --
++ -- -- -- -- -- ++ ++ -- -- --
-- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- --
++ ++ -- -- -- -- ++ ++ -- -- --
++ -- -- -- -- -- -- -- -- -- --
-- ME ME ME ++ ME -- -- ME ++ ++
ME -- -- -- -- -- ++ ++ -- -- ME
++ -- ME ME __ ME ++ ++ ME __ --
ME -- -- MS -- MS MB MB MS -- MS
-- ME -- -- -- -- MB MB -- -- --
++ ++ ME -- SP -- ++ ++ -- SP --
++ -- -- -- -- -- ME ME -- -- --
"""
MAP.wall_data = """
· · | · · · · · · · · · ,
@@ -30,14 +31,34 @@ MAP.wall_data = """
,
· · · · · · · · · · · ,
"""
MAP.spawn_data = [
{'battle': 0, 'enemy': 2, 'siren': 1},
{'battle': 1, 'enemy': 2},
{'battle': 2, 'enemy': 2},
{'battle': 3, 'enemy': 1},
{'battle': 4, 'enemy': 1},
{'battle': 5, 'enemy': 1, 'boss': 1},
]
class Config(ConfigBase):
FLEET_BOSS = 2
MAP_HAS_WALL = True
MAP_SIREN_TEMPLATE = ['Algerie', 'Vauquelin']
class Campaign(CampaignBase):
MAP = MAP
def battle_0(self):
if self.clear_siren():
return True
if self.clear_enemy(scale=(1,)):
return True
if self.clear_enemy(scale=(2,), genre=['light', 'main', 'enemy', 'carrier']):
return True
if self.clear_enemy(genre=['light', 'main', 'enemy']):
return True
return self.battle_default()
def battle_5(self):
return self.fleet_2.brute_clear_boss()