英雄献祭修改提交

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", ArenaBattleReward = "ArenaBattleReward",
RaceTowerConfig = "RaceTowerConfig", RaceTowerConfig = "RaceTowerConfig",
RaceTowerRewardConfig = "RaceTowerRewardConfig", RaceTowerRewardConfig = "RaceTowerRewardConfig",
HeroSacrifice = "HeroSacrifice",
} }
require "Framework/GameDataBase" require "Framework/GameDataBase"

View File

@ -2164,18 +2164,18 @@ function this.GetHeroReturnItems(selectHeroData, type)
end end
else else
if v.breakId > 0 then 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 if heroRankUpConfig then
local sumConsume = heroRankUpConfig.SumConsume local sumConsume = heroRankUpConfig.Value
for i = 1, #sumConsume do for i = 1, #sumConsume do
table.insert(ShowItemlist, {sumConsume[i][1], sumConsume[i][2] * specificValue}) table.insert(ShowItemlist, {sumConsume[i][1], sumConsume[i][2] * specificValue})
end end
end end
end end
if v.upStarId > 0 then 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 if heroRankUpConfig then
local sumConsume = heroRankUpConfig.SumConsume local sumConsume = heroRankUpConfig.Value
for i = 1, #sumConsume do for i = 1, #sumConsume do
table.insert(ShowItemlist, {sumConsume[i][1], sumConsume[i][2] * specificValue}) table.insert(ShowItemlist, {sumConsume[i][1], sumConsume[i][2] * specificValue})
end end