mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-08 12:47:32 +08:00
Upd: move meta_reward execution as subtask under OpsiAshBeacon and AshBeaconAssist
This commit is contained in:
parent
d14f0018fa
commit
96adc8c4c7
4
alas.py
4
alas.py
@ -223,10 +223,6 @@ class AzurLaneAutoScript:
|
||||
from module.freebies.freebies import Freebies
|
||||
Freebies(config=self.config, device=self.device).run()
|
||||
|
||||
def meta_reward(self):
|
||||
from module.meta_reward.meta_reward import MetaReward
|
||||
MetaReward(config=self.config, device=self.device).run()
|
||||
|
||||
def daily(self):
|
||||
if self.config.SERVER == 'tw':
|
||||
from module.daily.daily_tw import Daily
|
||||
|
@ -1230,19 +1230,6 @@
|
||||
"WeeklyFreeSupplyPack": true
|
||||
}
|
||||
},
|
||||
"MetaReward": {
|
||||
"Scheduler": {
|
||||
"Enable": true,
|
||||
"NextRun": "2020-01-01 00:00:00",
|
||||
"Command": "MetaReward",
|
||||
"SuccessInterval": 30,
|
||||
"FailureInterval": 30,
|
||||
"ServerUpdate": "00:00"
|
||||
},
|
||||
"MetaReward": {
|
||||
"MetaReward": true
|
||||
}
|
||||
},
|
||||
"Daily": {
|
||||
"Scheduler": {
|
||||
"Enable": false,
|
||||
|
@ -6337,45 +6337,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"MetaReward": {
|
||||
"Scheduler": {
|
||||
"Enable": {
|
||||
"type": "checkbox",
|
||||
"value": true
|
||||
},
|
||||
"NextRun": {
|
||||
"type": "datetime",
|
||||
"value": "2020-01-01 00:00:00",
|
||||
"validate": "datetime"
|
||||
},
|
||||
"Command": {
|
||||
"type": "input",
|
||||
"value": "MetaReward",
|
||||
"display": "hide"
|
||||
},
|
||||
"SuccessInterval": {
|
||||
"type": "input",
|
||||
"value": 30,
|
||||
"display": "hide"
|
||||
},
|
||||
"FailureInterval": {
|
||||
"type": "input",
|
||||
"value": 30,
|
||||
"display": "hide"
|
||||
},
|
||||
"ServerUpdate": {
|
||||
"type": "input",
|
||||
"value": "00:00",
|
||||
"display": "hide"
|
||||
}
|
||||
},
|
||||
"MetaReward": {
|
||||
"MetaReward": {
|
||||
"type": "checkbox",
|
||||
"value": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"Daily": {
|
||||
"Scheduler": {
|
||||
"Enable": {
|
||||
|
@ -466,8 +466,6 @@ Mail:
|
||||
Delete: false
|
||||
SupplyPack:
|
||||
WeeklyFreeSupplyPack: true
|
||||
MetaReward:
|
||||
MetaReward: true
|
||||
|
||||
# ==================== Daily ====================
|
||||
|
||||
|
@ -54,9 +54,6 @@ Reward:
|
||||
Freebies:
|
||||
Scheduler:
|
||||
Enable: true
|
||||
MetaReward:
|
||||
Scheduler:
|
||||
Enable: true
|
||||
|
||||
# ==================== DailyMission ====================
|
||||
|
||||
|
@ -38,8 +38,7 @@
|
||||
"ShopOnce",
|
||||
"Shipyard",
|
||||
"Gacha",
|
||||
"Freebies",
|
||||
"MetaReward"
|
||||
"Freebies"
|
||||
],
|
||||
"DailyMission": [
|
||||
"Daily",
|
||||
|
@ -265,11 +265,6 @@ Freebies:
|
||||
SuccessInterval: 30
|
||||
FailureInterval: 30
|
||||
ServerUpdate: 00:00
|
||||
MetaReward:
|
||||
Scheduler:
|
||||
SuccessInterval: 30
|
||||
FailureInterval: 30
|
||||
ServerUpdate: 00:00
|
||||
|
||||
# ==================== Daily ====================
|
||||
|
||||
|
@ -193,9 +193,6 @@ Freebies:
|
||||
- DataKey
|
||||
- Mail
|
||||
- SupplyPack
|
||||
MetaReward:
|
||||
- Scheduler
|
||||
- MetaReward
|
||||
|
||||
# ==================== DailyMission ====================
|
||||
|
||||
|
@ -300,9 +300,6 @@ class GeneratedConfig:
|
||||
# Group `SupplyPack`
|
||||
SupplyPack_WeeklyFreeSupplyPack = True
|
||||
|
||||
# Group `MetaReward`
|
||||
MetaReward_MetaReward = True
|
||||
|
||||
# Group `Daily`
|
||||
Daily_UseDailySkip = True
|
||||
Daily_EscortMission = 'first' # skip, first, second, third
|
||||
|
@ -13,7 +13,7 @@ class ManualConfig:
|
||||
> Commission > Tactical > Research
|
||||
> Exercise
|
||||
> Dorm > Meowfficer > Guild > Gacha
|
||||
> Reward > MetaReward
|
||||
> Reward
|
||||
> ShopFrequent > ShopOnce > Shipyard > Freebies
|
||||
> OpsiExplore
|
||||
> OpsiAshBeacon
|
||||
|
@ -158,10 +158,6 @@
|
||||
"name": "Freebies",
|
||||
"help": ""
|
||||
},
|
||||
"MetaReward": {
|
||||
"name": "Meta Reward",
|
||||
"help": ""
|
||||
},
|
||||
"Daily": {
|
||||
"name": "Daily",
|
||||
"help": ""
|
||||
@ -1735,16 +1731,6 @@
|
||||
"help": ""
|
||||
}
|
||||
},
|
||||
"MetaReward": {
|
||||
"_info": {
|
||||
"name": "Meta Reward Settings",
|
||||
"help": ""
|
||||
},
|
||||
"MetaReward": {
|
||||
"name": "Receive META rewards",
|
||||
"help": ""
|
||||
}
|
||||
},
|
||||
"Daily": {
|
||||
"_info": {
|
||||
"name": "Daily Settings",
|
||||
|
@ -158,10 +158,6 @@
|
||||
"name": "Task.Freebies.name",
|
||||
"help": "Task.Freebies.help"
|
||||
},
|
||||
"MetaReward": {
|
||||
"name": "Task.MetaReward.name",
|
||||
"help": "Task.MetaReward.help"
|
||||
},
|
||||
"Daily": {
|
||||
"name": "Task.Daily.name",
|
||||
"help": "Task.Daily.help"
|
||||
@ -1735,16 +1731,6 @@
|
||||
"help": "SupplyPack.WeeklyFreeSupplyPack.help"
|
||||
}
|
||||
},
|
||||
"MetaReward": {
|
||||
"_info": {
|
||||
"name": "MetaReward._info.name",
|
||||
"help": "MetaReward._info.help"
|
||||
},
|
||||
"MetaReward": {
|
||||
"name": "MetaReward.MetaReward.name",
|
||||
"help": "MetaReward.MetaReward.help"
|
||||
}
|
||||
},
|
||||
"Daily": {
|
||||
"_info": {
|
||||
"name": "Daily._info.name",
|
||||
|
@ -158,10 +158,6 @@
|
||||
"name": "Task.Freebies.name",
|
||||
"help": "Task.Freebies.help"
|
||||
},
|
||||
"MetaReward": {
|
||||
"name": "Meta奖励",
|
||||
"help": ""
|
||||
},
|
||||
"Daily": {
|
||||
"name": "每日任务",
|
||||
"help": ""
|
||||
@ -1735,16 +1731,6 @@
|
||||
"help": ""
|
||||
}
|
||||
},
|
||||
"MetaReward": {
|
||||
"_info": {
|
||||
"name": "Meta 奖励",
|
||||
"help": ""
|
||||
},
|
||||
"MetaReward": {
|
||||
"name": "领取 Meta 奖励",
|
||||
"help": ""
|
||||
}
|
||||
},
|
||||
"Daily": {
|
||||
"_info": {
|
||||
"name": "每日任务",
|
||||
|
@ -158,10 +158,6 @@
|
||||
"name": "Task.Freebies.name",
|
||||
"help": "Task.Freebies.help"
|
||||
},
|
||||
"MetaReward": {
|
||||
"name": "Meta獎勵",
|
||||
"help": ""
|
||||
},
|
||||
"Daily": {
|
||||
"name": "每日任務",
|
||||
"help": ""
|
||||
@ -1735,16 +1731,6 @@
|
||||
"help": ""
|
||||
}
|
||||
},
|
||||
"MetaReward": {
|
||||
"_info": {
|
||||
"name": "META 獎勵",
|
||||
"help": ""
|
||||
},
|
||||
"MetaReward": {
|
||||
"name": "領取 META 獎勵",
|
||||
"help": ""
|
||||
}
|
||||
},
|
||||
"Daily": {
|
||||
"_info": {
|
||||
"name": "每日任務",
|
||||
|
@ -99,5 +99,3 @@ class MetaReward(Combat, UI):
|
||||
if self.meta_reward_notice_appear():
|
||||
self.meta_reward_enter()
|
||||
self.meta_reward_receive()
|
||||
|
||||
self.config.task_delay(server_update=True)
|
||||
|
@ -3,6 +3,7 @@ from enum import Enum
|
||||
import module.config.server as server
|
||||
from module.combat.combat import BATTLE_PREPARATION
|
||||
from module.logger import logger
|
||||
from module.meta_reward.meta_reward import MetaReward
|
||||
from module.ocr.ocr import DigitCounter, Digit
|
||||
from module.os_ash.ash import AshCombat
|
||||
from module.os_ash.assets import *
|
||||
@ -374,7 +375,7 @@ class OpsiAshBeacon(Meta):
|
||||
|
||||
with self.config.multi_set():
|
||||
if self._meta_receive_count > 0:
|
||||
self.config.task_call('MetaReward', force_call=False)
|
||||
MetaReward(self.config, self.device).run()
|
||||
self.config.task_delay(server_update=True)
|
||||
|
||||
|
||||
@ -478,4 +479,5 @@ class AshBeaconAssist(Meta):
|
||||
def run(self):
|
||||
self.ui_ensure(page_reward)
|
||||
self._begin_meta_assist()
|
||||
MetaReward(self.config, self.device).run()
|
||||
self.config.task_delay(server_update=True)
|
||||
|
Loading…
Reference in New Issue
Block a user