Merge branch 'feature/gacha'

This commit is contained in:
luying
2021-07-02 11:55:27 +08:00
11 changed files with 311 additions and 183 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