Merge branch 'china/dev' of http://60.1.1.230/gaoxin/JL_Client into china/dev
commit
0a8bdbe4b6
|
@ -84,10 +84,17 @@ local function _CompareCondition(type, condition, value)
|
||||||
elseif type == 3 then -- vip等级解锁
|
elseif type == 3 then -- vip等级解锁
|
||||||
value = value or VipManager.GetVipLevel()
|
value = value or VipManager.GetVipLevel()
|
||||||
return value >= condition
|
return value >= condition
|
||||||
elseif type == 4 then -- 特殊类型
|
elseif type == 4 then -- 充值解锁(无论多少金额)
|
||||||
return true
|
return true
|
||||||
elseif type == 5 then -- 特殊类型
|
elseif type == 5 then -- 特殊类型
|
||||||
return true
|
return true
|
||||||
|
elseif type == 6 then -- 总好感度等级解锁
|
||||||
|
local _, tlv, _ = LikabilityManager.GetTotalHeroLikeLv(-1)
|
||||||
|
value = value or tlv
|
||||||
|
return value >= condition
|
||||||
|
elseif type == 7 then -- 充值金额解锁
|
||||||
|
value = value or VipManager.GetChargedNum()
|
||||||
|
return value >= condition
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue