初步加入寻宝匹配,逻辑还不全

This commit is contained in:
liangtongchuan
2020-11-27 00:15:36 +08:00
parent 116392813e
commit 4194b1d881
4 changed files with 145 additions and 47 deletions

View File

@@ -32,6 +32,8 @@ export const IT_TYPE = {
BLUEPRT: 28
}
export const GOOD_QUALITY = [1, 2, 3, 4, 5];
// 大类型,区分存到哪张表里
export const GOOD_TYPE = {
EQUIP: 1,
@@ -284,13 +286,14 @@ export const COM_BATTLE_ROBOT_HURT_RATE = 0.4;
// 每个机器人消耗 boss 血量百分比浮动范围
export const COM_BATTLE_ROBOT_HURT_RAND_RATE = 0.05;
// 每日情谊点上限
export const COM_BATTLE_FRDCNT_MAX = 100;
export const COM_BATTLE_FRDCNT_MAX = 150;
// 情谊点掉落数量
export const COM_BATTLE_FRDCNT_DROP = 10;
export const REDIS_KEY = {
USER_INFO: "userInfo", // 玩家缓存信息
TOWER_RANK: "towerRank" // 天梯排行榜
TOWER_RANK: "towerRank", // 天梯排行榜
COM_TEAM_SEARCH_PRE: 'comTeamSerQ', // 匹配中的玩家,按品质分
}
export const FUNC_OPT_TYPE = {

View File

@@ -40,6 +40,20 @@ export class RoleStatus {
// 主公等级
@prop({ required: true, default: 1 })
lv: number;
constructor(roleId: string, roleName: string, isCap: boolean, isFrd: boolean, headHid: number, sHid: number, topFiveCe: number, lv: number) {
this.roleId = roleId;
this.roleName = roleName;
this.isCap = isCap;
this.totalDmg = 0;
this.isFrd = isFrd;
this.headHid = headHid;
this.sHid = sHid;
this.topFiveCe = topFiveCe;
this.lv = lv;
this.heroes = [];
this.killed = [];
}
}
@index({ teamCode: 1 })