TCX_LongZhu
parent
05ffde3c47
commit
c80dab9bdc
|
|
@ -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, "达到"..tostring(openRule[2]).."级后开启!"
|
||||
return false
|
||||
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#创角
|
||||
|
|
|
|||
Loading…
Reference in New Issue