【大闹天宫】层数错误提交
parent
2dc965137b
commit
627954ae3f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue