mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 16:47:03 +08:00
Add: Capability for Config decorator to replace func pointer based on options
Add: [EN] HP check within OS map after zone clear for os_world_clear module Retreat for repair if any one ship below configured threshold
This commit is contained in:
@@ -513,8 +513,10 @@ class AzurLaneConfig:
|
||||
"""
|
||||
Os_world_clear
|
||||
"""
|
||||
OS_WORLD_MIN_LEVEL = 1
|
||||
OS_WORLD_MAX_LEVEL = 4
|
||||
OS_WORLD_REPAIR_AFTER_CLEAR = 3
|
||||
ENABLE_OS_WORLD_REPAIR = True
|
||||
OS_WORLD_REPAIR_THRESHOLD = 0.4
|
||||
|
||||
"""
|
||||
module.os
|
||||
@@ -813,8 +815,10 @@ class AzurLaneConfig:
|
||||
|
||||
# OS clear world
|
||||
option = config['Os_world_clear']
|
||||
self.OS_WORLD_MIN_LEVEL = int(option['os_world_min_level'])
|
||||
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'])
|
||||
self.ENABLE_OS_WORLD_REPAIR = to_bool(option['enable_os_world_repair'])
|
||||
self.OS_WORLD_REPAIR_THRESHOLD = float(option['os_world_repair_threshold'])
|
||||
|
||||
# OS fully auto
|
||||
option = config['Os_fully_auto']
|
||||
|
||||
Reference in New Issue
Block a user