Add: Chapter T
BIN
assets/cn/template/TEMPLATE_SIREN_ToLoveGoldenDarkness05.gif
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
assets/cn/template/TEMPLATE_SIREN_ToLoveHaruna04.gif
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
assets/cn/template/TEMPLATE_SIREN_ToLoveNana01.gif
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
assets/cn/template/TEMPLATE_SIREN_ToLoveNana03.gif
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
assets/cn/template/TEMPLATE_SIREN_ToLoveYui02.gif
Normal file
After Width: | Height: | Size: 6.3 KiB |
BIN
assets/en/template/TEMPLATE_SIREN_ToLoveGoldenDarkness05.gif
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
assets/en/template/TEMPLATE_SIREN_ToLoveHaruna04.gif
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
assets/en/template/TEMPLATE_SIREN_ToLoveNana01.gif
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
assets/en/template/TEMPLATE_SIREN_ToLoveNana03.gif
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
assets/en/template/TEMPLATE_SIREN_ToLoveYui02.gif
Normal file
After Width: | Height: | Size: 6.3 KiB |
BIN
assets/jp/template/TEMPLATE_SIREN_ToLoveGoldenDarkness05.gif
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
assets/jp/template/TEMPLATE_SIREN_ToLoveHaruna04.gif
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
assets/jp/template/TEMPLATE_SIREN_ToLoveNana01.gif
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
assets/jp/template/TEMPLATE_SIREN_ToLoveNana03.gif
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
assets/jp/template/TEMPLATE_SIREN_ToLoveYui02.gif
Normal file
After Width: | Height: | Size: 6.3 KiB |
BIN
assets/tw/template/TEMPLATE_SIREN_ToLoveGoldenDarkness05.gif
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
assets/tw/template/TEMPLATE_SIREN_ToLoveHaruna04.gif
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
assets/tw/template/TEMPLATE_SIREN_ToLoveNana01.gif
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
assets/tw/template/TEMPLATE_SIREN_ToLoveNana03.gif
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
assets/tw/template/TEMPLATE_SIREN_ToLoveYui02.gif
Normal file
After Width: | Height: | Size: 6.3 KiB |
@ -50,7 +50,6 @@ class CampaignBase(CampaignBase_):
|
||||
mode (str): 'normal' or 'hard'.
|
||||
"""
|
||||
chapter, stage = self._campaign_separate_name(name)
|
||||
logger.info([chapter, stage])
|
||||
|
||||
if chapter in ['t']:
|
||||
self.ui_goto_event()
|
||||
|
42
campaign/event_20241121_cn/campaign_base.py
Normal file
@ -0,0 +1,42 @@
|
||||
from campaign.event_20241024_cn.campaign_base import CHAPTER_SWITCH_20241024, MODE_SWITCH_20240725
|
||||
from module.campaign.campaign_base import CampaignBase as CampaignBase_
|
||||
from module.logger import logger
|
||||
|
||||
|
||||
class CampaignBase(CampaignBase_):
|
||||
STAGE_INCREASE = [
|
||||
'T1 > T2 > T3 > T4 > T5 > T6',
|
||||
'ttl1 > ttl2 > ttl3 > ttl4 > ttl5',
|
||||
]
|
||||
|
||||
|
||||
def campaign_set_chapter(self, name, mode='normal'):
|
||||
"""
|
||||
Args:
|
||||
name (str): Campaign name, such as '7-2', 'd3', 'sp3'.
|
||||
mode (str): 'normal' or 'hard'.
|
||||
"""
|
||||
chapter, stage = self._campaign_separate_name(name)
|
||||
|
||||
if chapter in ['t']:
|
||||
self.ui_goto_event()
|
||||
MODE_SWITCH_20240725.set('combat', main=self)
|
||||
if stage in ['1', '2', '3', '4', '5']:
|
||||
CHAPTER_SWITCH_20241024.set('ab', main=self)
|
||||
elif stage in ['6']:
|
||||
CHAPTER_SWITCH_20241024.set('cd', main=self)
|
||||
else:
|
||||
logger.warning(f'Stage {name} is not in CHAPTER_SWITCH_20241024')
|
||||
self.campaign_ensure_chapter(index=chapter)
|
||||
elif chapter in ['ex_sp']:
|
||||
self.ui_goto_event()
|
||||
MODE_SWITCH_20240725.set('combat', main=self)
|
||||
CHAPTER_SWITCH_20241024.set('sp', main=self)
|
||||
self.campaign_ensure_chapter(index=chapter)
|
||||
elif chapter in ['ex_ex']:
|
||||
self.ui_goto_event()
|
||||
MODE_SWITCH_20240725.set('combat', main=self)
|
||||
CHAPTER_SWITCH_20241024.set('ex', main=self)
|
||||
self.campaign_ensure_chapter(index=chapter)
|
||||
else:
|
||||
logger.warning(f'Unknown campaign chapter: {name}')
|
92
campaign/event_20241121_cn/t1.py
Normal file
@ -0,0 +1,92 @@
|
||||
from .campaign_base import CampaignBase
|
||||
from module.map.map_base import CampaignMap
|
||||
from module.map.map_grids import SelectedGrids, RoadGrids
|
||||
from module.logger import logger
|
||||
|
||||
MAP = CampaignMap('T1')
|
||||
MAP.shape = 'I8'
|
||||
MAP.camera_data = ['E3', 'E6', 'F3', 'F6']
|
||||
MAP.camera_data_spawn_point = ['E6']
|
||||
MAP.map_data = """
|
||||
-- ++ -- -- -- -- -- -- --
|
||||
-- -- ME ++ ++ ++ -- -- --
|
||||
-- ME -- MS -- -- -- ME --
|
||||
-- -- -- -- Me -- ME -- ME
|
||||
-- Me -- SP ++ ++ -- -- --
|
||||
-- -- -- SP ++ ++ -- ME ++
|
||||
-- ME -- -- Me ME __ -- ++
|
||||
-- ++ ME -- -- -- -- -- MB
|
||||
"""
|
||||
MAP.weight_data = """
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
"""
|
||||
MAP.spawn_data = [
|
||||
{'battle': 0, 'enemy': 2, 'siren': 1},
|
||||
{'battle': 1, 'enemy': 2},
|
||||
{'battle': 2, 'enemy': 1},
|
||||
{'battle': 3, 'enemy': 1},
|
||||
{'battle': 4, 'boss': 1},
|
||||
]
|
||||
A1, B1, C1, D1, E1, F1, G1, H1, I1, \
|
||||
A2, B2, C2, D2, E2, F2, G2, H2, I2, \
|
||||
A3, B3, C3, D3, E3, F3, G3, H3, I3, \
|
||||
A4, B4, C4, D4, E4, F4, G4, H4, I4, \
|
||||
A5, B5, C5, D5, E5, F5, G5, H5, I5, \
|
||||
A6, B6, C6, D6, E6, F6, G6, H6, I6, \
|
||||
A7, B7, C7, D7, E7, F7, G7, H7, I7, \
|
||||
A8, B8, C8, D8, E8, F8, G8, H8, I8, \
|
||||
= MAP.flatten()
|
||||
|
||||
|
||||
class Config:
|
||||
# ===== Start of generated config =====
|
||||
MAP_SIREN_TEMPLATE = ['ToLoveNana03']
|
||||
MOVABLE_ENEMY_TURN = (2,)
|
||||
MAP_HAS_SIREN = True
|
||||
MAP_HAS_MOVABLE_ENEMY = True
|
||||
MAP_HAS_MAP_STORY = False
|
||||
MAP_HAS_FLEET_STEP = True
|
||||
MAP_HAS_AMBUSH = False
|
||||
MAP_HAS_MYSTERY = False
|
||||
# ===== End of generated config =====
|
||||
|
||||
STAGE_ENTRANCE = ['half', '20240725']
|
||||
INTERNAL_LINES_FIND_PEAKS_PARAMETERS = {
|
||||
'height': (80, 255 - 33),
|
||||
'width': (0.9, 10),
|
||||
'prominence': 10,
|
||||
'distance': 35,
|
||||
}
|
||||
EDGE_LINES_FIND_PEAKS_PARAMETERS = {
|
||||
'height': (255 - 33, 255),
|
||||
'prominence': 10,
|
||||
'distance': 50,
|
||||
# 'width': (0, 7),
|
||||
'wlen': 1000
|
||||
}
|
||||
MAP_SWIPE_MULTIPLY = (1.107, 1.128)
|
||||
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.071, 1.091)
|
||||
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.040, 1.059)
|
||||
|
||||
|
||||
class Campaign(CampaignBase):
|
||||
MAP = MAP
|
||||
ENEMY_FILTER = '1L > 1M > 1E > 1C > 2L > 2M > 2E > 2C > 3L > 3M > 3E > 3C'
|
||||
|
||||
def battle_0(self):
|
||||
if self.clear_siren():
|
||||
return True
|
||||
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=0):
|
||||
return True
|
||||
|
||||
return self.battle_default()
|
||||
|
||||
def battle_4(self):
|
||||
return self.clear_boss()
|
76
campaign/event_20241121_cn/t2.py
Normal file
@ -0,0 +1,76 @@
|
||||
from .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 .t1 import Config as ConfigBase
|
||||
|
||||
MAP = CampaignMap('T2')
|
||||
MAP.shape = 'I7'
|
||||
MAP.camera_data = ['E2', 'E5', 'F2', 'F5']
|
||||
MAP.camera_data_spawn_point = ['F2']
|
||||
MAP.map_data = """
|
||||
++ ++ -- -- -- -- -- -- SP
|
||||
++ ++ Me -- Me -- MS -- --
|
||||
-- ME -- -- ++ -- -- -- SP
|
||||
-- -- Me -- ++ -- ++ ++ ++
|
||||
-- ME ++ -- -- __ -- -- MB
|
||||
-- -- -- -- ME -- ME -- --
|
||||
-- ME ++ ME -- ME -- ME ++
|
||||
"""
|
||||
MAP.weight_data = """
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
"""
|
||||
MAP.spawn_data = [
|
||||
{'battle': 0, 'enemy': 3, 'siren': 1},
|
||||
{'battle': 1, 'enemy': 2},
|
||||
{'battle': 2, 'enemy': 1},
|
||||
{'battle': 3, 'enemy': 1},
|
||||
{'battle': 4, 'boss': 1},
|
||||
]
|
||||
A1, B1, C1, D1, E1, F1, G1, H1, I1, \
|
||||
A2, B2, C2, D2, E2, F2, G2, H2, I2, \
|
||||
A3, B3, C3, D3, E3, F3, G3, H3, I3, \
|
||||
A4, B4, C4, D4, E4, F4, G4, H4, I4, \
|
||||
A5, B5, C5, D5, E5, F5, G5, H5, I5, \
|
||||
A6, B6, C6, D6, E6, F6, G6, H6, I6, \
|
||||
A7, B7, C7, D7, E7, F7, G7, H7, I7, \
|
||||
= MAP.flatten()
|
||||
|
||||
|
||||
class Config(ConfigBase):
|
||||
# ===== Start of generated config =====
|
||||
MAP_SIREN_TEMPLATE = ['ToLoveNana03', 'ToLoveNana01']
|
||||
MOVABLE_ENEMY_TURN = (2,)
|
||||
MAP_HAS_SIREN = True
|
||||
MAP_HAS_MOVABLE_ENEMY = True
|
||||
MAP_HAS_MAP_STORY = False
|
||||
MAP_HAS_FLEET_STEP = True
|
||||
MAP_HAS_AMBUSH = False
|
||||
MAP_HAS_MYSTERY = False
|
||||
# ===== End of generated config =====
|
||||
|
||||
MAP_SWIPE_MULTIPLY = (1.212, 1.235)
|
||||
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.172, 1.194)
|
||||
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.138, 1.158)
|
||||
|
||||
|
||||
class Campaign(CampaignBase):
|
||||
MAP = MAP
|
||||
ENEMY_FILTER = '1L > 1M > 1E > 1C > 2L > 2M > 2E > 2C > 3L > 3M > 3E > 3C'
|
||||
|
||||
def battle_0(self):
|
||||
if self.clear_siren():
|
||||
return True
|
||||
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=0):
|
||||
return True
|
||||
|
||||
return self.battle_default()
|
||||
|
||||
def battle_4(self):
|
||||
return self.clear_boss()
|
82
campaign/event_20241121_cn/t3.py
Normal file
@ -0,0 +1,82 @@
|
||||
from .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 .t1 import Config as ConfigBase
|
||||
|
||||
MAP = CampaignMap('T3')
|
||||
MAP.shape = 'I8'
|
||||
MAP.camera_data = ['D2', 'D6', 'E2', 'E6']
|
||||
MAP.camera_data_spawn_point = ['D2']
|
||||
# Huge ToLoveHaruna04 on C5 may cover D4
|
||||
MAP.map_covered = ['D4']
|
||||
MAP.map_data = """
|
||||
-- Me ++ ++ ++ -- -- ++ ++
|
||||
++ -- SP -- SP -- Me ++ ++
|
||||
-- -- -- -- -- -- -- ME --
|
||||
Me -- -- MS -- Me -- -- --
|
||||
-- __ MS -- ++ ++ ME -- ++
|
||||
-- Me -- -- ++ ++ ME -- --
|
||||
MB ++ ME -- -- ME -- -- ++
|
||||
-- ++ -- ME -- -- -- ME --
|
||||
"""
|
||||
MAP.weight_data = """
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
"""
|
||||
MAP.spawn_data = [
|
||||
{'battle': 0, 'enemy': 3, 'siren': 2},
|
||||
{'battle': 1, 'enemy': 2},
|
||||
{'battle': 2, 'enemy': 1},
|
||||
{'battle': 3, 'enemy': 1},
|
||||
{'battle': 4},
|
||||
{'battle': 5, 'boss': 1},
|
||||
]
|
||||
A1, B1, C1, D1, E1, F1, G1, H1, I1, \
|
||||
A2, B2, C2, D2, E2, F2, G2, H2, I2, \
|
||||
A3, B3, C3, D3, E3, F3, G3, H3, I3, \
|
||||
A4, B4, C4, D4, E4, F4, G4, H4, I4, \
|
||||
A5, B5, C5, D5, E5, F5, G5, H5, I5, \
|
||||
A6, B6, C6, D6, E6, F6, G6, H6, I6, \
|
||||
A7, B7, C7, D7, E7, F7, G7, H7, I7, \
|
||||
A8, B8, C8, D8, E8, F8, G8, H8, I8, \
|
||||
= MAP.flatten()
|
||||
|
||||
|
||||
class Config(ConfigBase):
|
||||
# ===== Start of generated config =====
|
||||
MAP_SIREN_TEMPLATE = ['ToLoveNana01', 'ToLoveHaruna04']
|
||||
MOVABLE_ENEMY_TURN = (2,)
|
||||
MAP_HAS_SIREN = True
|
||||
MAP_HAS_MOVABLE_ENEMY = True
|
||||
MAP_HAS_MAP_STORY = False
|
||||
MAP_HAS_FLEET_STEP = True
|
||||
MAP_HAS_AMBUSH = False
|
||||
MAP_HAS_MYSTERY = False
|
||||
# ===== End of generated config =====
|
||||
|
||||
MAP_SWIPE_MULTIPLY = (1.181, 1.203)
|
||||
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.142, 1.163)
|
||||
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.109, 1.129)
|
||||
|
||||
|
||||
class Campaign(CampaignBase):
|
||||
MAP = MAP
|
||||
ENEMY_FILTER = '1L > 1M > 1E > 1C > 2L > 2M > 2E > 2C > 3L > 3M > 3E > 3C'
|
||||
|
||||
def battle_0(self):
|
||||
if self.clear_siren():
|
||||
return True
|
||||
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=0):
|
||||
return True
|
||||
|
||||
return self.battle_default()
|
||||
|
||||
def battle_5(self):
|
||||
return self.fleet_boss.clear_boss()
|
83
campaign/event_20241121_cn/t4.py
Normal file
@ -0,0 +1,83 @@
|
||||
from .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 .t1 import Config as ConfigBase
|
||||
|
||||
MAP = CampaignMap('T4')
|
||||
MAP.shape = 'I8'
|
||||
MAP.camera_data = ['D2', 'D6', 'F2', 'F6']
|
||||
MAP.camera_data_spawn_point = ['D4']
|
||||
# Huge siren on C5 may cover D4
|
||||
MAP.map_covered = ['D4']
|
||||
MAP.map_data = """
|
||||
++ -- -- -- -- -- -- ME ++
|
||||
ME -- ++ ++ -- ME -- -- ++
|
||||
-- -- ++ ++ -- ++ ME -- --
|
||||
SP -- -- MS -- Me -- -- ME
|
||||
-- -- MS -- Me -- ++ -- --
|
||||
SP -- -- ++ ++ ++ -- ME --
|
||||
++ ME __ Me -- Me -- -- ME
|
||||
MB -- -- -- -- -- -- ME --
|
||||
"""
|
||||
MAP.weight_data = """
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
"""
|
||||
MAP.spawn_data = [
|
||||
{'battle': 0, 'enemy': 3, 'siren': 2},
|
||||
{'battle': 1, 'enemy': 2},
|
||||
{'battle': 2, 'enemy': 1},
|
||||
{'battle': 3, 'enemy': 1},
|
||||
{'battle': 4, 'enemy': 1},
|
||||
{'battle': 5, 'boss': 1},
|
||||
]
|
||||
A1, B1, C1, D1, E1, F1, G1, H1, I1, \
|
||||
A2, B2, C2, D2, E2, F2, G2, H2, I2, \
|
||||
A3, B3, C3, D3, E3, F3, G3, H3, I3, \
|
||||
A4, B4, C4, D4, E4, F4, G4, H4, I4, \
|
||||
A5, B5, C5, D5, E5, F5, G5, H5, I5, \
|
||||
A6, B6, C6, D6, E6, F6, G6, H6, I6, \
|
||||
A7, B7, C7, D7, E7, F7, G7, H7, I7, \
|
||||
A8, B8, C8, D8, E8, F8, G8, H8, I8, \
|
||||
= MAP.flatten()
|
||||
|
||||
|
||||
class Config(ConfigBase):
|
||||
# ===== Start of generated config =====
|
||||
MAP_SIREN_TEMPLATE = ['ToLoveHaruna04', 'ToLoveGoldenDarkness05']
|
||||
MOVABLE_ENEMY_TURN = (2,)
|
||||
MAP_HAS_SIREN = True
|
||||
MAP_HAS_MOVABLE_ENEMY = True
|
||||
MAP_HAS_MAP_STORY = False
|
||||
MAP_HAS_FLEET_STEP = True
|
||||
MAP_HAS_AMBUSH = False
|
||||
MAP_HAS_MYSTERY = False
|
||||
# ===== End of generated config =====
|
||||
|
||||
MAP_WALK_USE_CURRENT_FLEET = True
|
||||
MAP_SWIPE_MULTIPLY = (1.112, 1.132)
|
||||
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.075, 1.095)
|
||||
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.044, 1.062)
|
||||
|
||||
|
||||
class Campaign(CampaignBase):
|
||||
MAP = MAP
|
||||
ENEMY_FILTER = '1L > 1M > 1E > 1C > 2L > 2M > 2E > 2C > 3L > 3M > 3E > 3C'
|
||||
|
||||
def battle_0(self):
|
||||
if self.clear_siren():
|
||||
return True
|
||||
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=0):
|
||||
return True
|
||||
|
||||
return self.battle_default()
|
||||
|
||||
def battle_5(self):
|
||||
return self.fleet_boss.clear_boss()
|
93
campaign/event_20241121_cn/t5.py
Normal file
@ -0,0 +1,93 @@
|
||||
from .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 .t1 import Config as ConfigBase
|
||||
|
||||
MAP = CampaignMap('T5')
|
||||
MAP.shape = 'I9'
|
||||
MAP.camera_data = ['E3', 'E5']
|
||||
MAP.camera_data_spawn_point = ['E7']
|
||||
MAP.map_data = """
|
||||
-- ++ ++ -- -- -- ++ ++ --
|
||||
-- ++ ++ -- MB -- ++ ++ --
|
||||
++ ME ME -- -- -- ME ME ++
|
||||
-- -- -- Me -- Me -- -- --
|
||||
-- ME ++ -- -- -- ++ ME --
|
||||
-- ME ++ MS -- MS ++ ME --
|
||||
-- -- Me -- MS -- Me -- --
|
||||
++ -- -- -- __ -- -- -- ++
|
||||
++ ++ ++ SP -- SP ++ ++ ++
|
||||
"""
|
||||
MAP.weight_data = """
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
50 50 50 50 50 50 50 50 50
|
||||
"""
|
||||
MAP.spawn_data = [
|
||||
{'battle': 0, 'enemy': 3, 'siren': 2},
|
||||
{'battle': 1, 'enemy': 2, 'siren': 1},
|
||||
{'battle': 2, 'enemy': 1},
|
||||
{'battle': 3, 'enemy': 1},
|
||||
{'battle': 4, 'enemy': 1},
|
||||
{'battle': 5},
|
||||
{'battle': 6, 'boss': 1},
|
||||
]
|
||||
A1, B1, C1, D1, E1, F1, G1, H1, I1, \
|
||||
A2, B2, C2, D2, E2, F2, G2, H2, I2, \
|
||||
A3, B3, C3, D3, E3, F3, G3, H3, I3, \
|
||||
A4, B4, C4, D4, E4, F4, G4, H4, I4, \
|
||||
A5, B5, C5, D5, E5, F5, G5, H5, I5, \
|
||||
A6, B6, C6, D6, E6, F6, G6, H6, I6, \
|
||||
A7, B7, C7, D7, E7, F7, G7, H7, I7, \
|
||||
A8, B8, C8, D8, E8, F8, G8, H8, I8, \
|
||||
A9, B9, C9, D9, E9, F9, G9, H9, I9, \
|
||||
= MAP.flatten()
|
||||
|
||||
|
||||
class Config(ConfigBase):
|
||||
# ===== Start of generated config =====
|
||||
MAP_SIREN_TEMPLATE = ['ToLoveGoldenDarkness05', 'ToLoveYui02']
|
||||
MOVABLE_ENEMY_TURN = (2,)
|
||||
MAP_HAS_SIREN = True
|
||||
MAP_HAS_MOVABLE_ENEMY = True
|
||||
MAP_HAS_MAP_STORY = False
|
||||
MAP_HAS_FLEET_STEP = True
|
||||
MAP_HAS_AMBUSH = False
|
||||
MAP_HAS_MYSTERY = False
|
||||
# ===== End of generated config =====
|
||||
|
||||
MAP_WALK_USE_CURRENT_FLEET = True
|
||||
MAP_SWIPE_MULTIPLY = (1.034, 1.053)
|
||||
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.000, 1.018)
|
||||
MAP_SWIPE_MULTIPLY_MAATOUCH = (0.971, 0.988)
|
||||
|
||||
|
||||
class Campaign(CampaignBase):
|
||||
MAP = MAP
|
||||
ENEMY_FILTER = '1L > 1M > 1E > 1C > 2L > 2M > 2E > 2C > 3L > 3M > 3E > 3C'
|
||||
|
||||
def battle_0(self):
|
||||
if self.clear_siren():
|
||||
return True
|
||||
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=1):
|
||||
return True
|
||||
|
||||
return self.battle_default()
|
||||
|
||||
def battle_5(self):
|
||||
if self.clear_siren():
|
||||
return True
|
||||
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=0):
|
||||
return True
|
||||
|
||||
return self.battle_default()
|
||||
|
||||
def battle_6(self):
|
||||
return self.fleet_boss.clear_boss()
|
@ -274,6 +274,19 @@ DIC_SIREN_NAME_CHI_TO_ENG = {
|
||||
'tiancheng_m_zhongxun': 'AmagiMasked',
|
||||
'tiancheng_m_zhanlie': 'AmagiMasked',
|
||||
'tiancheng_m_hangmu': 'AmagiMasked',
|
||||
|
||||
# Tempesta and the Sleeping Sea
|
||||
'hemuhao': 'Amity',
|
||||
'pucimaosi': 'Portsmouth',
|
||||
'mali': 'MaryCeleste',
|
||||
'fengfan_haigu03': 'fengfanhaigu03',
|
||||
|
||||
# Dangerous Inventions Incoming
|
||||
'tolove_renxing01': 'ToLoveNana01',
|
||||
'tolove_renxing02': 'ToLoveYui02',
|
||||
'tolove_renxing03': 'ToLoveNana03',
|
||||
'tolove_renxing04': 'ToLoveHaruna04',
|
||||
'tolove_renxing05': 'ToLoveGoldenDarkness05',
|
||||
}
|
||||
|
||||
|
||||
|
@ -243,6 +243,7 @@ class CampaignRun(CampaignEvent):
|
||||
'event_20240725_cn',
|
||||
'event_20240829_cn',
|
||||
'event_20241024_cn',
|
||||
'event_20241121_cn',
|
||||
]:
|
||||
name = convert.get(name, name)
|
||||
else:
|
||||
|
@ -206,6 +206,11 @@ TEMPLATE_SIREN_Swordfish = Template(file={'cn': './assets/cn/template/TEMPLATE_S
|
||||
TEMPLATE_SIREN_TaihouIdol = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_TaihouIdol.gif', 'en': './assets/en/template/TEMPLATE_SIREN_TaihouIdol.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_TaihouIdol.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_TaihouIdol.gif'})
|
||||
TEMPLATE_SIREN_TashkentIdol = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_TashkentIdol.gif', 'en': './assets/en/template/TEMPLATE_SIREN_TashkentIdol.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_TashkentIdol.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_TashkentIdol.gif'})
|
||||
TEMPLATE_SIREN_Tirpitz = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_Tirpitz.gif', 'en': './assets/en/template/TEMPLATE_SIREN_Tirpitz.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_Tirpitz.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_Tirpitz.gif'})
|
||||
TEMPLATE_SIREN_ToLoveGoldenDarkness05 = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_ToLoveGoldenDarkness05.gif', 'en': './assets/en/template/TEMPLATE_SIREN_ToLoveGoldenDarkness05.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_ToLoveGoldenDarkness05.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_ToLoveGoldenDarkness05.gif'})
|
||||
TEMPLATE_SIREN_ToLoveHaruna04 = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_ToLoveHaruna04.gif', 'en': './assets/en/template/TEMPLATE_SIREN_ToLoveHaruna04.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_ToLoveHaruna04.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_ToLoveHaruna04.gif'})
|
||||
TEMPLATE_SIREN_ToLoveNana01 = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_ToLoveNana01.gif', 'en': './assets/en/template/TEMPLATE_SIREN_ToLoveNana01.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_ToLoveNana01.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_ToLoveNana01.gif'})
|
||||
TEMPLATE_SIREN_ToLoveNana03 = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_ToLoveNana03.gif', 'en': './assets/en/template/TEMPLATE_SIREN_ToLoveNana03.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_ToLoveNana03.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_ToLoveNana03.gif'})
|
||||
TEMPLATE_SIREN_ToLoveYui02 = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_ToLoveYui02.gif', 'en': './assets/en/template/TEMPLATE_SIREN_ToLoveYui02.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_ToLoveYui02.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_ToLoveYui02.gif'})
|
||||
TEMPLATE_SIREN_Trento = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_Trento.gif', 'en': './assets/en/template/TEMPLATE_SIREN_Trento.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_Trento.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_Trento.gif'})
|
||||
TEMPLATE_SIREN_U101 = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_U101.gif', 'en': './assets/en/template/TEMPLATE_SIREN_U101.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_U101.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_U101.gif'})
|
||||
TEMPLATE_SIREN_U522 = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_U522.gif', 'en': './assets/en/template/TEMPLATE_SIREN_U522.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_U522.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_U522.gif'})
|
||||
|