时空神将推荐阵容显示修改提交

(cherry picked from commit 883f9af02e)
dev_one_discount
wangzhenxing 2023-09-14 16:21:33 +08:00
parent 51dc91cbda
commit 14ce1fedbd
1 changed files with 5 additions and 2 deletions

View File

@ -70,6 +70,7 @@ function ElementalResonanceView:GetElementalType(curFormation, type)
local windyElementNum = 0
local waterElementNum = 0
local groundElementNum = 0
local kongElementNum = 0
self.dataTable = {}
if (type == 1) then
@ -77,7 +78,7 @@ function ElementalResonanceView:GetElementalType(curFormation, type)
local data = HeroManager.GetSingleHeroData(v.heroId)
self.heroPropertyType = data.changeProId
LogGreen("data.changeProId:"..tostring(data.changeProId))
--LogError("data.changeProId:"..tostring(data.changeProId))
table.insert(elementPropertyList, self.heroPropertyType)
end
self.dataTable.title = Language[12021]
@ -99,6 +100,8 @@ function ElementalResonanceView:GetElementalType(curFormation, type)
waterElementNum = waterElementNum + 1
elseif (v == 4) then
groundElementNum = groundElementNum + 1
elseif (v ==5) then
kongElementNum = kongElementNum + 1
end
end
@ -107,7 +110,7 @@ function ElementalResonanceView:GetElementalType(curFormation, type)
list[2] = windyElementNum
list[3] = waterElementNum
list[4] = groundElementNum
list[5] = kongElementNum
local indexChoose = 0
for i = 1, #list do
local v=list[i]