From 124529bde63fbf1fd3a0f87e9abb0fa4f2d85da0 Mon Sep 17 00:00:00 2001 From: luying Date: Fri, 27 Aug 2021 16:51:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A5=9E=E5=83=8F=EF=BC=9A=E6=AC=A1=E7=BA=A7?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E6=88=98=E5=8A=9B=E8=AE=A1=E7=AE=97=E8=BF=9B?= =?UTF-8?q?fixUp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/pubUtils/playerCe.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/pubUtils/playerCe.ts b/shared/pubUtils/playerCe.ts index 4a54601ab..1be2c0004 100644 --- a/shared/pubUtils/playerCe.ts +++ b/shared/pubUtils/playerCe.ts @@ -1119,8 +1119,8 @@ function calTeraphAssistAttr(role: RoleType, update: RoleUpdate, id: number) { oldVal = dicOldTeraph.assiAttrValue.get(attrId); } - let ratioUp = val - oldVal; - updateRoleAttr(roleAttrs, attrId, { inc: { ratioUp } }); + let fixUp = (val - oldVal) * HERO_CE_RATIO; + updateRoleAttr(roleAttrs, attrId, { inc: { fixUp } }); }); return roleAttrs; } \ No newline at end of file