feat(抽卡): 宝物抽卡逻辑

This commit is contained in:
luying
2023-09-20 15:16:47 +08:00
parent 2dd4f15f9a
commit 32d5d23025
4 changed files with 17 additions and 5 deletions

View File

@@ -969,6 +969,7 @@ export enum GACHA_TYPE {
GUIDE = 4, // 限时
ACTIVITY = 5, // 新武将活动
TAUTOR = 6, // 百家争鸣祈灵
ARTIFACT = 7, // 宝物招募
}
export enum GACHA_PLAN_TYPE {

View File

@@ -30,6 +30,8 @@ export interface DicArtifact {
readonly lvAttrPlan: number;
// 升品配置方案
readonly qualityAttrPlan: number;
// 是否可以许愿
readonly canHope: number;
}
type KeysEnum<T> = { [P in keyof Required<T>]: true };
@@ -47,6 +49,7 @@ const DicArtifactKeys: KeysEnum<DicArtifact> = {
seids: true,
lvAttrPlan: true,
qualityAttrPlan: true,
canHope: true
}
export const dicArtifact = new Map<number, DicArtifact>();
export const dicArtifactByGid = new Map<number, number>();