|
|
@@ -125,47 +125,47 @@ end
|
|
|
|
|
|
|
|
|
function RecommendLineup_UpDate(human)
|
|
|
- local combatHero,helpList = CombatPosLogic.getCombatHeros(human, CombatDefine.COMBAT_TYPE1)
|
|
|
- if not combatHero then
|
|
|
- return
|
|
|
- end
|
|
|
-
|
|
|
- local nNewPower = CombatPosLogic.getCombatHeroZDL(human, CombatDefine.COMBAT_TYPE1, true)
|
|
|
-
|
|
|
- local nIndex = RecommendLineup_GetIndex(nNewPower)
|
|
|
- if -1 >= nIndex then
|
|
|
- return
|
|
|
- end
|
|
|
-
|
|
|
- local tHeroData = {
|
|
|
- nPower = nNewPower,
|
|
|
- data = {},
|
|
|
- }
|
|
|
-
|
|
|
- local nLen = 1
|
|
|
- for _, v in pairs(combatHero) do
|
|
|
- local heroGrid = HeroLogic.getHeroGridByUuid(human, v)
|
|
|
- if heroGrid then
|
|
|
- tHeroData.data[nLen] = {
|
|
|
- general = {},
|
|
|
- gemData = {},
|
|
|
- }
|
|
|
- HeroGrid.makeHeroSimple(tHeroData.data[nLen], heroGrid, heroGrid.bagIndex, human)
|
|
|
- nLen = nLen + 1
|
|
|
- end
|
|
|
- end
|
|
|
+ -- local combatHero,helpList = CombatPosLogic.getCombatHeros(human, CombatDefine.COMBAT_TYPE1)
|
|
|
+ -- if not combatHero then
|
|
|
+ -- return
|
|
|
+ -- end
|
|
|
+
|
|
|
+ -- local nNewPower = CombatPosLogic.getCombatHeroZDL(human, CombatDefine.COMBAT_TYPE1, true)
|
|
|
+
|
|
|
+ -- local nIndex = RecommendLineup_GetIndex(nNewPower)
|
|
|
+ -- if -1 >= nIndex then
|
|
|
+ -- return
|
|
|
+ -- end
|
|
|
+
|
|
|
+ -- local tHeroData = {
|
|
|
+ -- nPower = nNewPower,
|
|
|
+ -- data = {},
|
|
|
+ -- }
|
|
|
+
|
|
|
+ -- local nLen = 1
|
|
|
+ -- for _, v in pairs(combatHero) do
|
|
|
+ -- local heroGrid = HeroLogic.getHeroGridByUuid(human, v)
|
|
|
+ -- if heroGrid then
|
|
|
+ -- tHeroData.data[nLen] = {
|
|
|
+ -- general = {},
|
|
|
+ -- gemData = {},
|
|
|
+ -- }
|
|
|
+ -- HeroGrid.makeHeroSimple(tHeroData.data[nLen], heroGrid, heroGrid.bagIndex, human)
|
|
|
+ -- nLen = nLen + 1
|
|
|
+ -- end
|
|
|
+ -- end
|
|
|
|
|
|
- for _,v in pairs(helpList) do
|
|
|
- local heroGrid = HeroLogic.getHeroGridByUuid(human, v)
|
|
|
- if heroGrid then
|
|
|
- tHeroData.data[nLen] = {
|
|
|
- general = {},
|
|
|
- gemData = {},
|
|
|
- }
|
|
|
- HeroGrid.makeHeroSimple(tHeroData.data[nLen], heroGrid, heroGrid.bagIndex, human)
|
|
|
- nLen = nLen + 1
|
|
|
- end
|
|
|
- end
|
|
|
+ -- for _,v in pairs(helpList) do
|
|
|
+ -- local heroGrid = HeroLogic.getHeroGridByUuid(human, v)
|
|
|
+ -- if heroGrid then
|
|
|
+ -- tHeroData.data[nLen] = {
|
|
|
+ -- general = {},
|
|
|
+ -- gemData = {},
|
|
|
+ -- }
|
|
|
+ -- HeroGrid.makeHeroSimple(tHeroData.data[nLen], heroGrid, heroGrid.bagIndex, human)
|
|
|
+ -- nLen = nLen + 1
|
|
|
+ -- end
|
|
|
+ -- end
|
|
|
|
|
|
-- RecommendLineup_UpDateData(human, nIndex, tHeroData)
|
|
|
end
|