|
@@ -3,12 +3,9 @@
|
|
|
# github https://github.com/runhey
|
|
# github https://github.com/runhey
|
|
|
from pydantic import BaseModel, Field
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
|
|
-from tasks.Component.GeneralBattle.config_general_battle import GreenMarkType
|
|
|
|
|
|
|
+from tasks.Component.GeneralBattle.config_general_battle import GreenMarkType, GeneralBattleConfig
|
|
|
|
|
+from tasks.Component.config_base import dynamic_hide
|
|
|
|
|
|
|
|
-class BattleConfig(BaseModel):
|
|
|
|
|
- # 是否开启绿标
|
|
|
|
|
- green_enable: bool = Field(default=False, description='green_enable_help')
|
|
|
|
|
- # 选哪一个绿标
|
|
|
|
|
- green_mark: GreenMarkType = Field(default=GreenMarkType.GREEN_LEFT1, description='green_mark_help')
|
|
|
|
|
- # 是否启动战斗时随机点击或者随机滑动
|
|
|
|
|
- random_click_swipt_enable: bool = Field(default=False, description='random_click_swipt_enable_help')
|
|
|
|
|
|
|
+
|
|
|
|
|
+class BattleConfig(GeneralBattleConfig):
|
|
|
|
|
+ hide_fields = dynamic_hide('lock_team_enable', 'preset_enable', 'preset_group', 'preset_team')
|