mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 14:19:25 +08:00
Add: Option to disable Opsi repair
This commit is contained in:
@@ -2198,6 +2198,7 @@
|
||||
"BuyActionPointLimit": 0,
|
||||
"OilLimit": 1000,
|
||||
"RepairThreshold": 0.4,
|
||||
"DontRepair": false,
|
||||
"DoRandomMapEvent": true,
|
||||
"AkashiShopFilter": "ActionPoint > PurpleCoins"
|
||||
},
|
||||
|
||||
@@ -11663,6 +11663,10 @@
|
||||
"type": "input",
|
||||
"value": 0.4
|
||||
},
|
||||
"DontRepair": {
|
||||
"type": "checkbox",
|
||||
"value": false
|
||||
},
|
||||
"DoRandomMapEvent": {
|
||||
"type": "checkbox",
|
||||
"value": true
|
||||
|
||||
@@ -824,6 +824,7 @@ OpsiGeneral:
|
||||
option: [ 0, 1, 2, 3, 4, 5 ]
|
||||
OilLimit: 1000
|
||||
RepairThreshold: 0.4
|
||||
DontRepair: false
|
||||
DoRandomMapEvent: true
|
||||
AkashiShopFilter: |-
|
||||
ActionPoint > PurpleCoins
|
||||
|
||||
@@ -460,6 +460,7 @@ class GeneratedConfig:
|
||||
OpsiGeneral_BuyActionPointLimit = 0 # 0, 1, 2, 3, 4, 5
|
||||
OpsiGeneral_OilLimit = 1000
|
||||
OpsiGeneral_RepairThreshold = 0.4
|
||||
OpsiGeneral_DontRepair = False
|
||||
OpsiGeneral_DoRandomMapEvent = True
|
||||
OpsiGeneral_AkashiShopFilter = 'ActionPoint > PurpleCoins'
|
||||
|
||||
|
||||
@@ -2871,6 +2871,10 @@
|
||||
"name": "Repair Threshold",
|
||||
"help": "After completion of an OpSi map; if any one ship's HP is below threshold, retreat back to nearest port for repairs\n0.0 ~ 1.0"
|
||||
},
|
||||
"DontRepair": {
|
||||
"name": "OpsiGeneral.DontRepair.name",
|
||||
"help": "OpsiGeneral.DontRepair.help"
|
||||
},
|
||||
"DoRandomMapEvent": {
|
||||
"name": "Do Random Map Events",
|
||||
"help": "Rescan the whole map after auto search, purchase akashi's shop, use siren logging tower, use siren scanning device, unlock mechanism that require 2 fleets,"
|
||||
|
||||
@@ -2871,6 +2871,10 @@
|
||||
"name": "OpsiGeneral.RepairThreshold.name",
|
||||
"help": "OpsiGeneral.RepairThreshold.help"
|
||||
},
|
||||
"DontRepair": {
|
||||
"name": "OpsiGeneral.DontRepair.name",
|
||||
"help": "OpsiGeneral.DontRepair.help"
|
||||
},
|
||||
"DoRandomMapEvent": {
|
||||
"name": "OpsiGeneral.DoRandomMapEvent.name",
|
||||
"help": "OpsiGeneral.DoRandomMapEvent.help"
|
||||
|
||||
@@ -2871,6 +2871,10 @@
|
||||
"name": "任意舰船血量低于 X 后,回港修理",
|
||||
"help": "0.0 ~ 1.0"
|
||||
},
|
||||
"DontRepair": {
|
||||
"name": "禁用回港维修",
|
||||
"help": ""
|
||||
},
|
||||
"DoRandomMapEvent": {
|
||||
"name": "完成地图随机事件",
|
||||
"help": "在自律寻敌完成后重新扫描一遍地图,购买明石商店,使用塞壬信息收集装置、使用塞壬探测装置、解锁两舰队机关"
|
||||
|
||||
@@ -2871,6 +2871,10 @@
|
||||
"name": "任意艦船血量低於 X 後,回港修理",
|
||||
"help": "0.0 ~ 1.0"
|
||||
},
|
||||
"DontRepair": {
|
||||
"name": "OpsiGeneral.DontRepair.name",
|
||||
"help": "OpsiGeneral.DontRepair.help"
|
||||
},
|
||||
"DoRandomMapEvent": {
|
||||
"name": "完成地圖隨機事件",
|
||||
"help": "在自律尋敵完成後重新掃描一遍地圖,購買明石商店、使用塞壬信息收集裝置、使用塞壬探測裝置、解鎖兩艦隊機關"
|
||||
|
||||
@@ -206,6 +206,9 @@ class OSMap(OSFleet, Map, GlobeCamera, StrategicSearchHandler):
|
||||
revert (bool): If go back to previous zone.
|
||||
"""
|
||||
logger.hr('OS fleet repair')
|
||||
if self.config.OpsiGeneral_DontRepair:
|
||||
logger.info('Repair disabled, Alas will not repair any ship.')
|
||||
return False
|
||||
prev = self.zone
|
||||
if self.zone.is_azur_port:
|
||||
logger.info('Already in azur port')
|
||||
|
||||
Reference in New Issue
Block a user