pvp:随机对手

This commit is contained in:
luying
2022-08-22 18:51:13 +08:00
parent 54a03584c7
commit 8c01ccbe43
4 changed files with 45 additions and 4 deletions

View File

@@ -34,6 +34,8 @@ export interface DicGoods {
readonly image_id: number;
// 礼包id
readonly gift: number;
// 是否可以用于pvp随机
readonly randomShow: number;
}
type KeysEnum<T> = { [P in keyof Required<T>]: true };
@@ -51,6 +53,7 @@ const DicGoodsKeys: KeysEnum<DicGoods> = {
timeLimit: true,
image_id: true,
gift: true,
randomShow: true,
}
export const dicGoods = new Map<number, DicGoods>();
export const figureCondition = new Map<number, { params: number[], id: number, gid: number }[]>(); // type => {params, id, gid}