xiyou_sanguo
parent
240712fb15
commit
033c0c6384
|
|
@ -237,7 +237,6 @@ function GodsWayTowerPanel:OnShow()
|
||||||
this.becomeAGodText.gameObject:SetActive(false)
|
this.becomeAGodText.gameObject:SetActive(false)
|
||||||
else
|
else
|
||||||
curId = 0
|
curId = 0
|
||||||
curFloor = 0
|
|
||||||
this.becomeAGodText1.gameObject:SetActive(false)
|
this.becomeAGodText1.gameObject:SetActive(false)
|
||||||
this.becomeAGodText.gameObject:SetActive(true)
|
this.becomeAGodText.gameObject:SetActive(true)
|
||||||
local curDay = math.ceil((CalculateSecondsNowTo_N_OClock(0) + GetTimeStamp() - PlayerManager.userCreateTime) /
|
local curDay = math.ceil((CalculateSecondsNowTo_N_OClock(0) + GetTimeStamp() - PlayerManager.userCreateTime) /
|
||||||
|
|
@ -247,7 +246,7 @@ function GodsWayTowerPanel:OnShow()
|
||||||
this.becomeAGodText.text = "当前可挑战层数上限" .. floorLimit .. "层(功能开启后每天解锁20层挑战上限)"
|
this.becomeAGodText.text = "当前可挑战层数上限" .. floorLimit .. "层(功能开启后每天解锁20层挑战上限)"
|
||||||
end
|
end
|
||||||
this.btnHelpFightObj:SetActive(curId ~= 0)
|
this.btnHelpFightObj:SetActive(curId ~= 0)
|
||||||
this.moppingUpBtn:SetActive(curFloor ~= 0)
|
this.moppingUpBtn:SetActive(curFloor ~= 0 and curType ~= 3)
|
||||||
storeDataId, itemId, costNum = GodsWayTowerManager.GetCost(curType)
|
storeDataId, itemId, costNum = GodsWayTowerManager.GetCost(curType)
|
||||||
if curType == 1 then
|
if curType == 1 then
|
||||||
this.titleText.text = Language[11635]
|
this.titleText.text = Language[11635]
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ end
|
||||||
|
|
||||||
function this.Init(msg)
|
function this.Init(msg)
|
||||||
local infos = msg.info
|
local infos = msg.info
|
||||||
LogError("================多队塔试炼:"..#infos)
|
--LogError("================多队塔试炼:"..#infos)
|
||||||
for i = 1, #infos do
|
for i = 1, #infos do
|
||||||
local config = ConfigManager.GetConfigData(ConfigName.DuoDuiTowerConfig, infos[i].type)
|
local config = ConfigManager.GetConfigData(ConfigName.DuoDuiTowerConfig, infos[i].type)
|
||||||
local needFloor
|
local needFloor
|
||||||
|
|
@ -17,7 +17,7 @@ function this.Init(msg)
|
||||||
else
|
else
|
||||||
needFloor = infos[i].tier
|
needFloor = infos[i].tier
|
||||||
end
|
end
|
||||||
LogError("================多队塔试炼:"..needFloor)
|
--LogError("================多队塔试炼:"..needFloor)
|
||||||
towerInfos[i] = {
|
towerInfos[i] = {
|
||||||
time = infos[i].time,
|
time = infos[i].time,
|
||||||
type = infos[i].type,
|
type = infos[i].type,
|
||||||
|
|
@ -59,7 +59,7 @@ function this.GetCurrFloorRewardByType(_type)
|
||||||
if floor <= 0 then
|
if floor <= 0 then
|
||||||
floor = 1
|
floor = 1
|
||||||
end
|
end
|
||||||
LogError("floor======" .. floor)
|
--LogError("floor======" .. floor)
|
||||||
local config = ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.DuoDuiTower, "Type", _type, "TowerNumber", floor)
|
local config = ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.DuoDuiTower, "Type", _type, "TowerNumber", floor)
|
||||||
if config then
|
if config then
|
||||||
return config.Income
|
return config.Income
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue