From 0f94842d6ad1a73b9ea5f094e6a3bd67ce0a5388 Mon Sep 17 00:00:00 2001 From: mengyxu Date: Mon, 12 May 2025 11:10:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=80=AA=E7=89=A9=E6=9A=B4?= =?UTF-8?q?=E5=87=BB=E7=9B=B8=E5=85=B3=E5=B1=9E=E6=80=A7=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/beings.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/config/beings.ts b/src/config/beings.ts index e25bd97..f8e7cb1 100644 --- a/src/config/beings.ts +++ b/src/config/beings.ts @@ -3,7 +3,7 @@ export const type_monster = 'monster'; export const type_boss = 'boss'; export const difficultys = ['normal', 'hard', 'pain', 'xiaomi', 'dami']; export const show_lv_df = ['normal', 'hard', 'pain']; -const base_attr_factor = { normal: 1, hard: 1.15, pain: 1.4, xiaomi: 1.6, dami: 3 }; +const base_attr_factor = { normal: 1, hard: 1.15, pain: 1.4, xiaomi: 2, dami: 3 }; const extra_factor = { normal: 0, hard: 0, pain: 0, xiaomi: 1, dami: 2 }; const rate_factor = { normal: 1, hard: 2, pain: 3, xiaomi: 4, dami: 5 }; @@ -96,7 +96,7 @@ export class Monster extends Attribute { this.callAtk(2.5); this.callHp(17); this.callCoins(11); - this.callCrit(5); + this.callCrit(0.5); this.callDef(); this.equipRates = [0.2 * this.df, 0.08 * this.df, 0.03 * this.df]; this.extraRate = [0, 0]; @@ -114,9 +114,11 @@ export class Monster extends Attribute { callDef = () => { this.def = Math.ceil(50 * this.ef * this.lf); }; - callCrit = (variable) => { - this.crit = Math.ceil(variable * this.ef * this.lf); - this.critDmg = Math.ceil((150 + 50 * this.ef) * this.lf ** 0.5); + callCrit = (factor) => { + this.crit = Math.ceil((15 + 10 * (this.ef - 1) * this.lf) * factor); + this.critDmg = Math.ceil(150 + 50 * this.ef * this.lf); + this.critAvoid = Math.ceil((10 + 10 * (this.ef - 1) * this.lf) * factor); + this.critDmgReduc = Math.ceil(50 * this.ef * this.lf); }; } @@ -127,7 +129,7 @@ export class BossMonster extends Monster { this.callAtk(3.5); this.callHp(31); this.callCoins(30.5); - this.callCrit(15); + this.callCrit(1); const rf = rate_factor[difficulty]; this.equipRates = [0.25 - 0.05 * rf, 0.55 - 0.1 * rf, 0.15 + 0.1 * rf, 0.05 + 0.05 * rf]; let uniqueRate = 0.02 * ((rf - 1) * 5 + 1);