明望特权等级添加默认值

dev_fengTi_And
wangzhenxing 2023-07-26 15:15:52 +08:00
parent aa86f127f4
commit 7523d9d667
1 changed files with 6 additions and 1 deletions

View File

@ -15,7 +15,7 @@ this.OpenUIList = {}
this.selectIndex = {dataType = 0,goodsId = {}}
this.selectIndex2 = {dataType = 0,goodsId = {}}
this.NiuQiIndex = 1
this.Index = 0--成长礼包需要的index
this.Index = 1--成长礼包需要的index
this.curLevel = 0--当前声望等级
this.isopenJingjishilian = false
this.TaiChuMiJuanData = {}
@ -699,6 +699,11 @@ function this.IsQualifiled(id)
qualifiled = playerLv >= openRule[2]
elseif openRule[1] == 3 then -- 工坊等级开启
qualifiled = WorkShopManager.WorkShopData.lv >= openRule[2]
elseif openRule[1] == 4 then --根据开服时间
local serverOpenTime = PlayerManager.GetServerOpenTime()
local openDay = math.ceil(math.max(0, GetTimeStamp() - serverOpenTime)/(60*60*24))--当前是开服第几天
-- LogError("当前是开服第几天了:"..openDay)
return openDay >= v.OpenRules[2]
end
return qualifiled
end