mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-27 07:18:22 +08:00
Add: Credit fight of MAA
This commit is contained in:
@@ -176,6 +176,7 @@
|
|||||||
"ServerUpdate": "04:00"
|
"ServerUpdate": "04:00"
|
||||||
},
|
},
|
||||||
"MaaMall": {
|
"MaaMall": {
|
||||||
|
"CreditFight": false,
|
||||||
"Shopping": true,
|
"Shopping": true,
|
||||||
"ForceShoppingIfCreditFull": false,
|
"ForceShoppingIfCreditFull": false,
|
||||||
"BuyFirst": "招聘许可 > 龙门币",
|
"BuyFirst": "招聘许可 > 龙门币",
|
||||||
|
|||||||
@@ -636,6 +636,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"MaaMall": {
|
"MaaMall": {
|
||||||
|
"CreditFight": {
|
||||||
|
"type": "checkbox",
|
||||||
|
"value": false
|
||||||
|
},
|
||||||
"Shopping": {
|
"Shopping": {
|
||||||
"type": "checkbox",
|
"type": "checkbox",
|
||||||
"value": true
|
"value": true
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ MaaCustomInfrast:
|
|||||||
type: textarea
|
type: textarea
|
||||||
|
|
||||||
MaaMall:
|
MaaMall:
|
||||||
|
CreditFight: false
|
||||||
Shopping: true
|
Shopping: true
|
||||||
ForceShoppingIfCreditFull: false
|
ForceShoppingIfCreditFull: false
|
||||||
BuyFirst:
|
BuyFirst:
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ class GeneratedConfig:
|
|||||||
MaaCustomInfrast_Filename = None
|
MaaCustomInfrast_Filename = None
|
||||||
|
|
||||||
# Group `MaaMall`
|
# Group `MaaMall`
|
||||||
|
MaaMall_CreditFight = False
|
||||||
MaaMall_Shopping = True
|
MaaMall_Shopping = True
|
||||||
MaaMall_ForceShoppingIfCreditFull = False
|
MaaMall_ForceShoppingIfCreditFull = False
|
||||||
MaaMall_BuyFirst = '招聘许可 > 龙门币'
|
MaaMall_BuyFirst = '招聘许可 > 龙门币'
|
||||||
|
|||||||
@@ -312,6 +312,10 @@
|
|||||||
"name": "MaaMall._info.name",
|
"name": "MaaMall._info.name",
|
||||||
"help": "MaaMall._info.help"
|
"help": "MaaMall._info.help"
|
||||||
},
|
},
|
||||||
|
"CreditFight": {
|
||||||
|
"name": "MaaMall.CreditFight.name",
|
||||||
|
"help": "MaaMall.CreditFight.help"
|
||||||
|
},
|
||||||
"Shopping": {
|
"Shopping": {
|
||||||
"name": "MaaMall.Shopping.name",
|
"name": "MaaMall.Shopping.name",
|
||||||
"help": "MaaMall.Shopping.help"
|
"help": "MaaMall.Shopping.help"
|
||||||
|
|||||||
@@ -312,6 +312,10 @@
|
|||||||
"name": "MaaMall._info.name",
|
"name": "MaaMall._info.name",
|
||||||
"help": "MaaMall._info.help"
|
"help": "MaaMall._info.help"
|
||||||
},
|
},
|
||||||
|
"CreditFight": {
|
||||||
|
"name": "MaaMall.CreditFight.name",
|
||||||
|
"help": "MaaMall.CreditFight.help"
|
||||||
|
},
|
||||||
"Shopping": {
|
"Shopping": {
|
||||||
"name": "MaaMall.Shopping.name",
|
"name": "MaaMall.Shopping.name",
|
||||||
"help": "MaaMall.Shopping.help"
|
"help": "MaaMall.Shopping.help"
|
||||||
|
|||||||
@@ -312,6 +312,10 @@
|
|||||||
"name": "信用商店",
|
"name": "信用商店",
|
||||||
"help": ""
|
"help": ""
|
||||||
},
|
},
|
||||||
|
"CreditFight": {
|
||||||
|
"name": "借助战赚信用",
|
||||||
|
"help": "借助战打一把OF-1赚30信用\n战斗任务的关卡设置为”上次“时会被自动跳过\n火蓝之心OF-1未解锁时请勿勾选"
|
||||||
|
},
|
||||||
"Shopping": {
|
"Shopping": {
|
||||||
"name": "信用购物",
|
"name": "信用购物",
|
||||||
"help": ""
|
"help": ""
|
||||||
|
|||||||
@@ -312,6 +312,10 @@
|
|||||||
"name": "MaaMall._info.name",
|
"name": "MaaMall._info.name",
|
||||||
"help": "MaaMall._info.help"
|
"help": "MaaMall._info.help"
|
||||||
},
|
},
|
||||||
|
"CreditFight": {
|
||||||
|
"name": "MaaMall.CreditFight.name",
|
||||||
|
"help": "MaaMall.CreditFight.help"
|
||||||
|
},
|
||||||
"Shopping": {
|
"Shopping": {
|
||||||
"name": "MaaMall.Shopping.name",
|
"name": "MaaMall.Shopping.name",
|
||||||
"help": "MaaMall.Shopping.help"
|
"help": "MaaMall.Shopping.help"
|
||||||
|
|||||||
@@ -363,7 +363,15 @@ class AssistantHandler:
|
|||||||
def mall(self):
|
def mall(self):
|
||||||
buy_first = self.split_filter(self.config.MaaMall_BuyFirst)
|
buy_first = self.split_filter(self.config.MaaMall_BuyFirst)
|
||||||
blacklist = self.split_filter(self.config.MaaMall_BlackList)
|
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', {
|
self.maa_start('Mall', {
|
||||||
|
"credit_fight": credit_fight,
|
||||||
"shopping": self.config.MaaMall_Shopping,
|
"shopping": self.config.MaaMall_Shopping,
|
||||||
"buy_first": buy_first,
|
"buy_first": buy_first,
|
||||||
"blacklist": blacklist,
|
"blacklist": blacklist,
|
||||||
|
|||||||
Reference in New Issue
Block a user