抽卡:修改抽卡概率

This commit is contained in:
luying
2021-07-01 17:27:32 +08:00
parent 363b2f9263
commit 2338acda54
7 changed files with 277 additions and 109 deletions

View File

@@ -13,6 +13,8 @@ export interface DicGacha {
readonly cost: RewardInter[];
// 概率
readonly percent: { id: number, weight: number }[];
// 哪一个是大奖
readonly floorReward: number;
}
export const dicGacha = new Map<number, DicGacha>(); // id => dic