mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-08 12:27:33 +08:00
Upd: Update event Ode of Everblooming Crimson(event_20240912_cn)
This commit is contained in:
parent
14b01ff9a0
commit
1c9534d7a4
BIN
assets/cn/template/TEMPLATE_SIREN_Fox.gif
Normal file
BIN
assets/cn/template/TEMPLATE_SIREN_Fox.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.5 KiB |
BIN
assets/en/template/TEMPLATE_SIREN_Fox.gif
Normal file
BIN
assets/en/template/TEMPLATE_SIREN_Fox.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.5 KiB |
BIN
assets/jp/template/TEMPLATE_SIREN_Fox.gif
Normal file
BIN
assets/jp/template/TEMPLATE_SIREN_Fox.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.5 KiB |
BIN
assets/tw/template/TEMPLATE_SIREN_Fox.gif
Normal file
BIN
assets/tw/template/TEMPLATE_SIREN_Fox.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.5 KiB |
@ -208,3 +208,4 @@ To add a new event, add a new row in here, and run `python -m module.config.conf
|
||||
| 20240815 | event 20240425 cn | Heart-Linking Harmony | - | - | - | 共鳴的PASSION |
|
||||
| 20240829 | event 20240829 cn | Whence Flowers Bear No Fruit | 埋葬于彼岸之花 | Whence Flowers Bear No Fruit | 徒花咲かす彼岸 | - |
|
||||
| 20240829 | event 20220324 cn | Virtual Tower | - | - | - | 復刻虛像構築之塔 |
|
||||
| 20240912 | event 20240912 cn | Ode of Everblooming Crimson | 唤醒苍红之炎 | Ode of Everblooming Crimson | 絳染む丹華の詠歌 | - |
|
||||
|
87
campaign/event_20240912_cn/a1.py
Normal file
87
campaign/event_20240912_cn/a1.py
Normal file
@ -0,0 +1,87 @@
|
||||
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('A1')
|
||||
MAP.shape = 'I7'
|
||||
MAP.camera_data = ['E2', 'D5', 'F5']
|
||||
MAP.camera_data_spawn_point = ['E2']
|
||||
MAP.map_data = """
|
||||
SP -- SP ++ ++ -- ME -- --
|
||||
-- -- -- ++ ++ ME -- MB --
|
||||
-- MS -- -- Me -- -- -- ME
|
||||
++ -- MS -- -- -- ME -- --
|
||||
-- -- -- -- __ -- ++ ME --
|
||||
ME -- 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': 2, 'siren': 1},
|
||||
{'battle': 1, 'enemy': 1},
|
||||
{'battle': 2, 'enemy': 1},
|
||||
{'battle': 3, 'enemy': 1, 'boss': 1},
|
||||
{'battle': 4, 'enemy': 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:
|
||||
# ===== Start of generated config =====
|
||||
MAP_SIREN_TEMPLATE = ['AmagiMasked']
|
||||
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 =====
|
||||
INTERNAL_LINES_FIND_PEAKS_PARAMETERS = {
|
||||
'height': (120, 255 - 49),
|
||||
'width': (1.5, 10),
|
||||
'prominence': 10,
|
||||
'distance': 35,
|
||||
}
|
||||
EDGE_LINES_FIND_PEAKS_PARAMETERS = {
|
||||
'height': (255 - 49, 255),
|
||||
'prominence': 10,
|
||||
'distance': 50,
|
||||
'wlen': 1000
|
||||
}
|
||||
STAGE_ENTRANCE = ['half', '20240725']
|
||||
MAP_SWIPE_MULTIPLY = (1.157, 1.179)
|
||||
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.119, 1.140)
|
||||
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.086, 1.106)
|
||||
|
||||
|
||||
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_3(self):
|
||||
return self.clear_boss()
|
78
campaign/event_20240912_cn/a2.py
Normal file
78
campaign/event_20240912_cn/a2.py
Normal file
@ -0,0 +1,78 @@
|
||||
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 .a1 import Config as ConfigBase
|
||||
|
||||
MAP = CampaignMap('A2')
|
||||
MAP.shape = 'I8'
|
||||
MAP.camera_data = ['E2', "E5", 'D6']
|
||||
MAP.camera_data_spawn_point = ['D6']
|
||||
MAP.map_data = """
|
||||
-- -- -- ++ -- -- -- -- --
|
||||
++ ME -- -- ME -- ME ++ --
|
||||
++ -- ME -- -- -- -- -- ME
|
||||
-- ME -- -- Me Me -- Me --
|
||||
-- -- -- ME ++ ++ -- __ ME
|
||||
-- ME -- -- SP ++ MS -- --
|
||||
-- ++ Me -- -- -- -- MS --
|
||||
MB ++ -- -- SP ++ MS -- ++
|
||||
"""
|
||||
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': 1},
|
||||
{'battle': 2, 'enemy': 1},
|
||||
{'battle': 3, 'enemy': 1},
|
||||
{'battle': 4, 'enemy': 1, '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 = ['AmagiMasked']
|
||||
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.070, 1.090)
|
||||
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.035, 1.054)
|
||||
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.005, 1.023)
|
||||
|
||||
|
||||
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()
|
75
campaign/event_20240912_cn/a3.py
Normal file
75
campaign/event_20240912_cn/a3.py
Normal file
@ -0,0 +1,75 @@
|
||||
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 .a1 import Config as ConfigBase
|
||||
|
||||
MAP = CampaignMap('A3')
|
||||
MAP.shape = 'I7'
|
||||
MAP.camera_data = ['E2', 'E5']
|
||||
MAP.camera_data_spawn_point = ['F3']
|
||||
MAP.map_data = """
|
||||
-- -- -- -- Me ++ ++ -- --
|
||||
++ ++ ++ ME -- ME ++ Me --
|
||||
-- -- ME -- -- MS -- -- SP
|
||||
-- MB -- -- ME __ MS -- --
|
||||
-- -- ME -- -- MS -- -- SP
|
||||
++ ++ ++ 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': 2, 'siren': 1},
|
||||
{'battle': 1, 'enemy': 1},
|
||||
{'battle': 2, 'enemy': 1},
|
||||
{'battle': 3, 'enemy': 1},
|
||||
{'battle': 4, 'enemy': 1, '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 = ['AmagiMasked']
|
||||
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.176, 1.198)
|
||||
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.137, 1.158)
|
||||
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.104, 1.124)
|
||||
|
||||
|
||||
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()
|
92
campaign/event_20240912_cn/b1.py
Normal file
92
campaign/event_20240912_cn/b1.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('B1')
|
||||
MAP.shape = 'K8'
|
||||
MAP.camera_data = ['D3', 'D6', 'G2', 'G6']
|
||||
MAP.camera_data_spawn_point = ['G2']
|
||||
MAP.map_data = """
|
||||
-- ++ ++ ++ SP -- SP ++ -- -- --
|
||||
ME -- Me -- -- __ -- -- -- MB --
|
||||
-- -- -- -- -- MS -- ++ -- -- --
|
||||
ME -- Me ++ MS -- MS ++ ++ ++ ++
|
||||
++ -- -- ++ ++ ME -- -- -- -- --
|
||||
ME -- ME -- 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 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': 1},
|
||||
{'battle': 2, 'enemy': 2},
|
||||
{'battle': 3, 'enemy': 1},
|
||||
{'battle': 4, 'enemy': 2, 'boss': 1},
|
||||
{'battle': 5, 'enemy': 1},
|
||||
]
|
||||
A1, B1, C1, D1, E1, F1, G1, H1, I1, J1, K1, \
|
||||
A2, B2, C2, D2, E2, F2, G2, H2, I2, J2, K2, \
|
||||
A3, B3, C3, D3, E3, F3, G3, H3, I3, J3, K3, \
|
||||
A4, B4, C4, D4, E4, F4, G4, H4, I4, J4, K4, \
|
||||
A5, B5, C5, D5, E5, F5, G5, H5, I5, J5, K5, \
|
||||
A6, B6, C6, D6, E6, F6, G6, H6, I6, J6, K6, \
|
||||
A7, B7, C7, D7, E7, F7, G7, H7, I7, J7, K7, \
|
||||
A8, B8, C8, D8, E8, F8, G8, H8, I8, J8, K8, \
|
||||
= MAP.flatten()
|
||||
|
||||
|
||||
class Config:
|
||||
# ===== Start of generated config =====
|
||||
MAP_SIREN_TEMPLATE = ["Fox"]
|
||||
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 - 17),
|
||||
'width': (0.9, 10),
|
||||
'prominence': 10,
|
||||
'distance': 35,
|
||||
}
|
||||
EDGE_LINES_FIND_PEAKS_PARAMETERS = {
|
||||
'height': (255 - 17, 255),
|
||||
'prominence': 10,
|
||||
'distance': 50,
|
||||
# 'width': (0, 7),
|
||||
'wlen': 1000
|
||||
}
|
||||
MAP_SWIPE_MULTIPLY = (1.222, 1.245)
|
||||
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.182, 1.204)
|
||||
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.148, 1.168)
|
||||
|
||||
|
||||
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()
|
79
campaign/event_20240912_cn/b2.py
Normal file
79
campaign/event_20240912_cn/b2.py
Normal file
@ -0,0 +1,79 @@
|
||||
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 .b1 import Config as ConfigBase
|
||||
|
||||
MAP = CampaignMap('B2')
|
||||
MAP.shape = 'K8'
|
||||
MAP.camera_data = ['E2', 'E6', 'H2', 'H6']
|
||||
MAP.camera_data_spawn_point = ['E2']
|
||||
MAP.map_data = """
|
||||
-- -- -- ++ SP -- SP ++ ME -- ME
|
||||
-- MB -- -- -- __ -- -- -- ME --
|
||||
-- -- -- ++ -- MS -- ++ ME -- --
|
||||
++ ++ ++ ++ MS ++ MS ++ ++ ++ --
|
||||
-- -- -- -- -- Me -- -- -- -- --
|
||||
-- ++ ++ Me -- -- -- ME -- 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 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': 1},
|
||||
{'battle': 2, 'enemy': 2},
|
||||
{'battle': 3, 'enemy': 1},
|
||||
{'battle': 4, 'enemy': 2},
|
||||
{'battle': 5, 'enemy': 1, 'boss': 1},
|
||||
]
|
||||
A1, B1, C1, D1, E1, F1, G1, H1, I1, J1, K1, \
|
||||
A2, B2, C2, D2, E2, F2, G2, H2, I2, J2, K2, \
|
||||
A3, B3, C3, D3, E3, F3, G3, H3, I3, J3, K3, \
|
||||
A4, B4, C4, D4, E4, F4, G4, H4, I4, J4, K4, \
|
||||
A5, B5, C5, D5, E5, F5, G5, H5, I5, J5, K5, \
|
||||
A6, B6, C6, D6, E6, F6, G6, H6, I6, J6, K6, \
|
||||
A7, B7, C7, D7, E7, F7, G7, H7, I7, J7, K7, \
|
||||
A8, B8, C8, D8, E8, F8, G8, H8, I8, J8, K8, \
|
||||
= MAP.flatten()
|
||||
|
||||
|
||||
class Config(ConfigBase):
|
||||
# ===== Start of generated config =====
|
||||
MAP_SIREN_TEMPLATE = ['Fox']
|
||||
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.215, 1.238)
|
||||
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.175, 1.197)
|
||||
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.141, 1.161)
|
||||
|
||||
|
||||
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()
|
82
campaign/event_20240912_cn/b3.py
Normal file
82
campaign/event_20240912_cn/b3.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 .b1 import Config as ConfigBase
|
||||
|
||||
MAP = CampaignMap('B3')
|
||||
MAP.shape = 'I9'
|
||||
MAP.camera_data = ['E2', 'E6']
|
||||
MAP.camera_data_spawn_point = ['E7']
|
||||
MAP.map_data = """
|
||||
++ ME -- ME -- ME -- ME ++
|
||||
-- -- ME -- MB -- ME -- --
|
||||
-- ME -- ME -- ME -- ME --
|
||||
-- ++ ++ ++ MS ++ ++ ++ --
|
||||
-- Me -- MS __ MS -- Me --
|
||||
-- -- -- Me -- 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': 2, 'siren': 2},
|
||||
{'battle': 1, 'enemy': 1},
|
||||
{'battle': 2, 'enemy': 2},
|
||||
{'battle': 3, 'enemy': 1},
|
||||
{'battle': 4, 'enemy': 2},
|
||||
{'battle': 5, 'enemy': 1, '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 = ['Fox']
|
||||
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.365, 1.391)
|
||||
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.320, 1.344)
|
||||
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.282, 1.305)
|
||||
|
||||
|
||||
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()
|
86
campaign/event_20240912_cn/c1.py
Normal file
86
campaign/event_20240912_cn/c1.py
Normal file
@ -0,0 +1,86 @@
|
||||
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('C1')
|
||||
MAP.shape = 'I7'
|
||||
MAP.camera_data = ['E2', 'D5', 'F5']
|
||||
MAP.camera_data_spawn_point = ['E2']
|
||||
MAP.map_data = """
|
||||
SP -- SP ++ ++ -- ME -- --
|
||||
-- -- -- ++ ++ ME -- MB --
|
||||
-- MS -- -- Me -- -- -- ME
|
||||
++ -- MS -- -- -- ME -- --
|
||||
-- -- -- -- __ -- ++ ME --
|
||||
ME -- 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': 2, 'siren': 2},
|
||||
{'battle': 1, 'enemy': 1},
|
||||
{'battle': 2, 'enemy': 2},
|
||||
{'battle': 3, 'enemy': 1},
|
||||
{'battle': 4, 'enemy': 1, '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:
|
||||
# ===== Start of generated config =====
|
||||
MAP_SIREN_TEMPLATE = ['AmagiMasked']
|
||||
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': (120, 255 - 49),
|
||||
'width': (1.5, 10),
|
||||
'prominence': 10,
|
||||
'distance': 35,
|
||||
}
|
||||
EDGE_LINES_FIND_PEAKS_PARAMETERS = {
|
||||
'height': (255 - 49, 255),
|
||||
'prominence': 10,
|
||||
'distance': 50,
|
||||
'wlen': 1000
|
||||
}
|
||||
MAP_SWIPE_MULTIPLY = (1.149, 1.170)
|
||||
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.111, 1.132)
|
||||
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.079, 1.098)
|
||||
|
||||
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()
|
78
campaign/event_20240912_cn/c2.py
Normal file
78
campaign/event_20240912_cn/c2.py
Normal file
@ -0,0 +1,78 @@
|
||||
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 .c1 import Config as ConfigBase
|
||||
|
||||
MAP = CampaignMap('C2')
|
||||
MAP.shape = 'I8'
|
||||
MAP.camera_data = ['E2', "E5", 'D6']
|
||||
MAP.camera_data_spawn_point = ['D6']
|
||||
MAP.map_data = """
|
||||
-- -- -- ++ -- -- -- -- --
|
||||
++ ME -- -- ME -- ME ++ --
|
||||
++ -- ME -- -- -- -- -- ME
|
||||
-- ME -- -- Me Me -- Me --
|
||||
-- -- -- ME ++ ++ -- __ ME
|
||||
-- ME -- -- SP ++ MS -- --
|
||||
-- ++ Me -- -- -- -- MS --
|
||||
MB ++ -- -- SP ++ MS -- ++
|
||||
"""
|
||||
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': 2},
|
||||
{'battle': 1, 'enemy': 1},
|
||||
{'battle': 2, 'enemy': 2},
|
||||
{'battle': 3, 'enemy': 1},
|
||||
{'battle': 4, 'enemy': 1, '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 = ['AmagiMasked']
|
||||
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.062, 1.082)
|
||||
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.027, 1.046)
|
||||
MAP_SWIPE_MULTIPLY_MAATOUCH = (0.997, 1.015)
|
||||
|
||||
|
||||
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_20240912_cn/c3.py
Normal file
76
campaign/event_20240912_cn/c3.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 .c1 import Config as ConfigBase
|
||||
|
||||
MAP = CampaignMap('C3')
|
||||
MAP.shape = 'I7'
|
||||
MAP.camera_data = ['E2', 'E5']
|
||||
MAP.camera_data_spawn_point = ['F3']
|
||||
MAP.map_data = """
|
||||
-- -- -- -- Me ++ ++ -- --
|
||||
++ ++ ++ ME -- ME ++ Me --
|
||||
-- -- ME -- -- MS -- -- SP
|
||||
-- MB -- -- ME __ MS -- --
|
||||
-- -- ME -- -- MS -- -- SP
|
||||
++ ++ ++ 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': 2, 'siren': 2},
|
||||
{'battle': 1, 'enemy': 1},
|
||||
{'battle': 2, 'enemy': 2},
|
||||
{'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, \
|
||||
= MAP.flatten()
|
||||
|
||||
|
||||
class Config(ConfigBase):
|
||||
# ===== Start of generated config =====
|
||||
MAP_SIREN_TEMPLATE = ['AmagiMasked']
|
||||
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.186, 1.208)
|
||||
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.147, 1.168)
|
||||
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.114, 1.134)
|
||||
|
||||
|
||||
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()
|
10
campaign/event_20240912_cn/campaign_base.py
Normal file
10
campaign/event_20240912_cn/campaign_base.py
Normal file
@ -0,0 +1,10 @@
|
||||
from module.campaign.campaign_base import CampaignBase as CampaignBase_
|
||||
from module.ui.ui import page_event
|
||||
|
||||
|
||||
class CampaignBase(CampaignBase_):
|
||||
def handle_exp_info(self):
|
||||
# Random background of hits EXP_INFO_B
|
||||
if self.ui_page_appear(page_event):
|
||||
return False
|
||||
return super().handle_exp_info()
|
92
campaign/event_20240912_cn/d1.py
Normal file
92
campaign/event_20240912_cn/d1.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('D1')
|
||||
MAP.shape = 'K8'
|
||||
MAP.camera_data = ['D3', 'D6', 'G2', 'G6']
|
||||
MAP.camera_data_spawn_point = ['G2']
|
||||
MAP.map_data = """
|
||||
-- ++ ++ ++ SP -- SP ++ -- -- --
|
||||
ME -- Me -- -- __ -- -- -- MB --
|
||||
-- -- -- -- -- MS -- ++ -- -- --
|
||||
ME -- Me ++ MS -- MS ++ ++ ++ ++
|
||||
++ -- -- ++ ++ ME -- -- -- -- --
|
||||
ME -- ME -- 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 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': 2},
|
||||
{'battle': 1, 'enemy': 1},
|
||||
{'battle': 2, 'enemy': 2},
|
||||
{'battle': 3, 'enemy': 1},
|
||||
{'battle': 4, 'enemy': 2},
|
||||
{'battle': 5, 'enemy': 1, 'boss': 1},
|
||||
]
|
||||
A1, B1, C1, D1, E1, F1, G1, H1, I1, J1, K1, \
|
||||
A2, B2, C2, D2, E2, F2, G2, H2, I2, J2, K2, \
|
||||
A3, B3, C3, D3, E3, F3, G3, H3, I3, J3, K3, \
|
||||
A4, B4, C4, D4, E4, F4, G4, H4, I4, J4, K4, \
|
||||
A5, B5, C5, D5, E5, F5, G5, H5, I5, J5, K5, \
|
||||
A6, B6, C6, D6, E6, F6, G6, H6, I6, J6, K6, \
|
||||
A7, B7, C7, D7, E7, F7, G7, H7, I7, J7, K7, \
|
||||
A8, B8, C8, D8, E8, F8, G8, H8, I8, J8, K8, \
|
||||
= MAP.flatten()
|
||||
|
||||
|
||||
class Config:
|
||||
# ===== Start of generated config =====
|
||||
MAP_SIREN_TEMPLATE = ['Fox']
|
||||
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 - 17),
|
||||
'width': (0.9, 10),
|
||||
'prominence': 10,
|
||||
'distance': 35,
|
||||
}
|
||||
EDGE_LINES_FIND_PEAKS_PARAMETERS = {
|
||||
'height': (255 - 17, 255),
|
||||
'prominence': 10,
|
||||
'distance': 50,
|
||||
# 'width': (0, 7),
|
||||
'wlen': 1000
|
||||
}
|
||||
MAP_SWIPE_MULTIPLY = (1.222, 1.245)
|
||||
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.182, 1.204)
|
||||
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.148, 1.168)
|
||||
|
||||
|
||||
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()
|
88
campaign/event_20240912_cn/d2.py
Normal file
88
campaign/event_20240912_cn/d2.py
Normal file
@ -0,0 +1,88 @@
|
||||
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 .d1 import Config as ConfigBase
|
||||
|
||||
MAP = CampaignMap('D2')
|
||||
MAP.shape = 'K8'
|
||||
MAP.camera_data = ['E2', 'E6', 'H2', 'H6']
|
||||
MAP.camera_data_spawn_point = ['E2']
|
||||
MAP.map_data = """
|
||||
-- -- -- ++ SP -- SP ++ ME -- ME
|
||||
-- MB -- -- -- __ -- -- -- ME --
|
||||
-- -- -- ++ -- MS -- ++ ME -- --
|
||||
++ ++ ++ ++ MS ++ MS ++ ++ ++ --
|
||||
-- -- -- -- -- Me -- -- -- -- --
|
||||
-- ++ ++ Me -- -- -- ME -- 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 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': 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},
|
||||
]
|
||||
A1, B1, C1, D1, E1, F1, G1, H1, I1, J1, K1, \
|
||||
A2, B2, C2, D2, E2, F2, G2, H2, I2, J2, K2, \
|
||||
A3, B3, C3, D3, E3, F3, G3, H3, I3, J3, K3, \
|
||||
A4, B4, C4, D4, E4, F4, G4, H4, I4, J4, K4, \
|
||||
A5, B5, C5, D5, E5, F5, G5, H5, I5, J5, K5, \
|
||||
A6, B6, C6, D6, E6, F6, G6, H6, I6, J6, K6, \
|
||||
A7, B7, C7, D7, E7, F7, G7, H7, I7, J7, K7, \
|
||||
A8, B8, C8, D8, E8, F8, G8, H8, I8, J8, K8, \
|
||||
= MAP.flatten()
|
||||
|
||||
|
||||
class Config(ConfigBase):
|
||||
# ===== Start of generated config =====
|
||||
MAP_SIREN_TEMPLATE = ['Fox']
|
||||
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.215, 1.238)
|
||||
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.175, 1.197)
|
||||
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.141, 1.161)
|
||||
|
||||
|
||||
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()
|
91
campaign/event_20240912_cn/d3.py
Normal file
91
campaign/event_20240912_cn/d3.py
Normal file
@ -0,0 +1,91 @@
|
||||
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 .d1 import Config as ConfigBase
|
||||
|
||||
MAP = CampaignMap('D3')
|
||||
MAP.shape = 'I9'
|
||||
MAP.camera_data = ['E2', 'E6']
|
||||
MAP.camera_data_spawn_point = ['E7']
|
||||
MAP.map_data = """
|
||||
++ ME -- ME -- ME -- ME ++
|
||||
-- -- ME -- MB -- ME -- --
|
||||
-- ME -- ME -- ME -- ME --
|
||||
-- ++ ++ ++ MS ++ ++ ++ --
|
||||
-- Me -- MS __ MS -- Me --
|
||||
-- -- -- Me -- 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': 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},
|
||||
]
|
||||
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 = ['Fox']
|
||||
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.365, 1.391)
|
||||
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.320, 1.344)
|
||||
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.282, 1.305)
|
||||
|
||||
|
||||
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()
|
95
campaign/event_20240912_cn/sp.py
Normal file
95
campaign/event_20240912_cn/sp.py
Normal file
@ -0,0 +1,95 @@
|
||||
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('SP')
|
||||
MAP.shape = 'K5'
|
||||
MAP.camera_data = ['D3', 'H3']
|
||||
MAP.camera_data_spawn_point = ['H3']
|
||||
MAP.map_data = """
|
||||
++ -- ME -- ++ -- ME -- ++ ++ ++
|
||||
-- -- -- ME ++ ME -- MS -- -- SP
|
||||
-- MB -- -- -- -- MS -- __ -- --
|
||||
-- -- -- ME ++ ME -- MS -- -- SP
|
||||
++ -- 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
|
||||
"""
|
||||
MAP.spawn_data = [
|
||||
{'battle': 0, 'enemy': 8, 'siren': 3},
|
||||
{'battle': 1},
|
||||
{'battle': 2},
|
||||
{'battle': 3},
|
||||
{'battle': 4},
|
||||
{'battle': 5},
|
||||
{'battle': 6},
|
||||
{'battle': 7, 'boss': 1},
|
||||
]
|
||||
A1, B1, C1, D1, E1, F1, G1, H1, I1, J1, K1, \
|
||||
A2, B2, C2, D2, E2, F2, G2, H2, I2, J2, K2, \
|
||||
A3, B3, C3, D3, E3, F3, G3, H3, I3, J3, K3, \
|
||||
A4, B4, C4, D4, E4, F4, G4, H4, I4, J4, K4, \
|
||||
A5, B5, C5, D5, E5, F5, G5, H5, I5, J5, K5, \
|
||||
= MAP.flatten()
|
||||
|
||||
|
||||
class Config:
|
||||
# ===== Start of generated config =====
|
||||
MAP_SIREN_TEMPLATE = ['Fox']
|
||||
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
|
||||
STAR_REQUIRE_1 = 0
|
||||
STAR_REQUIRE_2 = 0
|
||||
STAR_REQUIRE_3 = 0
|
||||
# ===== End of generated config =====
|
||||
STAGE_ENTRANCE = ['half', '20240725']
|
||||
INTERNAL_LINES_FIND_PEAKS_PARAMETERS = {
|
||||
'height': (120, 255 - 49),
|
||||
'width': (1.5, 10),
|
||||
'prominence': 10,
|
||||
'distance': 35,
|
||||
}
|
||||
EDGE_LINES_FIND_PEAKS_PARAMETERS = {
|
||||
'height': (255 - 49, 255),
|
||||
'prominence': 10,
|
||||
'distance': 50,
|
||||
'wlen': 1000
|
||||
}
|
||||
MAP_SWIPE_MULTIPLY = (1.194, 1.217)
|
||||
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.155, 1.176)
|
||||
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.121, 1.142)
|
||||
|
||||
|
||||
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=2):
|
||||
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_7(self):
|
||||
return self.fleet_boss.clear_boss()
|
@ -1708,14 +1708,16 @@
|
||||
"event_20240521_cn",
|
||||
"event_20240725_cn",
|
||||
"event_20240815_cn",
|
||||
"event_20240829_cn"
|
||||
"event_20240829_cn",
|
||||
"event_20240912_cn"
|
||||
],
|
||||
"display": "hide",
|
||||
"option_bold": [
|
||||
"event_20220324_cn",
|
||||
"event_20240829_cn"
|
||||
"event_20240829_cn",
|
||||
"event_20240912_cn"
|
||||
],
|
||||
"cn": "event_20240829_cn",
|
||||
"cn": "event_20240912_cn",
|
||||
"en": "event_20240829_cn",
|
||||
"jp": "event_20240829_cn",
|
||||
"tw": "event_20220324_cn"
|
||||
@ -2047,13 +2049,15 @@
|
||||
"event_20240521_cn",
|
||||
"event_20240725_cn",
|
||||
"event_20240815_cn",
|
||||
"event_20240829_cn"
|
||||
"event_20240829_cn",
|
||||
"event_20240912_cn"
|
||||
],
|
||||
"option_bold": [
|
||||
"event_20220324_cn",
|
||||
"event_20240829_cn"
|
||||
"event_20240829_cn",
|
||||
"event_20240912_cn"
|
||||
],
|
||||
"cn": "event_20240829_cn",
|
||||
"cn": "event_20240912_cn",
|
||||
"en": "event_20240829_cn",
|
||||
"jp": "event_20240829_cn",
|
||||
"tw": "event_20220324_cn"
|
||||
@ -2500,13 +2504,15 @@
|
||||
"event_20240521_cn",
|
||||
"event_20240725_cn",
|
||||
"event_20240815_cn",
|
||||
"event_20240829_cn"
|
||||
"event_20240829_cn",
|
||||
"event_20240912_cn"
|
||||
],
|
||||
"option_bold": [
|
||||
"event_20220324_cn",
|
||||
"event_20240829_cn"
|
||||
"event_20240829_cn",
|
||||
"event_20240912_cn"
|
||||
],
|
||||
"cn": "event_20240829_cn",
|
||||
"cn": "event_20240912_cn",
|
||||
"en": "event_20240829_cn",
|
||||
"jp": "event_20240829_cn",
|
||||
"tw": "event_20220324_cn"
|
||||
@ -3911,13 +3917,15 @@
|
||||
"event_20240521_cn",
|
||||
"event_20240725_cn",
|
||||
"event_20240815_cn",
|
||||
"event_20240829_cn"
|
||||
"event_20240829_cn",
|
||||
"event_20240912_cn"
|
||||
],
|
||||
"option_bold": [
|
||||
"event_20220324_cn",
|
||||
"event_20240829_cn"
|
||||
"event_20240829_cn",
|
||||
"event_20240912_cn"
|
||||
],
|
||||
"cn": "event_20240829_cn",
|
||||
"cn": "event_20240912_cn",
|
||||
"en": "event_20240829_cn",
|
||||
"jp": "event_20240829_cn",
|
||||
"tw": "event_20220324_cn"
|
||||
@ -4381,13 +4389,15 @@
|
||||
"event_20240521_cn",
|
||||
"event_20240725_cn",
|
||||
"event_20240815_cn",
|
||||
"event_20240829_cn"
|
||||
"event_20240829_cn",
|
||||
"event_20240912_cn"
|
||||
],
|
||||
"option_bold": [
|
||||
"event_20220324_cn",
|
||||
"event_20240829_cn"
|
||||
"event_20240829_cn",
|
||||
"event_20240912_cn"
|
||||
],
|
||||
"cn": "event_20240829_cn",
|
||||
"cn": "event_20240912_cn",
|
||||
"en": "event_20240829_cn",
|
||||
"jp": "event_20240829_cn",
|
||||
"tw": "event_20220324_cn"
|
||||
@ -4851,13 +4861,15 @@
|
||||
"event_20240521_cn",
|
||||
"event_20240725_cn",
|
||||
"event_20240815_cn",
|
||||
"event_20240829_cn"
|
||||
"event_20240829_cn",
|
||||
"event_20240912_cn"
|
||||
],
|
||||
"option_bold": [
|
||||
"event_20220324_cn",
|
||||
"event_20240829_cn"
|
||||
"event_20240829_cn",
|
||||
"event_20240912_cn"
|
||||
],
|
||||
"cn": "event_20240829_cn",
|
||||
"cn": "event_20240912_cn",
|
||||
"en": "event_20240829_cn",
|
||||
"jp": "event_20240829_cn",
|
||||
"tw": "event_20220324_cn"
|
||||
@ -5321,13 +5333,15 @@
|
||||
"event_20240521_cn",
|
||||
"event_20240725_cn",
|
||||
"event_20240815_cn",
|
||||
"event_20240829_cn"
|
||||
"event_20240829_cn",
|
||||
"event_20240912_cn"
|
||||
],
|
||||
"option_bold": [
|
||||
"event_20220324_cn",
|
||||
"event_20240829_cn"
|
||||
"event_20240829_cn",
|
||||
"event_20240912_cn"
|
||||
],
|
||||
"cn": "event_20240829_cn",
|
||||
"cn": "event_20240912_cn",
|
||||
"en": "event_20240829_cn",
|
||||
"jp": "event_20240829_cn",
|
||||
"tw": "event_20220324_cn"
|
||||
@ -5781,13 +5795,15 @@
|
||||
"event_20240521_cn",
|
||||
"event_20240725_cn",
|
||||
"event_20240815_cn",
|
||||
"event_20240829_cn"
|
||||
"event_20240829_cn",
|
||||
"event_20240912_cn"
|
||||
],
|
||||
"option_bold": [
|
||||
"event_20220324_cn",
|
||||
"event_20240829_cn"
|
||||
"event_20240829_cn",
|
||||
"event_20240912_cn"
|
||||
],
|
||||
"cn": "event_20240829_cn",
|
||||
"cn": "event_20240912_cn",
|
||||
"en": "event_20240829_cn",
|
||||
"jp": "event_20240829_cn",
|
||||
"tw": "event_20220324_cn"
|
||||
|
@ -732,6 +732,7 @@
|
||||
"event_20240725_cn": "Interlude of Illusions",
|
||||
"event_20240815_cn": "Windborne Steel Wings",
|
||||
"event_20240829_cn": "Whence Flowers Bear No Fruit",
|
||||
"event_20240912_cn": "Ode of Everblooming Crimson",
|
||||
"raid_20200624": "Air Raid Drills with Essex Rerun",
|
||||
"raid_20210708": "Cross Wave rerun",
|
||||
"raid_20220127": "Mystery Investigation",
|
||||
|
@ -732,6 +732,7 @@
|
||||
"event_20240725_cn": "夢幻の間奏曲",
|
||||
"event_20240815_cn": "錬翼空翔",
|
||||
"event_20240829_cn": "徒花咲かす彼岸",
|
||||
"event_20240912_cn": "絳染む丹華の詠歌",
|
||||
"raid_20200624": "特別演習超空強襲波(復刻)",
|
||||
"raid_20210708": "交錯する新たな波 (復刻)",
|
||||
"raid_20220127": "秘密事件調査",
|
||||
|
@ -732,6 +732,7 @@
|
||||
"event_20240725_cn": "幻梦间奏曲",
|
||||
"event_20240815_cn": "铁翼擎风",
|
||||
"event_20240829_cn": "埋葬于彼岸之花",
|
||||
"event_20240912_cn": "唤醒苍红之炎",
|
||||
"raid_20200624": "复刻特别演习埃塞克斯级",
|
||||
"raid_20210708": "复刻穿越彼方的水线",
|
||||
"raid_20220127": "演习神秘事件调查",
|
||||
|
@ -732,6 +732,7 @@
|
||||
"event_20240725_cn": "Interlude of Illusions",
|
||||
"event_20240815_cn": "Windborne Steel Wings",
|
||||
"event_20240829_cn": "Whence Flowers Bear No Fruit",
|
||||
"event_20240912_cn": "喚醒蒼紅之炎",
|
||||
"raid_20200624": "特別演習埃塞克斯級(復刻)",
|
||||
"raid_20210708": "復刻穿越彼方的水線",
|
||||
"raid_20220127": "演習神秘事件調查",
|
||||
|
@ -98,6 +98,7 @@ TEMPLATE_SIREN_Dupleix = Template(file={'cn': './assets/cn/template/TEMPLATE_SIR
|
||||
TEMPLATE_SIREN_ELpurple = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_ELpurple.gif', 'en': './assets/en/template/TEMPLATE_SIREN_ELpurple.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_ELpurple.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_ELpurple.gif'})
|
||||
TEMPLATE_SIREN_Elizabeth3 = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_Elizabeth3.gif', 'en': './assets/en/template/TEMPLATE_SIREN_Elizabeth3.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_Elizabeth3.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_Elizabeth3.gif'})
|
||||
TEMPLATE_SIREN_Formidable = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_Formidable.gif', 'en': './assets/en/template/TEMPLATE_SIREN_Formidable.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_Formidable.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_Formidable.gif'})
|
||||
TEMPLATE_SIREN_Fox = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_Fox.gif', 'en': './assets/en/template/TEMPLATE_SIREN_Fox.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_Fox.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_Fox.gif'})
|
||||
TEMPLATE_SIREN_Gascogne = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_Gascogne.gif', 'en': './assets/en/template/TEMPLATE_SIREN_Gascogne.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_Gascogne.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_Gascogne.gif'})
|
||||
TEMPLATE_SIREN_GascogneIdol = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_GascogneIdol.gif', 'en': './assets/en/template/TEMPLATE_SIREN_GascogneIdol.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_GascogneIdol.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_GascogneIdol.gif'})
|
||||
TEMPLATE_SIREN_Gloucester = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_Gloucester.gif', 'en': './assets/en/template/TEMPLATE_SIREN_Gloucester.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_Gloucester.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_Gloucester.gif'})
|
||||
|
Loading…
Reference in New Issue
Block a user