mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-05 02:47:38 +08:00
Force collect data key when data key is full to eliminate red dots
This commit is contained in:
@@ -5964,6 +5964,12 @@
|
|||||||
"type": "hide",
|
"type": "hide",
|
||||||
"value": "00:00"
|
"value": "00:00"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"DataKey": {
|
||||||
|
"ForceGet": {
|
||||||
|
"type": "checkbox",
|
||||||
|
"value": false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"SupplyPack": {
|
"SupplyPack": {
|
||||||
|
|||||||
@@ -432,6 +432,8 @@ Gacha:
|
|||||||
option: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
|
option: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
|
||||||
UseTicket: true
|
UseTicket: true
|
||||||
UseDrill: false
|
UseDrill: false
|
||||||
|
DataKey:
|
||||||
|
ForceGet: false
|
||||||
SupplyPack:
|
SupplyPack:
|
||||||
WeeklyFreeSupplyPack: true
|
WeeklyFreeSupplyPack: true
|
||||||
BattlePass:
|
BattlePass:
|
||||||
|
|||||||
@@ -269,6 +269,9 @@ class GeneratedConfig:
|
|||||||
Gacha_UseTicket = True
|
Gacha_UseTicket = True
|
||||||
Gacha_UseDrill = False
|
Gacha_UseDrill = False
|
||||||
|
|
||||||
|
# Group `DataKey`
|
||||||
|
DataKey_ForceGet = False
|
||||||
|
|
||||||
# Group `SupplyPack`
|
# Group `SupplyPack`
|
||||||
SupplyPack_WeeklyFreeSupplyPack = True
|
SupplyPack_WeeklyFreeSupplyPack = True
|
||||||
|
|
||||||
|
|||||||
@@ -1596,6 +1596,16 @@
|
|||||||
"help": "Expedite the recently submitted orders"
|
"help": "Expedite the recently submitted orders"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"DataKey": {
|
||||||
|
"_info": {
|
||||||
|
"name": "DataKey",
|
||||||
|
"help": ""
|
||||||
|
},
|
||||||
|
"ForceGet": {
|
||||||
|
"name": "ForceCollect DataKey",
|
||||||
|
"help": "Force collect data key when data key is full to eliminate red dots"
|
||||||
|
}
|
||||||
|
},
|
||||||
"SupplyPack": {
|
"SupplyPack": {
|
||||||
"_info": {
|
"_info": {
|
||||||
"name": "Supply Pack Settings",
|
"name": "Supply Pack Settings",
|
||||||
|
|||||||
@@ -1596,6 +1596,16 @@
|
|||||||
"help": "Gacha.UseDrill.help"
|
"help": "Gacha.UseDrill.help"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"DataKey": {
|
||||||
|
"_info": {
|
||||||
|
"name": "DataKey._info.name",
|
||||||
|
"help": "DataKey._info.help"
|
||||||
|
},
|
||||||
|
"ForceGet": {
|
||||||
|
"name": "DataKey.ForceGet.name",
|
||||||
|
"help": "DataKey.ForceGet.help"
|
||||||
|
}
|
||||||
|
},
|
||||||
"SupplyPack": {
|
"SupplyPack": {
|
||||||
"_info": {
|
"_info": {
|
||||||
"name": "SupplyPack._info.name",
|
"name": "SupplyPack._info.name",
|
||||||
|
|||||||
@@ -1596,6 +1596,16 @@
|
|||||||
"help": "选否会等到明天再下水,能贪一个钻头"
|
"help": "选否会等到明天再下水,能贪一个钻头"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"DataKey": {
|
||||||
|
"_info": {
|
||||||
|
"name": "档案秘钥",
|
||||||
|
"help": ""
|
||||||
|
},
|
||||||
|
"ForceGet": {
|
||||||
|
"name": "强制领取档案秘钥",
|
||||||
|
"help": "档案秘钥已满时,强制领取(消除红点)"
|
||||||
|
}
|
||||||
|
},
|
||||||
"SupplyPack": {
|
"SupplyPack": {
|
||||||
"_info": {
|
"_info": {
|
||||||
"name": "优惠礼包",
|
"name": "优惠礼包",
|
||||||
|
|||||||
@@ -1596,6 +1596,16 @@
|
|||||||
"help": ""
|
"help": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"DataKey": {
|
||||||
|
"_info": {
|
||||||
|
"name": "檔案密鑰",
|
||||||
|
"help": ""
|
||||||
|
},
|
||||||
|
"ForceGet": {
|
||||||
|
"name": "强制領取",
|
||||||
|
"help": "檔案密鑰已滿時,强制領取(消除紅點)"
|
||||||
|
}
|
||||||
|
},
|
||||||
"SupplyPack": {
|
"SupplyPack": {
|
||||||
"_info": {
|
"_info": {
|
||||||
"name": "優惠禮包",
|
"name": "優惠禮包",
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ class RewardDataKey(UI):
|
|||||||
|
|
||||||
current, remain, total = DATA_KEY.ocr(self.device.image)
|
current, remain, total = DATA_KEY.ocr(self.device.image)
|
||||||
logger.info(f'Inventory: {current} / {total}, Remain: {remain}')
|
logger.info(f'Inventory: {current} / {total}, Remain: {remain}')
|
||||||
if remain <= 0:
|
if not self.config.DataKey_ForceGet and remain <= 0 :
|
||||||
logger.info('No more room for additional data key')
|
logger.info('No more room for additional data key')
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user