From d822f6b8194f6793b862057e1259ef745629461e Mon Sep 17 00:00:00 2001 From: luying Date: Wed, 16 Dec 2020 15:02:54 +0800 Subject: [PATCH] =?UTF-8?q?fix=20base=E6=88=98=E5=8A=9B=E5=86=8D=E6=89=A9?= =?UTF-8?q?=E5=A4=A7100=E5=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/playerCeService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game-server/app/services/playerCeService.ts b/game-server/app/services/playerCeService.ts index bffb00756..b406e7fef 100644 --- a/game-server/app/services/playerCeService.ts +++ b/game-server/app/services/playerCeService.ts @@ -100,7 +100,7 @@ export function calHeroStarIncAttr (hero: HeroType, args: Array, addSeid let heroUpAttr = dicHero.baseAbilityUpArr.get(targetAttrId); // 武将表hp_up等 let starUp = dicStar.ceAttr.get(stage); - let newBase = heroAttr + hero.lv * (heroUpAttr + starUp); + let newBase = (heroAttr + hero.lv * (heroUpAttr + starUp)) * HERO_CE_RATIO; let field = getAtrrNameById(targetAttrId); let ceAttrData: CeAttrData = ceAttr[field]||new CeAttrData(); // 存表中的属性下的base,fixup,ratioup let {ratioUp = 0, fixUp = 0} = ceAttrData; @@ -263,12 +263,12 @@ function addSeidEffect(reIncAttr: CeAttr, addSeidList: Array, removeSeid if(!reIncAttr[HERO_ATTR[ability]]) { reIncAttr[HERO_ATTR[ability]] = new CeAttrData(); } - reIncAttr[HERO_ATTR[ability]].ratioUp += value * multi; + reIncAttr[HERO_ATTR[ability]].fixUp += value * multi * HERO_CE_RATIO; } else if (type == SEID_TYPE.TYPE102) { // 加百分比 if(!reIncAttr[HERO_ATTR[ability]]) { reIncAttr[HERO_ATTR[ability]] = new CeAttrData(); } - reIncAttr[HERO_ATTR[ability]].fixUp += value * multi; + reIncAttr[HERO_ATTR[ability]].ratioUp += value * multi; } } }