界面宝箱调整

This commit is contained in:
xiekaidong 2023-05-06 10:04:32 +08:00
parent 5e2644ee6e
commit 5ee674bc60

View File

@ -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