【ID1018684】

【好感度】好感度挂机加成没在挂机奖励预览处显示数量
dev_chengFeng
jiaoyangna 2021-10-09 12:04:01 +08:00
parent 32a38b6053
commit d58e38fcea
4 changed files with 26 additions and 5 deletions

View File

@ -2897,3 +2897,10 @@ RevertPreConfigure={
[RecruitType.Single]=5,
[RecruitType.Ten]=6,
}
_ItemIdToVipPrivilege = {
[14] = 1,
[3] = 1,
[17] = 27,
}

View File

@ -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

View File

@ -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

View File

@ -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