mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-26 18:20:42 +00:00
Add: 适配「夜幕下的归途」(event_20200507_cn)
This commit is contained in:
parent
1203585771
commit
e35c193671
@ -12,7 +12,7 @@ Alas, 一个带GUI的碧蓝航线脚本 (仅支持国服).
|
||||
|
||||
- **主线图出击** 暂时仅支持前六章和7-2
|
||||
|
||||
- **活动图出击** 支持复刻苍红的回响, C2和D3有单独优化, 支持开荒
|
||||
- **活动图出击** 支持「夜幕下的归途」(event_20200507_cn), SP1-SP3均有优化, 支持开荒
|
||||
|
||||
- **每日任务** 半小时左右一套做完, 重复运行时会跳过当天做过的
|
||||
|
||||
|
41
campaign/event_20200507_cn/sp1.py
Normal file
41
campaign/event_20200507_cn/sp1.py
Normal file
@ -0,0 +1,41 @@
|
||||
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
|
||||
|
||||
|
||||
MAP = CampaignMap()
|
||||
MAP.map_data = '''
|
||||
-- ++ ++ MB MB ++ ++ ++
|
||||
ME ++ ME -- -- ME ME --
|
||||
-- -- __ -- ME __ -- --
|
||||
ME -- ME -- -- -- ME --
|
||||
-- -- ++ ME -- ME ++ ME
|
||||
ME -- -- SP SP -- -- --
|
||||
++ ++ -- -- -- -- ME ++
|
||||
'''
|
||||
MAP.camera_data = ['D3', 'D5']
|
||||
MAP.spawn_data = [
|
||||
{'battle': 0, 'enemy': 3},
|
||||
{'battle': 1, 'enemy': 1},
|
||||
{'battle': 2, 'enemy': 1},
|
||||
{'battle': 3, 'enemy': 1},
|
||||
{'battle': 4, 'boss': 1},
|
||||
]
|
||||
|
||||
|
||||
class Config:
|
||||
SUBMARINE = 0
|
||||
FLEET_BOSS = 1
|
||||
|
||||
MAP_HAS_AMBUSH = False
|
||||
|
||||
|
||||
class Campaign(CampaignBase):
|
||||
MAP = MAP
|
||||
|
||||
def battle_0(self):
|
||||
return self.battle_default()
|
||||
|
||||
def battle_4(self):
|
||||
return self.brute_clear_boss()
|
33
campaign/event_20200507_cn/sp2.py
Normal file
33
campaign/event_20200507_cn/sp2.py
Normal file
@ -0,0 +1,33 @@
|
||||
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_20200507_cn.sp1 import Config
|
||||
|
||||
|
||||
MAP = CampaignMap()
|
||||
MAP.map_data = '''
|
||||
-- -- ++ ++ -- ME -- ++ ++ ME --
|
||||
ME ME ++ ++ ME -- ME -- ME -- ME
|
||||
ME -- MB -- MB -- -- -- -- -- --
|
||||
++ -- MB -- MB __ ME ++ ++ ME ++
|
||||
SP -- ME -- ME -- -- ++ ME -- ME
|
||||
SP SP ++ ++ ++ ME -- -- -- -- ME
|
||||
'''
|
||||
MAP.spawn_data = [
|
||||
{'battle': 0, 'enemy': 3},
|
||||
{'battle': 1, 'enemy': 2},
|
||||
{'battle': 2, 'enemy': 1},
|
||||
{'battle': 3, 'enemy': 1},
|
||||
{'battle': 4, 'boss': 1},
|
||||
]
|
||||
|
||||
|
||||
class Campaign(CampaignBase):
|
||||
MAP = MAP
|
||||
|
||||
def battle_0(self):
|
||||
return self.battle_default()
|
||||
|
||||
def battle_4(self):
|
||||
return self.brute_clear_boss()
|
41
campaign/event_20200507_cn/sp3.py
Normal file
41
campaign/event_20200507_cn/sp3.py
Normal file
@ -0,0 +1,41 @@
|
||||
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_20200507_cn.sp1 import Config as ConfigBase
|
||||
|
||||
|
||||
MAP = CampaignMap()
|
||||
MAP.map_data = '''
|
||||
++ ++ ++ ME ME ++ MB MB
|
||||
ME -- -- -- -- ME -- MB
|
||||
-- -- ME ME -- __ -- ++
|
||||
ME -- ++ ++ -- ME -- ME
|
||||
-- -- SP SP -- ++ -- ME
|
||||
ME -- -- -- ME ++ ME --
|
||||
++ ++ ME -- -- -- -- ME
|
||||
++ ME ME -- ME ++ ME --
|
||||
'''
|
||||
MAP.camera_data = ['D3', 'D6']
|
||||
MAP.spawn_data = [
|
||||
{'battle': 0, 'enemy': 3},
|
||||
{'battle': 1, 'enemy': 2},
|
||||
{'battle': 2, 'enemy': 1},
|
||||
{'battle': 3, 'enemy': 1},
|
||||
{'battle': 4, 'enemy': 1},
|
||||
{'battle': 5, 'boss': 1},
|
||||
]
|
||||
|
||||
|
||||
class Config(ConfigBase):
|
||||
FLEET_BOSS = 2
|
||||
|
||||
|
||||
class Campaign(CampaignBase):
|
||||
MAP = MAP
|
||||
|
||||
def battle_0(self):
|
||||
return self.battle_default()
|
||||
|
||||
def battle_5(self):
|
||||
return self.brute_clear_boss()
|
@ -321,7 +321,7 @@ def main(ini_name=''):
|
||||
event_parser = subs.add_parser('活动图')
|
||||
|
||||
description = """
|
||||
支持复刻苍红的回响, C2和D3有单独优化
|
||||
支持「夜幕下的归途」(event_20200507_cn), SP1至SP3均有优化
|
||||
出击未优化关卡或地图未达到安全海域时, 使用开荒模式运行(较慢)
|
||||
"""
|
||||
event = event_parser.add_argument_group(
|
||||
@ -330,7 +330,7 @@ def main(ini_name=''):
|
||||
choices=['a1', 'a2', 'a3', 'b1', 'b2', 'b3', 'c1', 'c2', 'c3', 'd1', 'd2', 'd3'],
|
||||
help='例如 d3')
|
||||
event.add_argument('--sp地图', default=default('--sp地图'),
|
||||
choices=['sp3', 'sp2', 'sp1'],
|
||||
choices=['sp1', 'sp2', 'sp3'],
|
||||
help='例如 sp3')
|
||||
event.add_argument('--活动名称', default=default('--活动名称'), choices=event_folder, help='例如 event_20200312_cn')
|
||||
|
||||
|
@ -196,6 +196,7 @@ dic_chi_to_eng = {
|
||||
'复刻斯图尔特的硝烟': 'event_20200312_cn',
|
||||
'微层混合': 'event_20200326_cn',
|
||||
'复刻苍红的回响': 'event_20200423_cn',
|
||||
'夜幕下的归途': 'event_20200507_cn',
|
||||
}
|
||||
dic_eng_to_chi = {v: k for k, v in dic_chi_to_eng.items()}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user