parent
32a38b6053
commit
d58e38fcea
|
@ -2897,3 +2897,10 @@ RevertPreConfigure={
|
|||
[RecruitType.Single]=5,
|
||||
[RecruitType.Ten]=6,
|
||||
}
|
||||
|
||||
|
||||
_ItemIdToVipPrivilege = {
|
||||
[14] = 1,
|
||||
[3] = 1,
|
||||
[17] = 27,
|
||||
}
|
|
@ -187,6 +187,15 @@ function this.ItemAdapter(node, data)
|
|||
--
|
||||
local txt = Util.GetGameObject(node, "context"):GetComponent("Text")
|
||||
local addValue = FightPointPassManager.GetItemVipValue(data[1])
|
||||
local totalCurNum,totalLv,totalNum = LikabilityManager.GetTotalHeroLikeLv(-1)
|
||||
local prolist = {}
|
||||
if totalLv > 0 then
|
||||
prolist = LikabilityManager.GetPrivilageProData(1,totalLv,totalLv)
|
||||
local priId = _ItemIdToVipPrivilege[data[1]]
|
||||
if prolist[priId] then
|
||||
addValue = addValue + (prolist[priId]/10000)
|
||||
end
|
||||
end
|
||||
local baseValue = string.format(Language[10603], data[2])
|
||||
if addValue - 1 <= 0 then
|
||||
txt.text = baseValue
|
||||
|
|
|
@ -592,6 +592,15 @@ function this.IntiReward()
|
|||
this.rewardList[i].icon.sprite = SetIcon(this.spLoader, rewardData[i][1])
|
||||
|
||||
local addValue = FightPointPassManager.GetItemVipValue(rewardData[i][1])
|
||||
local totalCurNum,totalLv,totalNum = LikabilityManager.GetTotalHeroLikeLv(-1)
|
||||
local prolist = {}
|
||||
if totalLv > 0 then
|
||||
prolist = LikabilityManager.GetPrivilageProData(1,totalLv,totalLv)
|
||||
local priId = _ItemIdToVipPrivilege[rewardData[i][1]]
|
||||
if prolist[priId] then
|
||||
addValue = addValue + (prolist[priId]/10000)
|
||||
end
|
||||
end
|
||||
local baseValue = rewardData[i][2]
|
||||
|
||||
if addValue - 1 <= 0 then
|
||||
|
|
|
@ -6,11 +6,7 @@ local Huo_Dong_Diao_Luo = ConfigManager.GetConfig(ConfigName.ActivityDropReward)
|
|||
local rewardGroupConfig = ConfigManager.GetConfig(ConfigName.RewardGroup)
|
||||
this.talkingTime = 0 --对话时间
|
||||
-- 挂机物品栏位对应vip数值加成特权
|
||||
local _ItemIdToVipPrivilege = {
|
||||
[14] = 1,
|
||||
[3] = 1,
|
||||
[17] = 27,
|
||||
}
|
||||
|
||||
-- 战斗胜利后是否已经更新过ID
|
||||
local hadUpdate = false
|
||||
|
||||
|
|
Loading…
Reference in New Issue