品质统一在boxset设定

This commit is contained in:
panfudan
2025-08-18 21:03:47 +08:00
parent 3884b35829
commit 9e1459973c
18 changed files with 368 additions and 377 deletions

View File

@@ -1,10 +1,10 @@
import { HQuality } from "./heroSet";
import { QualitySet } from "./BoxSet";
// 获取装备石掉落数量
export const getStoneDrops = (monsterType: number, level: number = 1): {type: string, count: number} => {
const baseDrops = {
[HQuality.GREEN]: 2, // 普通怪物
[HQuality.BLUE]: 4, // 精英怪物
[HQuality.PURPLE]: 8 // Boss怪物
[QualitySet.GREEN]: 2, // 普通怪物
[QualitySet.BLUE]: 4, // 精英怪物
[QualitySet.PURPLE]: 8 // Boss怪物
};
// 50%概率掉落装备石,50%概率掉落技能石
@@ -19,9 +19,9 @@ export const getStoneDrops = (monsterType: number, level: number = 1): {type: st
export const getExpDrops = (monsterType: number, level: number = 1): number => {
const baseDrops = {
[HQuality.GREEN]: 10, // 普通怪物
[HQuality.BLUE]: 20, // 精英怪物
[HQuality.PURPLE]: 40 // Boss怪物
[QualitySet.GREEN]: 10, // 普通怪物
[QualitySet.BLUE]: 20, // 精英怪物
[QualitySet.PURPLE]: 40 // Boss怪物
};
return Math.floor(baseDrops[monsterType] * (1 + (level - 1) * 0.2));
}