config.py 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # This Python file uses the following encoding: utf-8
  2. # @brief Configurations for Ryou Dokan Toppa (阴阳竂道馆突破配置)
  3. # @author jackyhwei
  4. # @note draft version without full test
  5. # github https://github.com/roarhill/oas
  6. from pydantic import BaseModel, Field
  7. from enum import Enum
  8. from tasks.Component.GeneralBattle.config_general_battle import GeneralBattleConfig
  9. from tasks.Component.SwitchSoul.switch_soul_config import SwitchSoulConfig
  10. from tasks.Component.config_base import ConfigBase, Time
  11. from tasks.Component.config_scheduler import Scheduler
  12. class DokanConfig(BaseModel):
  13. # # 寮管理开启道馆
  14. # dokan_declare_war: bool = Field(default=False, description='dokan_declare_war_help')
  15. # # 选择哪一个竂
  16. # dokan_declear_war_priority: int = Field(default=0, description='dokan_declear_war_priority_help')
  17. # 攻击优先顺序: 见习=0,初级=1...
  18. dokan_attack_priority: int = Field(default=0, description='dokan_attack_priority_help')
  19. # 失败CD后自动加油
  20. dokan_auto_cheering_while_cd: bool = Field(default=False, description='dokan_auto_cheering_while_cd_help')
  21. # 正式进攻会设定 2s - 10s 的随机延迟,避免攻击间隔及其相近被检测为脚本。
  22. random_delay: bool = Field(default=False, description='random_delay_help')
  23. # 防封:使用固定的随机区域进行随机点击,若为False将自动识别当前画面中的最大纯色区域作为随机点击区域
  24. anti_detect_click_fixed_random_area: bool = Field(default=False, description='anti_detect_click_fixed_random_area_help')
  25. class Dokan(ConfigBase):
  26. scheduler: Scheduler = Field(default_factory=Scheduler)
  27. dokan_config: DokanConfig = Field(default_factory=DokanConfig)
  28. general_battle_config: GeneralBattleConfig = Field(default_factory=GeneralBattleConfig)
  29. switch_soul_config: SwitchSoulConfig = Field(default_factory=SwitchSoulConfig)