This commit is contained in:
xiekaidong 2023-08-22 17:46:28 +08:00
parent 08553687ae
commit b57617a85c

View File

@ -291,6 +291,14 @@ function HeroData:getAllHeroesSort(formationType)
sort = sort + (10 - info.elementType) * 1000000 -- 位置预留1位 sort = sort + (10 - info.elementType) * 1000000 -- 位置预留1位
sort = sort + 10000000 * heroEntity:getQlt() -- 品质1位 sort = sort + 10000000 * heroEntity:getQlt() -- 品质1位
sort = sort + 100000000 * heroEntity:getLv() -- 预留3位 sort = sort + 100000000 * heroEntity:getLv() -- 预留3位
if formationMap and formationMap[info.cfgId] then --在布阵中
sort = sort + 10000000000000
end
if not heroEntity:isActived() and heroEntity:canLvUp() then
sort = sort + 1000000000000
else
if heroEntity:isUnlock() then if heroEntity:isUnlock() then
sort = sort + 300000000000 sort = sort + 300000000000
if heroEntity:isActived() then if heroEntity:isActived() then
@ -303,13 +311,6 @@ function HeroData:getAllHeroesSort(formationType)
else else
sort = sort + 100000000000 sort = sort + 100000000000
end end
if formationMap and formationMap[info.cfgId] then --在布阵中
sort = sort + 10000000000000
end
if not heroEntity:isActived() and heroEntity:canLvUp() then
sort = sort + 1000000000000
end end
info.sort = sort info.sort = sort