config.py 739 B

1234567891011121314151617
  1. # This Python file uses the following encoding: utf-8
  2. # @author runhey
  3. # github https://github.com/runhey
  4. from pydantic import BaseModel, Field
  5. from tasks.Component.config_scheduler import Scheduler
  6. from tasks.Component.config_base import ConfigBase
  7. from tasks.Component.SwitchSoul.switch_soul_config import SwitchSoulConfig
  8. class ExperienceYoukaiConfig(ConfigBase):
  9. buff_exp_50_click: bool = Field(default=False)
  10. buff_exp_100_click: bool = Field(default=False)
  11. class ExperienceYoukai(ConfigBase):
  12. scheduler: Scheduler = Field(default_factory=Scheduler)
  13. experience_youkai: ExperienceYoukaiConfig = Field(default_factory=ExperienceYoukaiConfig)
  14. switch_soul: SwitchSoulConfig = Field(default_factory=SwitchSoulConfig)