mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-23 17:11:42 +00:00
061077c690
- 修复了日常结束后不收菜的问题 - 修复登录 - 增加不能使用潜艇的地图的覆盖设置 - 修复了因图片不更新导致二队不会跳过阵容检查的问题 - 修复了一些过场图导致进入战斗判断错误的问题
39 lines
873 B
Python
39 lines
873 B
Python
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.shape = 'G1'
|
|
MAP.map_data = '''
|
|
SP -- -- -- -- ME MB
|
|
'''
|
|
MAP.spawn_data = [
|
|
{'battle': 0, 'enemy': 1},
|
|
{'battle': 1, 'boss': 1},
|
|
]
|
|
|
|
A1, B1, C1, D1, E1, F1, G1, \
|
|
= MAP.flatten()
|
|
|
|
class Config:
|
|
FLEET_2 = 0
|
|
SUBMARINE = 0
|
|
INTERNAL_LINES_FIND_PEAKS_PARAMETERS = {
|
|
'height': (120, 255 - 40),
|
|
'width': (1.5, 10),
|
|
'prominence': 10,
|
|
'distance': 35,
|
|
}
|
|
INTERNAL_LINES_HOUGHLINES_THRESHOLD = 40
|
|
EDGE_LINES_HOUGHLINES_THRESHOLD = 40
|
|
|
|
class Campaign(CampaignBase):
|
|
MAP = MAP
|
|
|
|
def battle_0(self):
|
|
return self.battle_default()
|
|
|
|
def battle_1(self):
|
|
return self.clear_boss()
|