【特权】添加充值金额解锁类型

dev_chengFeng
gaoxin 2021-12-21 16:33:28 +08:00
parent 605dd4e111
commit 86daa70b9c
1 changed files with 8 additions and 1 deletions

View File

@ -84,10 +84,17 @@ local function _CompareCondition(type, condition, value)
elseif type == 3 then -- vip等级解锁
value = value or VipManager.GetVipLevel()
return value >= condition
elseif type == 4 then -- 特殊类型
elseif type == 4 then -- 充值解锁(无论多少金额)
return true
elseif type == 5 then -- 特殊类型
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