1919# Contact: DLmaster_361@163.com
2020
2121
22- import re
2322import uuid
2423import json
2524import calendar
3433 MultipleUIDValidator ,
3534 BoolValidator ,
3635 OptionsValidator ,
36+ MultipleOptionsValidator ,
3737 RangeValidator ,
3838 VirtualConfigValidator ,
3939 FileValidator ,
@@ -137,8 +137,15 @@ def __init__(self) -> None:
137137
138138 ## Info ------------------------------------------------------------
139139 ## 是否启用
140- self .Info_Enabled = ConfigItem ("Info" , "Enabled" , False , BoolValidator ())
141- ## 时间点
140+ self .Info_Enabled = ConfigItem ("Info" , "Enabled" , True , BoolValidator ())
141+ ## 执行周期
142+ self .Info_Days = ConfigItem (
143+ "Info" ,
144+ "Days" ,
145+ list (calendar .day_name ),
146+ MultipleOptionsValidator (list (calendar .day_name )),
147+ )
148+ ## 执行时间
142149 self .Info_Time = ConfigItem ("Info" , "Time" , "00:00" , DateTimeValidator ("%H:%M" ))
143150
144151
@@ -167,11 +174,12 @@ def __init__(self) -> None:
167174 OptionsValidator (
168175 [
169176 "NoAction" ,
170- "KillSelf" ,
171- "Sleep" ,
172- "Hibernate" ,
173177 "Shutdown" ,
174178 "ShutdownForce" ,
179+ "Reboot" ,
180+ "Hibernate" ,
181+ "Sleep" ,
182+ "KillSelf" ,
175183 ]
176184 ),
177185 )
@@ -295,10 +303,6 @@ def __init__(self) -> None:
295303 self .Data_LastProxyDate = ConfigItem (
296304 "Data" , "LastProxyDate" , "2000-01-01" , DateTimeValidator ("%Y-%m-%d" )
297305 )
298- ## 上次剿灭日期
299- self .Data_LastAnnihilationDate = ConfigItem (
300- "Data" , "LastAnnihilationDate" , "2000-01-01" , DateTimeValidator ("%Y-%m-%d" )
301- )
302306 ## 上次森空岛签到日期
303307 self .Data_LastSklandDate = ConfigItem (
304308 "Data" , "LastSklandDate" , "2000-01-01" , DateTimeValidator ("%Y-%m-%d" )
@@ -315,23 +319,21 @@ def __init__(self) -> None:
315319 )
316320
317321 ## Task ------------------------------------------------------------
318- ## 是否 自动唤醒
319- self .Task_IfWakeUp = ConfigItem ("Task" , "IfWakeUp" , True , BoolValidator ())
320- ## 是否公招
321- self .Task_IfRecruiting = ConfigItem (
322- "Task" , "IfRecruiting" , True , BoolValidator ()
323- )
324- ## 是否基建
325- self .Task_IfBase = ConfigItem ("Task" , "IfBase" , True , BoolValidator ())
326- ## 是否刷图
327- self .Task_IfCombat = ConfigItem ("Task" , "IfCombat" , True , BoolValidator ())
328- ## 是否商店
322+ ## 是否自动唤醒
323+ self .Task_IfStartUp = ConfigItem ("Task" , "IfStartUp" , True , BoolValidator ())
324+ ## 是否理智作战
325+ self .Task_IfFight = ConfigItem ("Task" , "IfFight" , True , BoolValidator ())
326+ ## 是否基建换班
327+ self .Task_IfInfrast = ConfigItem ("Task" , "IfInfrast" , True , BoolValidator ())
328+ ## 是否公开招募
329+ self .Task_IfRecruit = ConfigItem ("Task" , "IfRecruit" , True , BoolValidator ())
330+ ## 是否信用收支
329331 self .Task_IfMall = ConfigItem ("Task" , "IfMall" , True , BoolValidator ())
330- ## 是否任务
331- self .Task_IfMission = ConfigItem ("Task" , "IfMission " , True , BoolValidator ())
332+ ## 是否领取奖励
333+ self .Task_IfAward = ConfigItem ("Task" , "IfAward " , True , BoolValidator ())
332334 ## 是否自动肉鸽
333- self .Task_IfAutoRoguelike = ConfigItem (
334- "Task" , "IfAutoRoguelike " , False , BoolValidator ()
335+ self .Task_IfRoguelike = ConfigItem (
336+ "Task" , "IfRoguelike " , False , BoolValidator ()
335337 )
336338 ## 是否生息演算
337339 self .Task_IfReclamation = ConfigItem (
@@ -455,9 +457,9 @@ def __init__(self) -> None:
455457 self .Run_RoutineTimeLimit = ConfigItem (
456458 "Run" , "RoutineTimeLimit" , 10 , RangeValidator (1 , 9999 )
457459 )
458- ## 是否限制剿灭每周一次
459- self .Run_AnnihilationWeeklyLimit = ConfigItem (
460- "Run" , "AnnihilationWeeklyLimit " , True , BoolValidator ()
460+ ## 剿灭避免无代理卡浪费理智
461+ self .Run_AnnihilationAvoidWaste = ConfigItem (
462+ "Run" , "AnnihilationAvoidWaste " , False , BoolValidator ()
461463 )
462464
463465 self .UserData = MultipleConfig ([MaaUserConfig ])
@@ -479,16 +481,7 @@ def __init__(self) -> None:
479481
480482 self .config_item_dict : dict [str , dict [str , ConfigItem ]] = {}
481483
482- for group in [
483- "ALL" ,
484- "Monday" ,
485- "Tuesday" ,
486- "Wednesday" ,
487- "Thursday" ,
488- "Friday" ,
489- "Saturday" ,
490- "Sunday" ,
491- ]:
484+ for group in ["ALL" , * calendar .day_name ]:
492485 self .config_item_dict [group ] = {}
493486
494487 ## 理智药数量
0 commit comments