mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-09 05:47:30 +08:00
Add: Credit fight of MAA
This commit is contained in:
parent
20896b68c3
commit
c185da3f22
@ -176,6 +176,7 @@
|
||||
"ServerUpdate": "04:00"
|
||||
},
|
||||
"MaaMall": {
|
||||
"CreditFight": false,
|
||||
"Shopping": true,
|
||||
"ForceShoppingIfCreditFull": false,
|
||||
"BuyFirst": "招聘许可 > 龙门币",
|
||||
|
@ -636,6 +636,10 @@
|
||||
}
|
||||
},
|
||||
"MaaMall": {
|
||||
"CreditFight": {
|
||||
"type": "checkbox",
|
||||
"value": false
|
||||
},
|
||||
"Shopping": {
|
||||
"type": "checkbox",
|
||||
"value": true
|
||||
|
@ -91,6 +91,7 @@ MaaCustomInfrast:
|
||||
type: textarea
|
||||
|
||||
MaaMall:
|
||||
CreditFight: false
|
||||
Shopping: true
|
||||
ForceShoppingIfCreditFull: false
|
||||
BuyFirst:
|
||||
|
@ -69,6 +69,7 @@ class GeneratedConfig:
|
||||
MaaCustomInfrast_Filename = None
|
||||
|
||||
# Group `MaaMall`
|
||||
MaaMall_CreditFight = False
|
||||
MaaMall_Shopping = True
|
||||
MaaMall_ForceShoppingIfCreditFull = False
|
||||
MaaMall_BuyFirst = '招聘许可 > 龙门币'
|
||||
|
@ -312,6 +312,10 @@
|
||||
"name": "MaaMall._info.name",
|
||||
"help": "MaaMall._info.help"
|
||||
},
|
||||
"CreditFight": {
|
||||
"name": "MaaMall.CreditFight.name",
|
||||
"help": "MaaMall.CreditFight.help"
|
||||
},
|
||||
"Shopping": {
|
||||
"name": "MaaMall.Shopping.name",
|
||||
"help": "MaaMall.Shopping.help"
|
||||
|
@ -312,6 +312,10 @@
|
||||
"name": "MaaMall._info.name",
|
||||
"help": "MaaMall._info.help"
|
||||
},
|
||||
"CreditFight": {
|
||||
"name": "MaaMall.CreditFight.name",
|
||||
"help": "MaaMall.CreditFight.help"
|
||||
},
|
||||
"Shopping": {
|
||||
"name": "MaaMall.Shopping.name",
|
||||
"help": "MaaMall.Shopping.help"
|
||||
|
@ -312,6 +312,10 @@
|
||||
"name": "信用商店",
|
||||
"help": ""
|
||||
},
|
||||
"CreditFight": {
|
||||
"name": "借助战赚信用",
|
||||
"help": "借助战打一把OF-1赚30信用\n战斗任务的关卡设置为”上次“时会被自动跳过\n火蓝之心OF-1未解锁时请勿勾选"
|
||||
},
|
||||
"Shopping": {
|
||||
"name": "信用购物",
|
||||
"help": ""
|
||||
|
@ -312,6 +312,10 @@
|
||||
"name": "MaaMall._info.name",
|
||||
"help": "MaaMall._info.help"
|
||||
},
|
||||
"CreditFight": {
|
||||
"name": "MaaMall.CreditFight.name",
|
||||
"help": "MaaMall.CreditFight.help"
|
||||
},
|
||||
"Shopping": {
|
||||
"name": "MaaMall.Shopping.name",
|
||||
"help": "MaaMall.Shopping.help"
|
||||
|
@ -180,7 +180,7 @@ class AssistantHandler:
|
||||
self.serial = ConnectionAttr.find_bluestacks4_hyperv(self.serial)
|
||||
if self.is_bluestacks5_hyperv:
|
||||
self.serial = ConnectionAttr.find_bluestacks5_hyperv(self.serial)
|
||||
|
||||
|
||||
@cached_property
|
||||
def is_bluestacks4_hyperv(self):
|
||||
return "bluestacks4-hyperv" in self.serial
|
||||
@ -363,7 +363,15 @@ class AssistantHandler:
|
||||
def mall(self):
|
||||
buy_first = self.split_filter(self.config.MaaMall_BuyFirst)
|
||||
blacklist = self.split_filter(self.config.MaaMall_BlackList)
|
||||
credit_fight = self.config.MaaMall_CreditFight
|
||||
if self.config.cross_get(keys='MaaMaterial.MaaFight.Stage') == 'last' \
|
||||
and self.config.cross_get(keys='MaaMaterial.Scheduler.Enable', default=False):
|
||||
credit_fight = False
|
||||
if self.config.cross_get(keys='MaaFight.MaaFight.Stage') == 'last' \
|
||||
and self.config.cross_get(keys='MaaFight.Scheduler.Enable', default=False):
|
||||
credit_fight = False
|
||||
self.maa_start('Mall', {
|
||||
"credit_fight": credit_fight,
|
||||
"shopping": self.config.MaaMall_Shopping,
|
||||
"buy_first": buy_first,
|
||||
"blacklist": blacklist,
|
||||
|
Loading…
Reference in New Issue
Block a user