✨ feat(抽卡): 宝物抽卡逻辑
This commit is contained in:
@@ -969,6 +969,7 @@ export enum GACHA_TYPE {
|
||||
GUIDE = 4, // 限时
|
||||
ACTIVITY = 5, // 新武将活动
|
||||
TAUTOR = 6, // 百家争鸣祈灵
|
||||
ARTIFACT = 7, // 宝物招募
|
||||
}
|
||||
|
||||
export enum GACHA_PLAN_TYPE {
|
||||
|
||||
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user