config_buff.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # This Python file uses the following encoding: utf-8
  2. # @author runhey
  3. # github https://github.com/runhey
  4. from enum import Enum
  5. from datetime import datetime, time
  6. from pydantic import BaseModel, ValidationError, validator, Field
  7. # 这个类是用来 演示的
  8. class BuffClass(Enum):
  9. AWAKE = 10 # 觉醒
  10. SOUL = 20 # 御魂
  11. GOLD_50 = 30 # 金币50
  12. GOLD_100 = 40 # 金币100
  13. EXP_50 = 50 # 经验50
  14. EXP_100 = 60 # 经验100
  15. AWAKE_CLOSE = 70 # 觉醒
  16. SOUL_CLOSE = 80 # 御魂
  17. GOLD_50_CLOSE = 90 # 金币50
  18. GOLD_100_CLOSE = 100 # 金币100
  19. EXP_50_CLOSE = 110 # 经验50
  20. EXP_100_CLOSE = 120 # 经验100
  21. class BuffConfig(BaseModel):
  22. # 是否启动buff
  23. buff_enable: bool = Field(default=False, description='buff_enable_help')
  24. # 是否点击觉醒Buff
  25. buff_awake_click: bool = Field(default=False, description='')
  26. # 是否点击御魂buff
  27. buff_soul_click: bool = Field(default=False, description='')
  28. # 是否点击金币50buff
  29. buff_gold_50_click: bool = Field(default=False, description='')
  30. # 是否点击金币100buff
  31. buff_gold_100_click: bool = Field(default=False, description='')
  32. # 是否点击经验50buff
  33. buff_exp_50_click: bool = Field(default=False, description='')
  34. # 是否点击经验100buff
  35. buff_exp_100_click: bool = Field(default=False, description='')