From 6c51d0b79d3f7d20af74301b3f2938a0ce9de91c Mon Sep 17 00:00:00 2001 From: luying Date: Mon, 8 Mar 2021 18:39:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=98=E5=8A=9B=EF=BC=9A=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E7=BA=A7=E6=95=B0=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/domain/roleField/attribute.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/domain/roleField/attribute.ts b/shared/domain/roleField/attribute.ts index 0da2c0e15..1d32c8a9b 100644 --- a/shared/domain/roleField/attribute.ts +++ b/shared/domain/roleField/attribute.ts @@ -180,7 +180,7 @@ export class Attribute { let validHp = hp + (def + mdef) * 0.5 / ((1 - fleeRate * CE_CONST.FLEE_VALUE) * (1 - damageDecrease)); // 有效生命 let validAtk = atk * hitRate * ( 1 + criRate * criValue) * ( 1 + damageIncrease); // 有效输出 let ce = Math.floor(validHp * validAtk * HERO_CE_RATIO * HERO_CE_RATIO); - + ce = ce / 1000; return ce > 0? ce: 1; }