Compare commits

...

2 Commits

Author SHA1 Message Date
PC-202302260912\Administrator 198bc2690c 1 2025-09-02 14:41:14 +08:00
PC-202302260912\Administrator 3169fa032f 1 2025-09-02 14:40:51 +08:00
2 changed files with 9 additions and 7 deletions

View File

@ -2943,17 +2943,17 @@ function CheckFunctionOpen(_funId)
local openRule = data.OpenRules
if openRule then
if openRule[1] == 1 and not FightPointPassManager.IsFightPointPass(openRule[2]) then -- 关卡开启
return false
return false , "关卡未开启"
elseif openRule[1] == 2 and playerLv < openRule[2] then -- 等级开启
return false
return false, "达到"..tostring(openRule[2]).."级后开启!"
elseif openRule[1] == 3 and HarmonyManager.GetSingleAdditions(HarmonyAddType.AddLv) < openRule[2] then -- 鸿蒙阵神将共鸣等级
return false
return false, "关卡未开启"
elseif openRule[1] == 4 and not OperatingManager.IsBuyGift(openRule[2]) then
return false
return false, "关卡未开启"
elseif openRule[1] == 5 and GodsWayTowerManager.GetTowerFloorByType(1) < openRule[2] then
return false
return false, "关卡未开启"
elseif openRule[1] == 6 and PracticeManager.PracticeLevel<openRule[2] then --修行等级
return false
return false, "关卡未开启"
end
end
--1#创角

View File

@ -71,13 +71,15 @@ function GodsWayListPanel:OnShow(...)
rankTxt.text="暂无排名"
end
Util.AddClick(btn, function()
local isOpen=CheckFunctionOpen(138+i)
local isOpen , str =CheckFunctionOpen(138+i)
if isOpen then
UIManager.OpenPanel(UIName.GodsWayTowerPanel,i)
self:ClosePanel()
else
if i==1 then
--PopupTipPanel.ShowTip(Language[11330])
elseif str~=nil then
PopupTipPanel.ShowTip(str)
else
--PopupTipPanel.ShowTip("需二队塔通关100层后开启")
PopupTipPanel.ShowTip("暂未开启")