StarRailCopilot/campaign/event_20200611_en/a3.py

49 lines
1.2 KiB
Python
Raw Normal View History

2020-06-11 15:13:50 +00:00
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
2020-06-13 19:29:31 +00:00
from campaign.event_20200611_en.a1 import Config as ConfigBase
2020-06-11 15:13:50 +00:00
MAP = CampaignMap()
2020-06-13 19:29:31 +00:00
MAP.shape = 'H7'
2020-06-11 15:13:50 +00:00
MAP.map_data = '''
2020-06-13 19:29:31 +00:00
-- ME ME ++ ++ ME ME ME
ME -- -- MS -- -- MB --
++ ++ -- ME __ ME ++ ++
ME ME -- ++ -- ME ++ ++
ME -- -- ++ -- MS MB ME
SP SP -- -- __ -- ME ++
-- SP ME ++ ME MS -- ME
2020-06-11 15:13:50 +00:00
'''
2020-06-13 19:29:31 +00:00
MAP.spawn_data = [
{'battle': 0, 'enemy': 2, 'siren': 1},
{'battle': 1, 'enemy': 1},
{'battle': 2, 'enemy': 1},
{'battle': 3, 'enemy': 1},
{'battle': 4, 'enemy': 1, 'boss': 1},
]
2020-06-11 15:13:50 +00:00
class Config(ConfigBase):
2020-06-13 19:29:31 +00:00
POOR_MAP_DATA = False
2020-06-11 15:13:50 +00:00
2020-06-11 15:13:50 +00:00
class Campaign(CampaignBase):
MAP = MAP
2020-06-13 19:29:31 +00:00
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_4(self):
return self.fleet_2.clear_potential_boss()