mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-08 12:27:33 +08:00
add wararchive: the enigma and the shark
新增作战档案sp:最重要的宝物
This commit is contained in:
parent
378ee5e8ab
commit
9f487a713a
BIN
assets/cn/TEMPLATE_THE_ENIGMA_AND_THE_SHARK.png
Normal file
BIN
assets/cn/TEMPLATE_THE_ENIGMA_AND_THE_SHARK.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
@ -26,6 +26,7 @@ To add a new event, add a new row in here, and run `python -m dev_tools.event_ex
|
||||
| 20220113 | war archives 20190911 cn | Empyreal Tragicomedy | 神圣的悲喜剧 | Empyreal Tragicomedy | 悲歎せし焔海の詩 | - |
|
||||
| 20220407 | war archives 20210325 cn | Ashen Simulacrum | 箱庭疗法 | Ashen Simulacrum | 開かれし紺碧の砂箱 | - |
|
||||
| 20220721 | war archives 20210624 cn | Swirling Cherry Blossoms | 浮樱影华 | Swirling Cherry Blossoms | 翳りし満ちる影の華 | - |
|
||||
| 20220721 | war archives 20200806 cn | The Enigma and the Shark | 最重要的宝物 | The Enigma and the Shark | 鉄血鮫とエニグマ | - |
|
||||
| 20200227 | event 20200227 cn | Northern Overture | 北境序曲 | Northern Overture | 凍絶の北海 | - |
|
||||
| 20200312 | event 20200312 cn | The Solomon Ranger | 复刻斯图尔特的硝烟 | The Solomon Ranger Rerun | 南洋に靡く硝煙(復刻) | - |
|
||||
| 20200326 | event 20200326 cn | Microlayer Medley | 微层混合 | Microlayer Medley | 闇靄払う銀翼 | - |
|
||||
|
73
campaign/war_archives_20200806_cn/sp1.py
Normal file
73
campaign/war_archives_20200806_cn/sp1.py
Normal file
@ -0,0 +1,73 @@
|
||||
from ..campaign_war_archives.campaign_base import CampaignBase
|
||||
from module.logger import logger
|
||||
from module.map.map_base import CampaignMap
|
||||
from module.map.map_grids import RoadGrids, SelectedGrids
|
||||
|
||||
MAP = CampaignMap('SP1')
|
||||
MAP.shape = 'H6'
|
||||
MAP.camera_data = ['D3', 'D4']
|
||||
MAP.camera_data_spawn_point = ['D3', 'D4']
|
||||
MAP.map_data = """
|
||||
++ ++ ++ -- MS ME -- --
|
||||
-- ME -- Me -- -- ME --
|
||||
SP -- ME -- -- Me ++ ++
|
||||
-- ME -- __ -- -- MB ++
|
||||
SP -- -- ++ -- ME -- --
|
||||
-- -- Me -- MS -- ME --
|
||||
"""
|
||||
MAP.weight_data = """
|
||||
10 10 10 10 10 10 10 10
|
||||
10 10 10 10 10 10 10 10
|
||||
10 10 10 10 10 10 10 10
|
||||
10 10 10 10 10 10 10 10
|
||||
10 10 10 10 10 10 10 10
|
||||
10 10 10 10 10 10 10 10
|
||||
"""
|
||||
MAP.spawn_data = [
|
||||
{'battle': 0, 'enemy': 2, 'siren': 1},
|
||||
{'battle': 1, 'enemy': 1},
|
||||
{'battle': 2, 'enemy': 1},
|
||||
{'battle': 3, 'enemy': 1},
|
||||
{'battle': 4, 'boss': 1},
|
||||
]
|
||||
A1, B1, C1, D1, E1, F1, G1, H1, \
|
||||
A2, B2, C2, D2, E2, F2, G2, H2, \
|
||||
A3, B3, C3, D3, E3, F3, G3, H3, \
|
||||
A4, B4, C4, D4, E4, F4, G4, H4, \
|
||||
A5, B5, C5, D5, E5, F5, G5, H5, \
|
||||
A6, B6, C6, D6, E6, F6, G6, H6, \
|
||||
= MAP.flatten()
|
||||
|
||||
|
||||
class Config:
|
||||
# ===== Start of generated config =====
|
||||
MAP_SIREN_TEMPLATE = ['Amazon']
|
||||
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
|
||||
# ===== End of generated config =====
|
||||
|
||||
MAP_SWIPE_MULTIPLY = 1.741
|
||||
MAP_SWIPE_MULTIPLY_MINITOUCH = 1.683
|
||||
|
||||
INTERNAL_LINES_FIND_PEAKS_PARAMETERS = {
|
||||
'height': (80, 255 - 40),
|
||||
'width': (0.9, 10),
|
||||
'prominence': 10,
|
||||
'distance': 35,
|
||||
}
|
||||
|
||||
|
||||
class Campaign(CampaignBase):
|
||||
MAP = MAP
|
||||
|
||||
def battle_0(self):
|
||||
if self.clear_siren():
|
||||
return True
|
||||
return self.battle_default()
|
||||
|
||||
def battle_4(self):
|
||||
return self.fleet_1.clear_boss()
|
69
campaign/war_archives_20200806_cn/sp2.py
Normal file
69
campaign/war_archives_20200806_cn/sp2.py
Normal file
@ -0,0 +1,69 @@
|
||||
from ..campaign_war_archives.campaign_base import CampaignBase
|
||||
from module.logger import logger
|
||||
from module.map.map_base import CampaignMap
|
||||
from module.map.map_grids import RoadGrids, SelectedGrids
|
||||
|
||||
from .sp1 import Config as ConfigBase
|
||||
|
||||
MAP = CampaignMap('SP2')
|
||||
MAP.shape = 'I7'
|
||||
MAP.camera_data = ['D3', 'D5', 'F3', 'F5']
|
||||
MAP.camera_data_spawn_point = ['D3']
|
||||
MAP.map_data = """
|
||||
-- -- -- -- -- -- ME -- ++
|
||||
-- ME ++ MS -- ME -- MS ++
|
||||
-- -- ME -- ME -- -- -- --
|
||||
SP -- -- -- -- __ -- -- MB
|
||||
SP -- ME -- ++ ME ME -- --
|
||||
-- ++ -- ME ++ Me -- ++ ++
|
||||
-- Me ME -- ME -- MS ++ ++
|
||||
"""
|
||||
MAP.weight_data = """
|
||||
10 10 10 10 10 10 10 10 10
|
||||
10 10 10 10 10 10 10 10 10
|
||||
10 10 10 10 10 10 10 10 10
|
||||
10 10 10 10 10 10 10 10 10
|
||||
10 10 10 10 10 10 10 10 10
|
||||
10 10 10 10 10 10 10 10 10
|
||||
10 10 10 10 10 10 10 10 10
|
||||
"""
|
||||
MAP.spawn_data = [
|
||||
# Data in lua is incorrect {'battle': 0, 'enemy': 2, 'siren': 2},
|
||||
{'battle': 0, 'enemy': 3, 'siren': 2},
|
||||
{'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 = ['CL', 'CA']
|
||||
MOVABLE_ENEMY_TURN = (2, 3)
|
||||
MAP_HAS_SIREN = True
|
||||
MAP_HAS_MOVABLE_ENEMY = True
|
||||
MAP_HAS_MAP_STORY = True
|
||||
MAP_HAS_FLEET_STEP = True
|
||||
MAP_HAS_AMBUSH = False
|
||||
# ===== End of generated config =====
|
||||
|
||||
|
||||
class Campaign(CampaignBase):
|
||||
MAP = MAP
|
||||
|
||||
def battle_0(self):
|
||||
if self.clear_siren():
|
||||
return True
|
||||
return self.battle_default()
|
||||
|
||||
def battle_4(self):
|
||||
return self.fleet_1.clear_boss()
|
70
campaign/war_archives_20200806_cn/sp3.py
Normal file
70
campaign/war_archives_20200806_cn/sp3.py
Normal file
@ -0,0 +1,70 @@
|
||||
from ..campaign_war_archives.campaign_base import CampaignBase
|
||||
from module.logger import logger
|
||||
from module.map.map_base import CampaignMap
|
||||
from module.map.map_grids import RoadGrids, SelectedGrids
|
||||
|
||||
from .sp1 import Config as ConfigBase
|
||||
|
||||
MAP = CampaignMap('SP3')
|
||||
MAP.shape = 'H7'
|
||||
MAP.camera_data = ['D2', 'D5', 'E2', 'E5']
|
||||
MAP.camera_data_spawn_point = ['E5']
|
||||
MAP.map_data = """
|
||||
-- ME ++ ++ ++ MS -- --
|
||||
-- ME -- MB ME -- ME ME
|
||||
ME -- MS -- -- MS ME --
|
||||
++ MS -- ++ -- __ -- ++
|
||||
++ ME ME -- -- Me ME ++
|
||||
-- Me ++ ++ -- -- Me ME
|
||||
ME -- ++ ++ SP SP -- --
|
||||
"""
|
||||
MAP.weight_data = """
|
||||
10 10 10 10 10 10 10 10
|
||||
10 10 10 10 10 10 10 10
|
||||
10 10 10 10 10 10 10 10
|
||||
10 10 10 10 10 10 10 10
|
||||
10 10 10 10 10 10 10 10
|
||||
10 10 10 10 10 10 10 10
|
||||
10 10 10 10 10 10 10 10
|
||||
"""
|
||||
MAP.spawn_data = [
|
||||
# Data in lua is incorrect {'battle': 0, 'enemy': 2, 'siren': 2},
|
||||
{'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, 'boss': 1},
|
||||
]
|
||||
A1, B1, C1, D1, E1, F1, G1, H1, \
|
||||
A2, B2, C2, D2, E2, F2, G2, H2, \
|
||||
A3, B3, C3, D3, E3, F3, G3, H3, \
|
||||
A4, B4, C4, D4, E4, F4, G4, H4, \
|
||||
A5, B5, C5, D5, E5, F5, G5, H5, \
|
||||
A6, B6, C6, D6, E6, F6, G6, H6, \
|
||||
A7, B7, C7, D7, E7, F7, G7, H7, \
|
||||
= MAP.flatten()
|
||||
|
||||
|
||||
class Config(ConfigBase):
|
||||
# ===== Start of generated config =====
|
||||
MAP_SIREN_TEMPLATE = ['Amazon']
|
||||
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
|
||||
# ===== End of generated config =====
|
||||
|
||||
|
||||
class Campaign(CampaignBase):
|
||||
MAP = MAP
|
||||
|
||||
def battle_0(self):
|
||||
if self.clear_siren():
|
||||
return True
|
||||
return self.battle_default()
|
||||
|
||||
def battle_5(self):
|
||||
return self.fleet_boss.clear_boss()
|
@ -7067,6 +7067,7 @@
|
||||
"type": "select",
|
||||
"value": "campaign_main",
|
||||
"option": [
|
||||
"war_archives_20200806_cn",
|
||||
"war_archives_20210624_cn",
|
||||
"war_archives_20210325_cn",
|
||||
"war_archives_20190911_cn",
|
||||
@ -7082,9 +7083,9 @@
|
||||
"war_archives_20191031_en",
|
||||
"war_archives_20181020_en"
|
||||
],
|
||||
"cn": "war_archives_20210624_cn",
|
||||
"en": "war_archives_20210624_cn",
|
||||
"jp": "war_archives_20210624_cn",
|
||||
"cn": "war_archives_20200806_cn",
|
||||
"en": "war_archives_20200806_cn",
|
||||
"jp": "war_archives_20200806_cn",
|
||||
"tw": "war_archives_20181227_cn"
|
||||
},
|
||||
"Mode": {
|
||||
|
@ -626,6 +626,7 @@
|
||||
"event_20200423_cn": "Crimson Echoes Rerun",
|
||||
"event_20200326_cn": "Microlayer Medley",
|
||||
"event_20200227_cn": "Northern Overture",
|
||||
"war_archives_20210624_cn": "archives The Enigma and the Shark",
|
||||
"war_archives_20210624_cn": "archives Swirling Cherry Blossoms",
|
||||
"war_archives_20210325_cn": "archives Ashen Simulacrum",
|
||||
"war_archives_20190911_cn": "archives Empyreal Tragicomedy",
|
||||
|
@ -626,6 +626,7 @@
|
||||
"event_20200423_cn": "縹映る深緋の残響(復刻)",
|
||||
"event_20200326_cn": "闇靄払う銀翼",
|
||||
"event_20200227_cn": "凍絶の北海",
|
||||
"war_archives_20210624_cn": "檔案 鉄血鮫とエニグマ",
|
||||
"war_archives_20210624_cn": "檔案 翳りし満ちる影の華",
|
||||
"war_archives_20210325_cn": "檔案 開かれし紺碧の砂箱",
|
||||
"war_archives_20190911_cn": "檔案 悲歎せし焔海の詩",
|
||||
|
@ -626,6 +626,7 @@
|
||||
"event_20200423_cn": "复刻苍红的回响",
|
||||
"event_20200326_cn": "微层混合",
|
||||
"event_20200227_cn": "北境序曲",
|
||||
"war_archives_20210624_cn": "档案 最重要的宝物",
|
||||
"war_archives_20210624_cn": "档案 浮樱影华",
|
||||
"war_archives_20210325_cn": "档案 箱庭疗法",
|
||||
"war_archives_20190911_cn": "档案 神圣的悲喜剧",
|
||||
|
@ -626,6 +626,7 @@
|
||||
"event_20200423_cn": "Crimson Echoes Rerun",
|
||||
"event_20200326_cn": "Microlayer Medley",
|
||||
"event_20200227_cn": "Northern Overture",
|
||||
"war_archives_20210624_cn": "archives The Enigma and the Shark",
|
||||
"war_archives_20210624_cn": "archives Swirling Cherry Blossoms",
|
||||
"war_archives_20210325_cn": "archives Ashen Simulacrum",
|
||||
"war_archives_20190911_cn": "archives Empyreal Tragicomedy",
|
||||
|
@ -17,6 +17,7 @@ TEMPLATE_IRIS_OF_LIGHT_AND_DARK = Template(file={'cn': './assets/cn/war_archives
|
||||
TEMPLATE_SCHERZO_OF_IRON_AND_BLOOD = Template(file={'cn': './assets/cn/war_archives/TEMPLATE_SCHERZO_OF_IRON_AND_BLOOD.png', 'en': './assets/en/war_archives/TEMPLATE_SCHERZO_OF_IRON_AND_BLOOD.png', 'jp': './assets/cn/war_archives/TEMPLATE_SCHERZO_OF_IRON_AND_BLOOD.png', 'tw': './assets/cn/war_archives/TEMPLATE_SCHERZO_OF_IRON_AND_BLOOD.png'})
|
||||
TEMPLATE_STRIVE_WISH_AND_STRATEGIZE = Template(file={'cn': './assets/cn/war_archives/TEMPLATE_STRIVE_WISH_AND_STRATEGIZE.png', 'en': './assets/en/war_archives/TEMPLATE_STRIVE_WISH_AND_STRATEGIZE.png', 'jp': './assets/jp/war_archives/TEMPLATE_STRIVE_WISH_AND_STRATEGIZE.png', 'tw': './assets/tw/war_archives/TEMPLATE_STRIVE_WISH_AND_STRATEGIZE.png'})
|
||||
TEMPLATE_SWIRLING_CHERRY_BLOSSOMS = Template(file={'cn': './assets/cn/war_archives/TEMPLATE_SWIRLING_CHERRY_BLOSSOMS.png', 'en': './assets/cn/war_archives/TEMPLATE_SWIRLING_CHERRY_BLOSSOMS.png', 'jp': './assets/cn/war_archives/TEMPLATE_SWIRLING_CHERRY_BLOSSOMS.png', 'tw': './assets/cn/war_archives/TEMPLATE_SWIRLING_CHERRY_BLOSSOMS.png'})
|
||||
TEMPLATE_THE_ENIGMA_AND_THE_SHARK = Template(file={'cn': './assets/cn/war_archives/TEMPLATE_THE_ENIGMA_AND_THE_SHARK.png', 'en': './assets/cn/war_archives/TEMPLATE_THE_ENIGMA_AND_THE_SHARK.png', 'jp': './assets/cn/war_archives/TEMPLATE_THE_ENIGMA_AND_THE_SHARK.png', 'tw': './assets/cn/war_archives/TEMPLATE_THE_ENIGMA_AND_THE_SHARK.png'})
|
||||
TEMPLATE_VISITORS_DYED_IN_RED = Template(file={'cn': './assets/cn/war_archives/TEMPLATE_VISITORS_DYED_IN_RED.png', 'en': './assets/en/war_archives/TEMPLATE_VISITORS_DYED_IN_RED.png', 'jp': './assets/jp/war_archives/TEMPLATE_VISITORS_DYED_IN_RED.png', 'tw': './assets/tw/war_archives/TEMPLATE_VISITORS_DYED_IN_RED.png'})
|
||||
TEMPLATE_WINTERS_CROWN = Template(file={'cn': './assets/cn/war_archives/TEMPLATE_WINTERS_CROWN.png', 'en': './assets/en/war_archives/TEMPLATE_WINTERS_CROWN.png', 'jp': './assets/jp/war_archives/TEMPLATE_WINTERS_CROWN.png', 'tw': './assets/tw/war_archives/TEMPLATE_WINTERS_CROWN.png'})
|
||||
WAR_ARCHIVES_CAMPAIGN_CHECK = Button(area={'cn': (1150, 101, 1166, 130), 'en': (1150, 101, 1166, 130), 'jp': (1150, 101, 1166, 130), 'tw': (1150, 101, 1166, 130)}, color={'cn': (134, 175, 207), 'en': (134, 175, 207), 'jp': (134, 175, 207), 'tw': (134, 175, 207)}, button={'cn': (1150, 101, 1166, 130), 'en': (1150, 101, 1166, 130), 'jp': (1150, 101, 1166, 130), 'tw': (1150, 101, 1166, 130)}, file={'cn': './assets/cn/war_archives/WAR_ARCHIVES_CAMPAIGN_CHECK.png', 'en': './assets/en/war_archives/WAR_ARCHIVES_CAMPAIGN_CHECK.png', 'jp': './assets/jp/war_archives/WAR_ARCHIVES_CAMPAIGN_CHECK.png', 'tw': './assets/tw/war_archives/WAR_ARCHIVES_CAMPAIGN_CHECK.png'})
|
||||
|
@ -15,4 +15,5 @@ dic_archives_template = {
|
||||
'war_archives_20190911_cn': TEMPLATE_EMPYREAL_TRAGICOMEDY,
|
||||
'war_archives_20210325_cn': TEMPLATE_ASHEN_SIMULACRUM,
|
||||
'war_archives_20210624_cn': TEMPLATE_SWIRLING_CHERRY_BLOSSOMS,
|
||||
'war_archives_20200806_cn': TEMPLATE_THE_ENIGMA_AND_THE_SHARK,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user