From 2d4b681066853383e57c0aac8ae12977c98da1b5 Mon Sep 17 00:00:00 2001 From: walkpan Date: Sat, 31 Jan 2026 11:30:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B8=B8=E6=88=8F=E5=B9=B3=E8=A1=A1):=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4rogue=E6=A8=A1=E5=BC=8F=E6=80=AA=E7=89=A9?= =?UTF-8?q?=E6=88=90=E9=95=BF=E5=85=AC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将TIME_SCALING从15增加到20,使15分钟成长倍率从16倍调整为21倍 - 将质量系数从固定5.0改为动态计算(1.5 + 4.5 * waveFactor),降低初始强度并随时间线性增强 - 使怪物难度曲线更加平滑,改善游戏前期体验 --- assets/script/game/map/RogueConfig.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/assets/script/game/map/RogueConfig.ts b/assets/script/game/map/RogueConfig.ts index 14424387..08869a44 100644 --- a/assets/script/game/map/RogueConfig.ts +++ b/assets/script/game/map/RogueConfig.ts @@ -266,8 +266,8 @@ function calculateWaveFactor(stage: number, timeInSeconds: number = 0): number { * 应用成长公式到基础属性 */ function applyGrowthFormula(baseStat: number, waveFactor: number, growthType: GrowthType): number { - // 基础倍率:15分钟成长约 16 倍 (1 + 1.0 * 15) - const TIME_SCALING = 15; + // 基础倍率:15分钟成长约 21 倍 (1 + 1.0 * 20) + const TIME_SCALING = 20; const growthMultiplier = Math.pow(1 + waveFactor * TIME_SCALING, growthType); return Math.floor(baseStat * growthMultiplier); } @@ -290,8 +290,9 @@ export function getMonAttr(stage: number, uuid: number, monType: MonType = MonTy // 计算波次因子 const waveFactor = calculateWaveFactor(0, timeInSeconds); - // 质量系数:数量减至10(原50的1/5),质量x5 - const qualityRatio = 5.0; + // 动态质量系数:初始 1.5倍 -> 15分钟 6.0倍 + // 大幅降低初始强度(原固定5.0),随时间线性增强 + const qualityRatio = 1.5 + (4.5 * waveFactor); // 根据怪物类型应用额外的倍率 let typeMultiplier = 1.0;