1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 14:09:25 +08:00

Set new "AP limit" when Opsi reset less than 6 days,day0=300,day1=700,day2=1200,day3=1800,day4=2400,day5=3000.

This commit is contained in:
silvergundam
2025-12-28 17:14:31 +08:00
parent 0313dba2cd
commit 87942af94d

View File

@@ -416,18 +416,26 @@ class OSMap(OSFleet, Map, GlobeCamera, StrategicSearchHandler):
logger.info('Just less than 1 day to OpSi reset, '
'set ActionPointPreserve to 0 temporarily')
return 0
elif self.is_cl1_enabled and remain <= 2:
elif self.is_cl1_enabled and remain <= 1:
logger.info('Just less than 2 days to OpSi reset, '
'set ActionPointPreserve to 700 temporarily for hazard 1 leveling')
return 700
elif self.is_cl1_enabled and remain <= 2 and preserve > 1200:
logger.info('Just less than 3 days to OpSi reset, '
'set ActionPointPreserve to 1000 temporarily for hazard 1 leveling')
return 1000
'set ActionPointPreserve to 1200 temporarily for hazard 1 leveling')
return 1200
elif remain <= 2:
logger.info('Just less than 3 days to OpSi reset, '
'set ActionPointPreserve to 300 temporarily')
return 300
elif self.is_cl1_enabled and remain <= 3 and preserve > 2000:
elif self.is_cl1_enabled and remain <= 3 and preserve > 1800:
logger.info('Just less than 4 days to OpSi reset, '
'set ActionPointPreserve to 2000 temporarily for hazard 1 leveling')
return 2000
'set ActionPointPreserve to 1800 temporarily for hazard 1 leveling')
return 1800
elif self.is_cl1_enabled and remain <= 4 and preserve > 2400:
logger.info('Just less than 5 days to OpSi reset, '
'set ActionPointPreserve to 2400 temporarily for hazard 1 leveling')
return 2400
elif self.is_cl1_enabled and remain <= 5 and preserve > 3000:
logger.info('Just less than 6 days to OpSi reset, '
'set ActionPointPreserve to 3000 temporarily for hazard 1 leveling')