mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-19 16:59:28 +08:00
Add: Set AP limit to 2000 when Opsi reset less than 6 days
This commit is contained in:
@@ -3169,7 +3169,7 @@
|
||||
},
|
||||
"ActionPointPreserve": {
|
||||
"name": "保留 X 点行动力",
|
||||
"help": "行动力低于 X 后停止,自动打开行动力箱子,X 包含箱子中的行动力\n1000 < X < 10000,建议保留2000以上行动力给侵蚀1练级\n这个值将在大世界重置前3天自动减少至200点,如果启用侵蚀1练级则改为1000点,并在最后一天自动减少至0点"
|
||||
"help": "行动力低于 X 后停止,自动打开行动力箱子,X 包含箱子中的行动力\n1000 < X < 10000,建议保留2000以上行动力给侵蚀1练级\n这个值将在大世界重置前6天且启用侵蚀1练级时减少到2000(若设置超过2000),重置前3天自动减少至200点,如果启用侵蚀1练级则改为1000点,并在最后一天自动减少至0点"
|
||||
},
|
||||
"HazardLevel": {
|
||||
"name": "侵蚀等级",
|
||||
|
||||
@@ -421,6 +421,10 @@ class OSMap(OSFleet, Map, GlobeCamera, StrategicSearchHandler):
|
||||
logger.info('Just less than 3 days to OpSi reset, '
|
||||
'set ActionPointPreserve to 300 temporarily')
|
||||
return 300
|
||||
elif self.is_cl1_enabled and remain <= 5:
|
||||
logger.info('Just less than 6 days to OpSi reset, '
|
||||
'set ActionPointPreserve to 2000 temporarily for hazard 1 leveling')
|
||||
return 2000
|
||||
else:
|
||||
logger.info('Not close to OpSi reset')
|
||||
return maxsize
|
||||
|
||||
Reference in New Issue
Block a user