From b5a6b99abf5fe908f5ec9a62aa0f16bdb39b4da2 Mon Sep 17 00:00:00 2001 From: mengyxu Date: Fri, 16 May 2025 00:32:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=A5=9E=E8=AF=9D=E8=A3=85?= =?UTF-8?q?=E5=A4=87=E7=88=86=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/beings.ts | 4 ++-- src/views/dungeon/dungeonMap.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/beings.ts b/src/config/beings.ts index 1defa62..3b0eb3c 100644 --- a/src/config/beings.ts +++ b/src/config/beings.ts @@ -92,7 +92,7 @@ export class Monster extends Attribute { this.difficulty = difficulty; this.df = base_attr_factor[this.difficulty]; this.ef = extra_factor[difficulty]; - this.lf = ((this.lv + layer) / this.lv) ** 2; + this.lf = ((this.lv + layer - 1) / this.lv) ** 2; this.callAtk(2.5); this.callHp(17); this.callCoins(11); @@ -133,7 +133,7 @@ export class BossMonster extends Monster { 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); - const colorfulRate = 0.04 * (rf - 3) * this.lf; + const colorfulRate = 0.02 * (rf - 3) * this.lf; if (uniqueRate + colorfulRate > 1) { uniqueRate = 1 - colorfulRate; } diff --git a/src/views/dungeon/dungeonMap.vue b/src/views/dungeon/dungeonMap.vue index 5df863d..56fab2f 100644 --- a/src/views/dungeon/dungeonMap.vue +++ b/src/views/dungeon/dungeonMap.vue @@ -94,7 +94,7 @@ const refreshDungeons = () => { const refreshSecret = () => { if (state.playerAttribute.lv >= 100) { - xiaomi.value = new Dungeon(100, 'xiaomi'); + xiaomi.value = new Dungeon(100, 'xiaomi', 1); xiaomi.value.right = '4%'; xiaomi.value.top = '43%'; dami.value = new Dungeon(100, 'dami', layer.value);