下阵操作

dev_chengFeng
jiaoyangna 2021-05-14 19:48:53 +08:00
parent d62b8b5011
commit 848af2cbbe
2 changed files with 14 additions and 5 deletions

View File

@ -270,7 +270,7 @@ end
function this.RefreshFormation(isTop,isAni)
proId=0
if this.curFormationIndex == FormationTypeDef.FORMATION_ENDLESS_MAP then
EndLessMapManager.RrefreshFormation()
this.opView:RrefreshFormation()
end
--获取当前编队数据
if this.curFormationIndex == FormationTypeDef.EXPEDITION then

View File

@ -17,10 +17,10 @@ function this.Init(root, curMapId)
this.root = root
this.curMapId = EndLessMapManager.openMapId
this.InitView()
end
end
local index = 0
--- 获取需要显示的编队id
function this.GetFormationIndex()
local index = 0
if CarbonManager.difficulty == CARBON_TYPE.ENDLESS then
index = FormationTypeDef.FORMATION_ENDLESS_MAP
else
@ -61,8 +61,17 @@ end
-- [3] = 28,
-- }
function this.RefreshFormation()
function this.RrefreshFormation()
local tempList = {}
local curFormation = FormationManager.GetFormationByID(index)
LogGreen("curFormation.teamHeroInfos:"..#curFormation.teamHeroInfos)
for k,v in pairs(curFormation.teamHeroInfos) do
if EndLessMapManager.heroDataLists[v.heroId] then
table.insert(tempList,v)
end
end
LogGreen("#tempList:"..#tempList)
FormationManager.formationList[index].teamHeroInfos = tempList
end
-- 进入地图