diff --git a/Assets/ManagedResources/~Lua/Modules/Carbon/NewCarbon/CarbonsPanel.lua b/Assets/ManagedResources/~Lua/Modules/Carbon/NewCarbon/CarbonsPanel.lua index 880868d643..0357931a95 100644 --- a/Assets/ManagedResources/~Lua/Modules/Carbon/NewCarbon/CarbonsPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Carbon/NewCarbon/CarbonsPanel.lua @@ -2,6 +2,14 @@ require("Base/BasePanel") local CarbonsPanel = Inherit(BasePanel) local systemConfig = ConfigManager.GetConfig(ConfigName.GlobalSystemConfig) +local expeditionLevel = { + [1] = 1, + [2] = 2, + [3] = 3, + [-1] = 2, + [4] = 3, +} + local carbonData = { [FUNCTION_OPEN_TYPE.EXPEDITION] = { id = FUNCTION_OPEN_TYPE.EXPEDITION, --大闹天宫 @@ -202,7 +210,9 @@ function CarbonsPanel:TipShow(_go,_value) elseif _value.id == FUNCTION_OPEN_TYPE.EXPEDITION then freetimes:SetActive(true) buytimes:SetActive(false) - local free = ExpeditionManager.GetCurNodeInfo().lay-1+(ExpeditionManager.expeditionLeve-1)*10 + LogGreen("ExpeditionManager.GetCurNodeInfo().lay:"..tostring(ExpeditionManager.GetCurNodeInfo().lay)) + LogGreen("ExpeditionManager.expeditionLeve:"..tostring(ExpeditionManager.expeditionLeve)) + local free = ExpeditionManager.GetCurNodeInfo().lay-1+(expeditionLevel[ExpeditionManager.expeditionLeve]-1)*10 local num = free <= 30 and free or 30 freetimesText.text = string.format("进度:%s/%s",num,30) end