dev_chengFeng
zhangqiang 2020-07-13 15:39:29 +08:00
parent 926ff911da
commit bc270de90d
1 changed files with 11 additions and 1 deletions

View File

@ -1240,6 +1240,7 @@ end
---90 例子 5#0.05#2 第一位对应PropertyConfig表PropertyIdInBattle 第二位 加成具体数值是百分百或者绝对值看PropertyConfig表 第三位 公式
---94 例子 0.05#17#2 百分比 PropertyConfig表PropertyIdInBattle属性 公式
---171 例子 3#9 100后每增加一级加 PropertyConfig表PropertyIdInBattle属性3 9值
---129 例子 3#0.1#5#1 第一位英雄元素 第二位 加成具体数值是百分百或者绝对值看PropertyConfig表 第三位对应PropertyConfig表PropertyIdInBattle 第四位 公式
---前端计算逻辑 先把所有被动技团体加成 和 被动技个人加成都提出来 然后计算英雄身上所有绝对值 + 所有被动技团体绝对值 + 所有被动技个人加成绝对值
--- * 1 + 英雄身上万分比加成 + 普通团体被动技百分比 + 普通个人被动技百分比 + 个体等级百分比加成 * 1 - 4乘减算 百分比)
---
@ -1300,6 +1301,15 @@ function this.CalculatePassiveSkillsValList(index, skillids)
curSkillData.Value[1],
curSkillData.Value[3]
)
-- elseif curSkillData.Type == 129 then
-- this.GetProAndValByFormula(
-- this.allProVal[index].allHeroProVal,
-- this.allProVal[index].specialProVal,
-- curSkillData.Value[3],
-- curSkillData.Value[2],
-- curSkillData.Value[4],
-- curSkillData.Value[1]
-- )
elseif curSkillData.Type == 171 then
--目前没有
--this.GetProAndValByFormula(lvProVal,curSkillData,specialProVal)
@ -1313,7 +1323,7 @@ function this.CalculatePassiveSkillsValList(index, skillids)
index
].specialProVal
end
function this.GetProAndValByFormula(proTable, specialProVal, curProId, curProVal, curProlGs)
function this.GetProAndValByFormula(proTable, specialProVal, curProId, curProVal, curProlGs,heroPro)
if curProlGs == 1 then --公式 绝对值加a+b
local curProConfig = ConfigManager.GetConfigDataByKey(ConfigName.PropertyConfig, "PropertyIdInBattle", curProId)
if propertyConfig[curProConfig.PropertyId].Style == 1 then