【英雄升星祭品】提交——3
parent
fbe886fc85
commit
4bb6004ace
|
@ -766,12 +766,26 @@ function this.GetUpStarHeroListData(heroRankUpGroupId, heroData)
|
|||
end
|
||||
end
|
||||
)
|
||||
local canSeleItemIds = {}
|
||||
--前边以前添加英雄代码不动
|
||||
local canSeleItemIds = {}
|
||||
if heroRankUpGroup.ItemCamp and #heroRankUpGroup.ItemCamp > 0 then
|
||||
for i = 1, #heroRankUpGroup.ItemCamp do
|
||||
if heroData.heroConfig.PropertyName == heroRankUpGroup.ItemCamp[i][1] then
|
||||
local itemId = heroRankUpGroup.ItemCamp[i][2]
|
||||
local haveNum = BagManager.GetItemCountById(itemId)
|
||||
if haveNum > 0 then
|
||||
for i = 1, haveNum do
|
||||
local v = {}
|
||||
v.id = itemId
|
||||
table.insert(canSeleItemIds,itemId)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if heroRankUpGroup.Items and #heroRankUpGroup.Items > 0 then
|
||||
for i = 1, #heroRankUpGroup.Items do
|
||||
local itemId = heroRankUpGroup.Items[i]
|
||||
LogYellow("itemId "..itemId)
|
||||
local haveNum = BagManager.GetItemCountById(itemId)
|
||||
if haveNum > 0 then
|
||||
for i = 1, haveNum do
|
||||
|
|
|
@ -64,7 +64,7 @@ end
|
|||
--绑定事件(用于子类重写)
|
||||
function RoleAwakeLayout:BindEvent()
|
||||
--升星
|
||||
Util.AddClick(this.upStarBtn, function()
|
||||
Util.AddOnceClick(this.upStarBtn, function()
|
||||
this.StarUpClick()
|
||||
end)
|
||||
end
|
||||
|
|
|
@ -65,7 +65,7 @@ end
|
|||
--绑定事件(用于子类重写)
|
||||
function RoleUpStarLayout:BindEvent()
|
||||
--升星
|
||||
Util.AddClick(this.upStarBtn, function()
|
||||
Util.AddOnceClick(this.upStarBtn, function()
|
||||
self:StarUpClick()
|
||||
end)
|
||||
--前往化虚坛
|
||||
|
|
|
@ -323,6 +323,8 @@ function this.HeroSortData(heroData)
|
|||
else
|
||||
return (a.isFormation == "" or (a.isFormation ~= "" and a.isFormation == Language[10410])) and (not b.dynamicId ~= "" and b.isFormation ~= Language[10410])
|
||||
end
|
||||
elseif a.type == b.type and a.type == RoleUpStarMatType.item and b.type == RoleUpStarMatType.item then
|
||||
return a.id > b.id
|
||||
else
|
||||
return a.type > b.type
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue