| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- from pydantic import BaseModel, Field
- from enum import Enum
- from tasks.Component.GeneralBattle.config_general_battle import GeneralBattleConfig
- from tasks.Component.SwitchSoul.switch_soul_config import SwitchSoulConfig
- from tasks.Component.config_base import ConfigBase
- from tasks.Component.config_scheduler import Scheduler
- class ExplorationLevel(str, Enum):
- EXPLORATION_1 = '第一章'
- EXPLORATION_2 = '第二章'
- EXPLORATION_3 = '第三章'
- EXPLORATION_4 = '第四章'
- EXPLORATION_5 = '第五章'
- EXPLORATION_6 = '第六章'
- EXPLORATION_7 = '第七章'
- EXPLORATION_8 = '第八章'
- EXPLORATION_9 = '第九章'
- EXPLORATION_10 = '第十章'
- EXPLORATION_11 = '第十一章'
- EXPLORATION_12 = '第十二章'
- EXPLORATION_13 = '第十三章'
- EXPLORATION_14 = '第十四章'
- EXPLORATION_15 = '第十五章'
- EXPLORATION_16 = '第十六章'
- EXPLORATION_17 = '第十七章'
- EXPLORATION_18 = '第十八章'
- EXPLORATION_19 = '第十九章'
- EXPLORATION_20 = '第二十章'
- EXPLORATION_21 = '第二十一章'
- EXPLORATION_22 = '第二十二章'
- EXPLORATION_23 = '第二十三章'
- EXPLORATION_24 = '第二十四章'
- EXPLORATION_25 = '第二十五章'
- EXPLORATION_26 = '第二十六章'
- EXPLORATION_27 = '第二十七章'
- EXPLORATION_28 = '第二十八章'
- class AttackNumber(str, Enum):
- SEVEN = '7'
- ALL = 'all'
- # class AttackRole(str, Enum):
- # exp = '经验'
- # gold = '金币'
- # box = '奖励'
- # ALL = '无所谓'
- # 是否自动添加候补式神
- class AutoRotate(str, Enum):
- no = '不'
- yes = '是'
- class ChooseRarity(str, Enum):
- N = 'N卡'
- S = '素材'
- class ExplorationConfig(BaseModel):
- buff_gold_50_click: bool = Field(default=False)
- buff_gold_100_click: bool = Field(default=False)
- attack_number: AttackNumber = Field(title='探索次数', default=AttackNumber.SEVEN,
- description='默认探索7次')
- current_exploration_times: str = Field(default='0', description='探索次数')
- exploration_level: ExplorationLevel = Field(title='探索等级', default=ExplorationLevel.EXPLORATION_28,
- description='探索等级 默认二十八')
- auto_rotate: AutoRotate = Field(title='自动添加候补式神', default=AutoRotate.no,
- description='自动添加候补式神 默认 否')
- # attack_role: AttackRole = Field(title='进攻的类型',
- # default=AttackRole.ALL, description='攻击的类型')
- choose_rarity: ChooseRarity = Field(title='选择狗粮稀有度', default=ChooseRarity.N, description='N')
- class Exploration(ConfigBase):
- scheduler: Scheduler = Field(default_factory=Scheduler)
- exploration_config: ExplorationConfig = Field(default_factory=ExplorationConfig)
- general_battle_config: GeneralBattleConfig = Field(default_factory=GeneralBattleConfig)
- switch_soul_config: SwitchSoulConfig = Field(default_factory=SwitchSoulConfig)
- # auto_rotate_after_times: str = Field(default='30', description='探索30次后, 检测是否需要添加候补式神')
- # go_to_realm_after_times: str = Field(default='5', description='探索5次后, 检测是否需要进行结界突破')
|