parent
51dc91cbda
commit
14ce1fedbd
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue