新英雄宝物修改提交
parent
3bdc14d9a3
commit
a1c038b5c0
|
@ -1358,7 +1358,7 @@ function this.SetOneKeyGo()
|
|||
end
|
||||
for k, v in ipairs(heros) do
|
||||
local curSingleherodata = HeroManager.GetSingleHeroData(v.dynamicId)
|
||||
if curSingleherodata.property~=5 then
|
||||
--if curSingleherodata.property~=5 then
|
||||
if not upHeroSidTable[curSingleherodata.id] then
|
||||
if #this.choosedList < 6 then
|
||||
for n = 1, #posArr do
|
||||
|
@ -1372,7 +1372,7 @@ function this.SetOneKeyGo()
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
--end
|
||||
|
||||
end
|
||||
this.SetCardsData()
|
||||
|
|
|
@ -3798,7 +3798,11 @@ function this.GetHeroIsUpTreasure(heroDid,pos)
|
|||
end
|
||||
end
|
||||
end
|
||||
local allEquipTreasures = EquipTreasureManager.GetAllTreasuresByLocation(pos,heroData.changeProId)
|
||||
local pro=heroData.changeProId
|
||||
if heroData.changeProId==5 then
|
||||
pro=0
|
||||
end
|
||||
local allEquipTreasures = EquipTreasureManager.GetAllTreasuresByLocation(pos,pro)
|
||||
for k, v in ipairs(allEquipTreasures) do
|
||||
--比较战力 高战力的装备add
|
||||
if lackEquips[v.equipType].id == "0" then
|
||||
|
|
|
@ -403,7 +403,7 @@ function this.GetAllTreasuresByLocation(Location, PropertyName)
|
|||
for key, value in pairs(allTreasures) do
|
||||
if
|
||||
(value.upHeroDid == "" or value.upHeroDid == "0" ) and (Location == 0 or jewelConfig[value.id].Location == Location) and
|
||||
jewelConfig[value.id].Race == PropertyName
|
||||
(PropertyName==0 or jewelConfig[value.id].Race == PropertyName)
|
||||
then
|
||||
table.insert(curAllEquipTreasure, value)
|
||||
end
|
||||
|
|
|
@ -328,7 +328,11 @@ function this:AllEquipUpBtnOnClick()
|
|||
local curPosEquip = {}
|
||||
local index = i
|
||||
if (index == 5 or index == 6) and isCanUpEquipTreasure then
|
||||
curPosEquip = EquipTreasureManager.GetAllTreasuresByLocation(index - 4, curHeroData.changeProId)
|
||||
local pro=curHeroData.changeProId
|
||||
if curHeroData.changeProId==5 then
|
||||
pro=0
|
||||
end
|
||||
curPosEquip = EquipTreasureManager.GetAllTreasuresByLocation(index - 4, pro)
|
||||
else
|
||||
--获取到所有未装备的装备
|
||||
curPosEquip = BagManager.GetEquipDataByEquipPosition(curHeroData.heroConfig.Profession, index)
|
||||
|
@ -704,7 +708,11 @@ function this:OnClickTabBtn(_index)
|
|||
elseif _index ==5 then
|
||||
-- body
|
||||
local allEquipTreasure
|
||||
allEquipTreasure = EquipTreasureManager.GetAllTreasures(curHeroData.changeProId)
|
||||
local pro=curHeroData.changeProId
|
||||
if pro==5 then
|
||||
pro=0
|
||||
end
|
||||
allEquipTreasure = EquipTreasureManager.GetAllTreasures(pro)
|
||||
this:SortEquipDatas1(allEquipTreasure)
|
||||
--"装备数量:"
|
||||
this.itemNumText.text = Language[12181] .. LengthOfTable(allEquipTreasure)
|
||||
|
|
Loading…
Reference in New Issue