【英雄升星祭品】提交 ——4

dev_chengFeng
zhangqiang 2021-04-20 13:48:55 +08:00
parent d7a74e8256
commit aae0749f1a
1 changed files with 10 additions and 6 deletions

View File

@ -745,13 +745,17 @@ function this.HeroUpStarEvent(heroId, consumeMaterials, func)
c.position = i
for j = 1, #consumeMaterials[i] do
local e = c.heroIds:add()
e.type = consumeMaterials[i][j].type
if consumeMaterials[i][j].type == RoleUpStarMatType.hero then
e.itemId = consumeMaterials[i][j].dynamicId
elseif consumeMaterials[i][j].type == RoleUpStarMatType.item then
e.itemId = tostring(consumeMaterials[i][j].id)
if consumeMaterials[i][j].type then--英雄正常升星 做了英雄狗粮逻辑
e.type = consumeMaterials[i][j].type
if consumeMaterials[i][j].type == RoleUpStarMatType.hero then
e.itemId = consumeMaterials[i][j].dynamicId
elseif consumeMaterials[i][j].type == RoleUpStarMatType.item then
e.itemId = tostring(consumeMaterials[i][j].id)
end
else--英雄合成 没有做英雄狗粮逻辑
e.type = RoleUpStarMatType.hero
e.itemId = consumeMaterials[i][j]
end
-- c.heroIds:append(consumeMaterials[i][j])
end
end
--for j = 1, #data.ConsumeMaterial do