2020-04-24 15:20:34 +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
|
|
|
|
from campaign.event_20200423_cn.d1 import Config as ConfigBase
|
|
|
|
|
|
|
|
MAP = CampaignMap()
|
|
|
|
MAP.map_data = '''
|
2020-04-25 08:43:41 +00:00
|
|
|
MS -- -- ME -- MS -- ME --
|
|
|
|
-- ME -- -- __ ME -- ++ ++
|
|
|
|
++ ++ -- ME ++ ++ ME -- ME
|
|
|
|
MB -- -- -- ++ ++ -- -- SP
|
2020-04-24 15:20:34 +00:00
|
|
|
++ ++ -- -- -- -- -- -- SP
|
2020-04-25 08:43:41 +00:00
|
|
|
ME -- ME ME ME -- -- ++ --
|
|
|
|
-- ME ++ ++ ++ MS ME -- --
|
2020-04-24 15:20:34 +00:00
|
|
|
'''
|
2020-04-25 08:43:41 +00:00
|
|
|
MAP.camera_data = ['D3', 'D5', 'F3', 'F5']
|
|
|
|
MAP.spawn_data = [
|
|
|
|
{'battle': 0, 'enemy': 2, 'siren': 2},
|
|
|
|
{'battle': 1, 'enemy': 1},
|
|
|
|
{'battle': 2, 'enemy': 2, 'siren': 1},
|
|
|
|
{'battle': 3, 'enemy': 1},
|
|
|
|
{'battle': 4, 'enemy': 2},
|
|
|
|
{'battle': 5, 'enemy': 1},
|
|
|
|
{'battle': 6, 'boss': 1},
|
|
|
|
]
|
2020-04-24 15:20:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Config(ConfigBase):
|
|
|
|
FLEET_BOSS = 2
|
|
|
|
|
|
|
|
|
|
|
|
class Campaign(CampaignBase):
|
|
|
|
MAP = MAP
|
2020-04-25 08:43:41 +00:00
|
|
|
|
|
|
|
def battle_0(self):
|
|
|
|
if self.clear_siren():
|
|
|
|
return True
|
|
|
|
if self.clear_enemy(scale=(2, 3)):
|
|
|
|
return True
|
|
|
|
|
|
|
|
return self.battle_default()
|
|
|
|
|
|
|
|
def battle_5(self):
|
|
|
|
if self.clear_enemy(scale=(1,)):
|
|
|
|
return True
|
|
|
|
if self.clear_enemy(scale=(2,)):
|
|
|
|
return True
|
|
|
|
|
|
|
|
return self.battle_default()
|
|
|
|
|
|
|
|
def battle_6(self):
|
|
|
|
return self.fleet_2.clear_boss()
|