【英雄升星祭品】提交 ——4
parent
d7a74e8256
commit
aae0749f1a
|
@ -745,13 +745,17 @@ function this.HeroUpStarEvent(heroId, consumeMaterials, func)
|
|||
c.position = i
|
||||
for j = 1, #consumeMaterials[i] do
|
||||
local e = c.heroIds:add()
|
||||
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
|
||||
-- c.heroIds:append(consumeMaterials[i][j])
|
||||
else--英雄合成 没有做英雄狗粮逻辑
|
||||
e.type = RoleUpStarMatType.hero
|
||||
e.itemId = consumeMaterials[i][j]
|
||||
end
|
||||
end
|
||||
end
|
||||
--for j = 1, #data.ConsumeMaterial do
|
||||
|
|
Loading…
Reference in New Issue