stage=setting_parser.add_argument_group('Level settings','Need to Press start to save your settings.')
stage.add_argument('--enable_stop_condition',default=default('--enable_stop_condition'),choices=['yes','no'],help='If enabled will start reward loop when triggered any filter below')
stage.add_argument('--enable_exception',default=default('--enable_exception'),choices=['yes','no'],help='Enable or disable some exceptions, ALAS will withdraw from the map when it occurs instead of stopping')
stage.add_argument('--enable_fast_forward',default=default('--enable_fast_forward'),choices=['yes','no'],help='Enable or disable clearing mode')
stop=stage.add_argument_group('Stop condition','After triggering, it will not stop immediately. It will complete the current attack first, Set 0 to disable')
stop.add_argument('--if_count_greater_than',default=default('--if_count_greater_than'),help='How many map completions\n until ALAS enter in Reward loop.')
stop.add_argument('--if_time_reach',default=default('--if_time_reach'),help='How many time in minutes run ALAS until stop\n. It is recommended about\n 10 minutes to complete the current attack. Format 14:59')
stop.add_argument('--if_oil_lower_than',default=default('--if_oil_lower_than'),help='Will enter in reward loop when\ntriggered Oil limit')
stop.add_argument('--if_trigger_emotion_control',default=default('--if_trigger_emotion_control'),choices=['yes','no'],help='Will enter in reward loop when\ntriggered Mood limit')
fleet=setting_parser.add_argument_group('Attack fleet','No support for alternate lane squadrons, inactive map or weekly mode will ignore the step setting')
f1=fleet.add_argument_group('Mob Fleet','Players can choose a formation before battle. Though it has no effect appearance-wise, the formations applies buffs to certain stats.\nLine Ahead: Increases Firepower and Torpedo by 15%, but reduces Evasion by 10% (Applies only to Vanguard fleet)\nDouble Line: Increases Evasion by 30%, but decreases Firepower and Torpedo by 5% (Applies only to Vanguard fleet)\nDiamond: Increases Anti-Air by 20% (no penalties, applies to entire fleet)')
f1.add_argument('--fleet_step_1',default=default('--fleet_step_1'),choices=['1','2','3','4','5','6'],help='In event map, fleet has limit on moving, so fleet_step is how far can a fleet goes in one operation, if map cleared, it will be ignored')
f2.add_argument('--fleet_step_2',default=default('--fleet_step_2'),choices=['1','2','3','4','5','6'],help='In event map, fleet has limit on moving, so fleet_step is how far can a fleet goes in one operation, if map cleared, it will be ignored')
f3.add_argument('--fleet_step_3',default=default('--fleet_step_3'),choices=['1','2','3','4','5','6'],help='In event map, fleet has limit on moving, so fleet_step is how far can a fleet goes in one operation, if map cleared, it will be ignored')
# 潜艇设置
submarine=setting_parser.add_argument_group('Submarine settings','Only supported: hunt_only, do_not_use and every_combat')
hp_balance.add_argument('--scout_hp_difference_threshold',default=default('--scout_hp_difference_threshold'),help='When the difference in HP volume is greater than the threshold, transpose')
hp_balance.add_argument('--scout_hp_weights',default=default('--scout_hp_weights'),help='Should be repaired when there is a difference in Vanguard, format 1000,1000,1000')
hp_add.add_argument('--emergency_repair_single_threshold',default=default('--emergency_repair_single_threshold'),help='Used when single shipgirl is below the threshold')
hp_add.add_argument('--emergency_repair_hole_threshold',default=default('--emergency_repair_hole_threshold'),help='Used when all front rows or all back rows are below the threshold')
hp_withdraw=hp.add_argument_group('Low HP volume withdrawal','')
hp_withdraw.add_argument('--low_hp_withdraw_threshold',default=default('--low_hp_withdraw_threshold'),help='When HP is below the threshold, retreat')
retire.add_argument('--enhance_order_string',default=default('--enhance_order_string'),help='Use example format "cv > bb > ..." may omit a ship type category altogether to skip otherwise leave blank to use default enhance method')
rarity=retire.add_argument_group('Retirement rarity','The ship type selection is not supported yet. Ignore the following options when using one-key retirement')
drop=setting_parser.add_argument_group('Drop record','Save screenshots of dropped items, which will slow down the click speed when settlement is enabled')
# clear = setting_parser.add_argument_group('Wasteland mode', 'Unopened maps will stop after completion. Opened maps will ignore options, and its done if you do not open up')
# clear.add_argument('--map_star_clear_all', default=default('--map_star_clear_all'), choices=['index_1', 'index_2', 'index_3', 'do_not_use'], help='The first few stars are to destroy all enemy ships')
reward_condition=reward_parser.add_argument_group('Triggering conditions','Need to Press start to save your settings, after running it will enter the on-hook vegetable collection mode')
reward_condition.add_argument('--reward_interval',default=default('--reward_interval'),help='How many minutes to trigger collection')
reward_condition.add_argument('--enable_daily_reward',default=default('--enable_daily_reward'),choices=['yes','no'],help='Run daily as a part of reward')
reward_commission.add_argument('--commission_time_limit',default=default('--commission_time_limit'),help='Ignore orders whose completion time exceeds the limit, Format: 23:30. Fill in 0 if it is not needed')
priority1=reward_commission.add_argument_group('Commission priority by time duration','')
reward_tactical.add_argument('--tactical_exp_first',default=default('--tactical_exp_first'),choices=['yes','no'],help='Choose Yes, give priority to the 150% bonus \nSelect No, give priority to the skills book with the same rarity')
reward_tactical.add_argument('--tactical_book_tier_max',default=default('--tactical_book_tier_max'),choices=['3','2','1'],help='Wich skill book will use first\nT3 is a gold book, T2 is a purple book, T1 is a blue book\ntier_max should greater than or equal to tier_min')
reward_tactical.add_argument('--tactical_book_tier_min',default=default('--tactical_book_tier_min'),choices=['3','2','1'],help='Minimal tier to choose.')
emulator=emulator_parser.add_argument_group('Emulator','Need to Press start to save your settings, it will check whether the game is started \nIf the game has not started, it will be started')
adb.add_argument('--combat_screenshot_interval',default=default('--combat_screenshot_interval'),help='Slow down the screenshot speed during battle and reduce CPU')
daily.add_argument('--enable_daily_mission',default=default('--enable_daily_mission'),help='If there are records on the day, skip',choices=['yes','no'])
daily.add_argument('--enable_hard_campaign',default=default('--enable_hard_campaign'),help='If there are records on the day, skip',choices=['yes','no'])
daily.add_argument('--enable_exercise',default=default('--enable_exercise'),help='If there is a record after refreshing, skip',choices=['yes','no'])
daily.add_argument('--enable_raid_daily',default=default('--enable_raid_daily'),help='If there is a record after refreshing, skip',choices=['yes','no'])
daily_task.add_argument('--daily_fleet',default=default('--daily_fleet'),help='If use one fleet, fill in the index of the fleet, such as 5\nIf use different fleets in different daily, separate index with commas, order: Escort Mission, Advance Mission, Fierce Assault, Tactical Training, such as 5, 5, 5, 6')
daily_task.add_argument('--daily_equipment',default=default('--daily_equipment'),help='Change equipment before playing, unload equipment after playing, do not need to fill in 0 \ncomma, such as 3, 1, 0, 1, 1, 0')
# 困难设置
hard=daily_parser.add_argument_group('Difficult setting','Need to turn on weekly mode')
hard.add_argument('--hard_campaign',default=default('--hard_campaign'),help='For example 10-4')
hard.add_argument('--hard_fleet',default=default('--hard_fleet'),choices=['1','2'],help='For 10-2 hard, Set Fleet 2')
hard.add_argument('--hard_equipment',default=default('--hard_equipment'),help='Change equipment before playing, unload equipment after playing, do not need to fill in 0 \ncomma, such as 3, 1, 0, 1, 1, 0')
exercise.add_argument('--exercise_preserve',default=default('--exercise_preserve'),help='Only 0 are temporarily reserved')
exercise.add_argument('--exercise_try',default=default('--exercise_try'),help='The number of attempts by each opponent')
exercise.add_argument('--exercise_hp_threshold',default=default('--exercise_hp_threshold'),help='HHP <Retreat at Threshold')
exercise.add_argument('--exercise_low_hp_confirm',default=default('--exercise_low_hp_confirm'),help='After HP is below the threshold, it will retreat after a certain period of time \nRecommended 1.0 ~ 3.0')
exercise.add_argument('--exercise_equipment',default=default('--exercise_equipment'),help='Change equipment before playing, unload equipment after playing, do not need to fill in 0 \ncomma, such as 3, 1, 0, 1, 1, 0')
event_bonus.add_argument('--event_ab_chapter',default=default('--event_ab_chapter'),choices=['chapter_ab','chapter_abcd'],help='Chapter with PT bonus')
# event_name = event_ab_parser.add_argument_group('Choose an event', 'bonus for first clear each day')
# event_name.add_argument('--event_name_ab', default=event_latest, choices=event_folder, help='There a dropdown menu with many options')
# event_name.add_argument('--enable_hard_bonus', default=default('--enable_hard_bonus'), choices=['yes', 'no'], help='Will enable Daily bonus for Event hard maps') # Trying implement all event maps
# ==========main==========
main_parser=subs.add_parser('Main_campaign')
# 选择关卡
stage=main_parser.add_argument_group('Choose a level','Main campaign, Currently, not all maps are being supported, check the folder /doc/development_en.md to know how add new maps')
semi.add_argument('--enable_semi_story_skip',default=default('--enable_semi_story_skip'),help='Note that this will automatically confirm all the prompt boxes, including the red face attack',choices=['yes','no'])
c_1_1=c_1_1_parser.add_argument_group('c1-1_affinity_farming','Will auto turn off clearing mode\nWith MVP, 8 battle to 1 affnity. Without MVP, 16 battle to 1 affnity.')
c_12_2.add_argument('--s3_enemy_tolerance',default=default('--s3_enemy_tolerance'),choices=['0','1','2','10'],help='The maximum number of battles to fight against large enemies')
# ==========c124_leveling==========
c_12_4_parser=subs.add_parser('c12-4_leveling')
c_12_4=c_12_4_parser.add_argument_group('12-4 Search enemy settings','Need to ensure that the team has a certain strength')
c_12_4.add_argument('--non_s3_enemy_enter_tolerance',default=default('--non_s3_enemy_enter_tolerance'),choices=['0','1','2'],help='Avoid enemy too strong')
c_12_4.add_argument('--non_s3_enemy_withdraw_tolerance',default=default('--non_s3_enemy_withdraw_tolerance'),choices=['0','1','2','10'],help='How many battles will be fought after there is no large scale enemy')
c_12_4.add_argument('--ammo_pick_up_124',default=default('--ammo_pick_up_124'),choices=['2','3','4','5'],help='How many battles before pick ammo, the recommended is 3')