diff --git a/Assets/ManagedResources/~Lua/Modules/Carbon/EndLessCarbonPanel.lua b/Assets/ManagedResources/~Lua/Modules/Carbon/EndLessCarbonPanel.lua index cc91372bb2..64c302770d 100644 --- a/Assets/ManagedResources/~Lua/Modules/Carbon/EndLessCarbonPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Carbon/EndLessCarbonPanel.lua @@ -174,7 +174,15 @@ function this.InitCompShow() this.rewardList[j].gameObject:SetActive(false) end end - this.bossGridText.text = ConfigManager.GetConfigDataByKey(ConfigName.endlessDifficulty,"MapPool",EndLessMapManager.openMapId).Desc + local configs = ConfigManager.GetAllConfigsDataByKey(ConfigName.endlessDifficulty,"MapPool",EndLessMapManager.openMapId) + local lv = PlayerManager.level + local config = nil + for i = 1,#configs do + if lv >= configs[i].WorldLevel[1] and lv <= configs[i].WorldLevel[2] then + config = configs[i] + end + end + this.bossGridText.text = config.Desc end function this.SetStaticData()