Refactor: Separate meowfficer to a standalone module
10
alas.py
@ -14,13 +14,14 @@ from module.config.db import Database
|
||||
from module.device.device import Device
|
||||
from module.dorm.dorm import RewardDorm
|
||||
from module.exception import *
|
||||
from module.guild.guild_reward import RewardGuild
|
||||
from module.handler.login import LoginHandler
|
||||
from module.handler.sensitive_info import handle_sensitive_image, handle_sensitive_logs
|
||||
from module.logger import logger, log_file
|
||||
from module.meowfficer.meowfficer import RewardMeowfficer
|
||||
from module.research.research import RewardResearch
|
||||
from module.reward.reward import Reward
|
||||
from module.tactical.tactical_class import RewardTacticalClass
|
||||
from module.guild.guild_reward import RewardGuild
|
||||
|
||||
|
||||
class AzurLaneAutoScript:
|
||||
@ -113,11 +114,14 @@ class AzurLaneAutoScript:
|
||||
def dorm(self):
|
||||
RewardDorm(config=self.config, device=self.device).run()
|
||||
|
||||
def guild(self):
|
||||
RewardGuild(config=self.config, device=self.device).run()
|
||||
|
||||
def reward(self):
|
||||
Reward(config=self.config, device=self.device).run()
|
||||
|
||||
def guild(self):
|
||||
RewardGuild(config=self.config, device=self.device).run()
|
||||
def meowfficer(self):
|
||||
RewardMeowfficer(config=self.config, device=self.device).run()
|
||||
|
||||
def main(self):
|
||||
CampaignRun(config=self.config, device=self.device).run(
|
||||
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
@ -240,18 +240,6 @@ Dorm:
|
||||
Collect: true
|
||||
Feed: true
|
||||
FeedFilter: 20000 > 10000 > 5000 > 3000 > 2000 > 1000
|
||||
Reward:
|
||||
Scheduler:
|
||||
Enable: true
|
||||
NextRun: 2020-01-01 00:00:00
|
||||
Command: Reward
|
||||
SuccessInterval: 40-60
|
||||
FailureInterval: 40-60
|
||||
ServerUpdate: 00:00
|
||||
Reward:
|
||||
CollectOil: true
|
||||
CollectCoin: true
|
||||
CollectMission: true
|
||||
Guild:
|
||||
Scheduler:
|
||||
Enable: false
|
||||
@ -272,3 +260,27 @@ Guild:
|
||||
JoinThreshold: 1
|
||||
AttackBoss: true
|
||||
BossFleetRecommend: false
|
||||
Reward:
|
||||
Scheduler:
|
||||
Enable: true
|
||||
NextRun: 2020-01-01 00:00:00
|
||||
Command: Reward
|
||||
SuccessInterval: 40-60
|
||||
FailureInterval: 40-60
|
||||
ServerUpdate: 00:00
|
||||
Reward:
|
||||
CollectOil: true
|
||||
CollectCoin: true
|
||||
CollectMission: true
|
||||
Meowfficer:
|
||||
Scheduler:
|
||||
Enable: false
|
||||
NextRun: 2020-01-01 00:00:00
|
||||
Command: Reward
|
||||
SuccessInterval: 120
|
||||
FailureInterval: 120
|
||||
ServerUpdate: 00:00
|
||||
Meowfficer:
|
||||
BuyAmount: 1
|
||||
TrainMeowfficer: false
|
||||
FortChoreMeowfficer: true
|
||||
|
@ -346,20 +346,6 @@ Dorm:
|
||||
Collect: true
|
||||
Feed: true
|
||||
FeedFilter: 20000 > 10000 > 5000 > 3000 > 2000 > 1000
|
||||
Reward:
|
||||
_info:
|
||||
Menu: Reward
|
||||
Scheduler:
|
||||
Enable: true
|
||||
NextRun: 2020-01-01 00:00:00
|
||||
Command: Reward
|
||||
SuccessInterval: 40-60
|
||||
FailureInterval: 40-60
|
||||
ServerUpdate: 00:00
|
||||
Reward:
|
||||
CollectOil: true
|
||||
CollectCoin: true
|
||||
CollectMission: true
|
||||
Guild:
|
||||
_info:
|
||||
Menu: Reward
|
||||
@ -382,3 +368,31 @@ Guild:
|
||||
JoinThreshold: 1
|
||||
AttackBoss: true
|
||||
BossFleetRecommend: false
|
||||
Reward:
|
||||
_info:
|
||||
Menu: Reward
|
||||
Scheduler:
|
||||
Enable: true
|
||||
NextRun: 2020-01-01 00:00:00
|
||||
Command: Reward
|
||||
SuccessInterval: 40-60
|
||||
FailureInterval: 40-60
|
||||
ServerUpdate: 00:00
|
||||
Reward:
|
||||
CollectOil: true
|
||||
CollectCoin: true
|
||||
CollectMission: true
|
||||
Meowfficer:
|
||||
_info:
|
||||
Menu: Reward
|
||||
Scheduler:
|
||||
Enable: false
|
||||
NextRun: 2020-01-01 00:00:00
|
||||
Command: Meowfficer
|
||||
SuccessInterval: 120
|
||||
FailureInterval: 120
|
||||
ServerUpdate: 00:00
|
||||
Meowfficer:
|
||||
BuyAmount: 1
|
||||
TrainMeowfficer: false
|
||||
FortChoreMeowfficer: true
|
||||
|
@ -120,11 +120,6 @@ class GeneratedConfig:
|
||||
Dorm_Feed = True
|
||||
Dorm_FeedFilter = '20000 > 10000 > 5000 > 3000 > 2000 > 1000'
|
||||
|
||||
# Func `Reward`
|
||||
Reward_CollectOil = True
|
||||
Reward_CollectCoin = True
|
||||
Reward_CollectMission = True
|
||||
|
||||
# Func `Guild`
|
||||
Logistics_Enable = True
|
||||
Logistics_ExchangeFilter = 'PlateTorpedoT1 > PlateAntiAirT1 > PlatePlaneT1 > PlateGunT1 > PlateGeneralT1\n> PlateTorpedoT2 > PlateAntiAirT2 > PlatePlaneT2 > PlateGunT2 > PlateGeneralT2\n> PlateTorpedoT3 > PlateAntiAirT3 > PlatePlaneT3 > PlateGunT3 > PlateGeneralT3\n> OxyCola > Coolant > Merit > Coins > Oil'
|
||||
@ -132,3 +127,13 @@ class GeneratedConfig:
|
||||
Operation_JoinThreshold = 1
|
||||
Operation_AttackBoss = True
|
||||
Operation_BossFleetRecommend = False
|
||||
|
||||
# Func `Reward`
|
||||
Reward_CollectOil = True
|
||||
Reward_CollectCoin = True
|
||||
Reward_CollectMission = True
|
||||
|
||||
# Func `Meowfficer`
|
||||
Meowfficer_BuyAmount = 1
|
||||
Meowfficer_TrainMeowfficer = False
|
||||
Meowfficer_FortChoreMeowfficer = True
|
||||
|