【新战斗力】加注释
parent
df943f6da9
commit
ea35f69d5d
|
@ -250,18 +250,18 @@ function this.GetFormationPower(formationId)
|
|||
--end
|
||||
LogPink("计算编队战斗力: "..formationId)
|
||||
local power = 0
|
||||
for i = 1, 6 do
|
||||
if formationList.teamHeroInfos[i] then
|
||||
-- for i = 1, 6 do
|
||||
-- if formationList.teamHeroInfos[i] then
|
||||
-- -- local heroData = HeroManager.GetSingleHeroData(formationList.teamHeroInfos[i].heroId)
|
||||
-- -- power = power + HeroPowerManager.GetHeroPower(heroData.dynamicId, formationId)
|
||||
-- local heroData = HeroManager.GetSingleHeroData(formationList.teamHeroInfos[i].heroId)
|
||||
-- power = power + HeroPowerManager.GetHeroPower(heroData.dynamicId, formationId)
|
||||
local heroData = HeroManager.GetSingleHeroData(formationList.teamHeroInfos[i].heroId)
|
||||
--1, curHeroData.dynamicId, false,nil,nil,true,allHeroTeamAddProVal)
|
||||
local allHeroTeamAddProVal = HeroManager.GetAllHeroTeamAddProVal(formationList.teamHeroInfos,formationList.teamHeroInfos[i].heroId)
|
||||
local allEquipAddProVal = HeroManager.CalculateHeroAllProValList(1, heroData.dynamicId,false,nil,nil,true,allHeroTeamAddProVal)
|
||||
power = power + allEquipAddProVal[HeroProType.WarPower]
|
||||
end
|
||||
end
|
||||
LogRed("原方式战斗力:"..power)
|
||||
-- --1, curHeroData.dynamicId, false,nil,nil,true,allHeroTeamAddProVal)
|
||||
-- local allHeroTeamAddProVal = HeroManager.GetAllHeroTeamAddProVal(formationList.teamHeroInfos,formationList.teamHeroInfos[i].heroId)
|
||||
-- local allEquipAddProVal = HeroManager.CalculateHeroAllProValList(1, heroData.dynamicId,false,nil,nil,true,allHeroTeamAddProVal)
|
||||
-- power = power + allEquipAddProVal[HeroProType.WarPower]
|
||||
-- end
|
||||
-- end
|
||||
-- LogRed("原方式战斗力:"..power)
|
||||
local power2 = 0
|
||||
for i = 1, 6 do
|
||||
if formationList.teamHeroInfos[i] then
|
||||
|
|
|
@ -1628,6 +1628,7 @@ end
|
|||
--计算英雄身上所有属性加成(包括装备就、异妖的加成)
|
||||
--_type==1 计算当前英雄的所有属性 _type==2 根据_heroDid之后_breakId传过来的值进行计算 _isAllHeroProVal==true 团体加成综合 用字段_allHeroProVal
|
||||
function this.CalculateHeroAllProValList(_type, _heroDid, isWar, _breakId, _upStarId, _isAllHeroProVal, _allHeroProVal,formationHeroNum)
|
||||
LogError(" ------- ------------ 原战斗计算方式不应调用 ----------- -------")
|
||||
local curHeroData = this.GetSingleHeroData(_heroDid) or _heroDid
|
||||
local curLvNum = curHeroData.lv -- heroLevelConfig[curHeroData.lv].CharacterLevelPara
|
||||
--local speedNum = heroLevelConfig[curHeroData.lv].SpeedLevelPara
|
||||
|
|
Loading…
Reference in New Issue