mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-17 13:25:26 +08:00
Add: [EN] Support for OS world clearing
This commit is contained in:
@@ -579,6 +579,17 @@ def main(ini_name=''):
|
||||
# os_semi = os_semi_parser.add_argument_group('os_clear_map', 'Only recommended to use in save zones. To use in normal zones, execute air search manually first.\nUsage: Enter map manually and run\nRecommend to re-check map manually after run', gooey_options={'label_color': '#931D03'})
|
||||
# os_semi.add_argument('--enable_os_ash_attack', default=default('--enable_os_ash_attack'), choices=['yes', 'no'], help='Attack ash if beacon data is full', gooey_options={'label_color': '#4B5F83'})
|
||||
|
||||
# ==========OS clear world==========
|
||||
os_world_parser = subs.add_parser('os_world_clear')
|
||||
os_world = os_world_parser.add_argument_group('os_world_clear', 'Explore all unsafe zones and turn into safe', gooey_options={'label_color': '#931D03'})
|
||||
os_world.add_argument('--os_world_max_level', default=default('--os_world_max_level'),
|
||||
help='Stop unsafe exploration after completing all zones of at '
|
||||
'least the configured hazard level. '
|
||||
'Recommended 4 or lower for single fleet clear, 5 and higher '
|
||||
'tend to be more difficult depending on adaptibility numbers',
|
||||
gooey_options={'label_color': '#4B5F83'})
|
||||
os_world.add_argument('--os_world_repair_after_clear', default=default('--os_world_repair_after_clear'), help='Number of zone clears before retreating to port for repair', gooey_options={'label_color': '#4B5F83'})
|
||||
|
||||
# ==========OS fully auto==========
|
||||
os_parser = subs.add_parser('os_fully_auto')
|
||||
os = os_parser.add_argument_group('OS fully auto', 'Run sequence: Accept dailies and buy supplies > do dailies > do obscure zone > meowfficer farming\nPort shop is a limited pool of items. Ports have the same items, but appear randomly. Buy all if you want good items\nShop priority format: ActionPoint > PurpleCoins > TuringSample > RepairPack', gooey_options={'label_color': '#931D03'})
|
||||
|
||||
@@ -510,6 +510,12 @@ class AzurLaneConfig:
|
||||
"""
|
||||
ENABLE_OS_SEMI_STORY_SKIP = True
|
||||
|
||||
"""
|
||||
Os_world_clear
|
||||
"""
|
||||
OS_WORLD_MAX_LEVEL = 4
|
||||
OS_WORLD_REPAIR_AFTER_CLEAR = 3
|
||||
|
||||
"""
|
||||
module.os
|
||||
"""
|
||||
@@ -805,6 +811,11 @@ class AzurLaneConfig:
|
||||
option = config['Os_clear_map']
|
||||
self.ENABLE_OS_ASH_ATTACK = to_bool(option['enable_os_ash_attack'])
|
||||
|
||||
# OS clear world
|
||||
option = config['Os_world_clear']
|
||||
self.OS_WORLD_MAX_LEVEL = int(option['os_world_max_level']) + 1
|
||||
self.OS_WORLD_REPAIR_AFTER_CLEAR = int(option['os_world_repair_after_clear'])
|
||||
|
||||
# OS fully auto
|
||||
option = config['Os_fully_auto']
|
||||
for attr in ['do_os_in_daily', 'enable_os_mission_accept', 'enable_os_mission_finish', 'enable_os_supply_buy',
|
||||
|
||||
@@ -237,6 +237,8 @@ dic_true_eng_to_eng = {
|
||||
'ammo_pick_up_124': 'ammo_pick_up_124',
|
||||
'default_serial_list': 'default_serial_list',
|
||||
'enable_os_semi_story_skip': 'enable_os_semi_story_skip',
|
||||
'os_world_max_level': 'os_world_max_level',
|
||||
'os_world_repair_after_clear': 'os_world_repair_after_clear',
|
||||
'do_os_in_daily': 'do_os_in_daily',
|
||||
'enable_os_mission_accept': 'enable_os_mission_accept',
|
||||
'enable_os_mission_finish': 'enable_os_mission_finish',
|
||||
|
||||
Reference in New Issue
Block a user