config.py 712 B

123456789101112131415161718
  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 GoldYoukaiConfig(ConfigBase):
  9. buff_gold_50_click: bool = Field(default=False)
  10. buff_gold_100_click: bool = Field(default=False)
  11. class GoldYoukai(ConfigBase):
  12. scheduler: Scheduler = Field(default_factory=Scheduler)
  13. gold_youkai: GoldYoukaiConfig = Field(default_factory=GoldYoukaiConfig)
  14. switch_soul: SwitchSoulConfig = Field(default_factory=SwitchSoulConfig)