From 5ee674bc60e7270e6c53244f16c6203370e9fb42 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Sat, 6 May 2023 10:04:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=8C=E9=9D=A2=E5=AE=9D=E7=AE=B1=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/main_city/component/main_comp.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/app/ui/main_city/component/main_comp.lua b/lua/app/ui/main_city/component/main_comp.lua index 5ef6e927..9ec49949 100644 --- a/lua/app/ui/main_city/component/main_comp.lua +++ b/lua/app/ui/main_city/component/main_comp.lua @@ -119,6 +119,10 @@ function MainComp:refreshChapter(force) end local rewardChapterId = DataManager.ChapterData:getIsHaveRewardsMinId() + if rewardChapterId > chapterId then + rewardChapterId = chapterId + end + local curMaxWave = DataManager.ChapterData:getChapterMaxWave(rewardChapterId) local boxCount = DataManager.ChapterData:getChapterBoxCount(rewardChapterId) local unitValue = 1 / boxCount