From 87942af94d3f1fa4410619de8f654600a56d044c Mon Sep 17 00:00:00 2001 From: silvergundam Date: Sun, 28 Dec 2025 17:14:31 +0800 Subject: [PATCH] =?UTF-8?q?Set=20new=20"AP=20limit"=20when=20Opsi=20reset?= =?UTF-8?q?=20less=20than=206=20days=EF=BC=8Cday0=3D300=EF=BC=8Cday1=3D700?= =?UTF-8?q?=EF=BC=8Cday2=3D1200=EF=BC=8Cday3=3D1800=EF=BC=8Cday4=3D2400?= =?UTF-8?q?=EF=BC=8Cday5=3D3000.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/os/map.py | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/module/os/map.py b/module/os/map.py index ba1924532..bb0d8ff58 100644 --- a/module/os/map.py +++ b/module/os/map.py @@ -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')