英雄献祭修改提交

dev_chengFeng
jiaoyangna 2020-07-23 16:26:51 +08:00
parent 60b7e750a6
commit 5894babbf0
2 changed files with 5 additions and 4 deletions

View File

@ -156,6 +156,7 @@ ConfigName = {
ArenaBattleReward = "ArenaBattleReward",
RaceTowerConfig = "RaceTowerConfig",
RaceTowerRewardConfig = "RaceTowerRewardConfig",
HeroSacrifice = "HeroSacrifice",
}
require "Framework/GameDataBase"

View File

@ -2164,18 +2164,18 @@ function this.GetHeroReturnItems(selectHeroData, type)
end
else
if v.breakId > 0 then
local heroRankUpConfig = ConfigManager.GetConfigData(ConfigName.HeroRankupConfig, v.breakId)
local heroRankUpConfig = ConfigManager.GetConfigDataByDoubleKey(ConfigName.HeroSacrifice,"Type",2,"Key",v.breakId)
if heroRankUpConfig then
local sumConsume = heroRankUpConfig.SumConsume
local sumConsume = heroRankUpConfig.Value
for i = 1, #sumConsume do
table.insert(ShowItemlist, {sumConsume[i][1], sumConsume[i][2] * specificValue})
end
end
end
if v.upStarId > 0 then
local heroRankUpConfig = ConfigManager.GetConfigData(ConfigName.HeroRankupConfig, v.upStarId)
local heroRankUpConfig = ConfigManager.GetConfigDataByDoubleKey(ConfigName.HeroSacrifice,"Type",1,"Key",v.upStarId)
if heroRankUpConfig then
local sumConsume = heroRankUpConfig.SumConsume
local sumConsume = heroRankUpConfig.Value
for i = 1, #sumConsume do
table.insert(ShowItemlist, {sumConsume[i][1], sumConsume[i][2] * specificValue})
end