品质统一在boxset设定
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user