1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 00:28:20 +08:00

Add: 支持App控制, 支持自动登录

- 修复了12-4地图信息的错误
This commit is contained in:
LmeSzinc
2020-04-10 14:18:10 +08:00
parent 677757ecfc
commit ae94260ff8
17 changed files with 86 additions and 3 deletions

View File

@@ -201,8 +201,9 @@ def main(ini_name=''):
# ==========设备设置==========
emulator_parser = subs.add_parser('设备设置')
emulator = emulator_parser.add_argument_group('模拟器', '')
emulator = emulator_parser.add_argument_group('模拟器', '需要运行一次来保存选项, 会检查游戏是否启动')
emulator.add_argument('--设备', default=default('--设备'), help='例如 127.0.0.1:62001')
emulator.add_argument('--包名', default=default('--包名'), help='如果不是Biliibli国服, 或者使用了非官方客户端, 需修改')
# ==========每日任务==========
daily_parser = subs.add_parser('每日任务困难演习')

View File

@@ -124,6 +124,7 @@ class AzurLaneConfig:
module.device
"""
SERIAL = '127.0.0.1:62001'
PACKAGE_NAME = 'com.bilibili.azurlane'
COMMAND = ''
USE_ADB_SREENSHOT = False
USE_ADB_CONTROL = False
@@ -327,6 +328,7 @@ class AzurLaneConfig:
# Emulator
option = config['Emulator']
self.SERIAL = option['serial']
self.PACKAGE_NAME = option['package_name'].strip()
option = config['Setting']
# Stop condition

View File

@@ -102,6 +102,7 @@ dic_chi_to_eng = {
'钻石类紧急委托': 'urgent_gem',
'观舰类紧急委托': 'urgent_ship',
'设备': 'serial',
'包名': 'package_name',
'打每日': 'enable_daily_mission',
'打困难': 'enable_hard_campaign',
'打演习': 'enable_exercise',