TCX_LongZhu
PC-202302260912\Administrator 2025-09-02 14:41:14 +08:00
parent 3169fa032f
commit 198bc2690c
1 changed files with 6 additions and 6 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#创角