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