✨ feat(共鸣系统): 添加最强6人推送,不可养成拦截
This commit is contained in:
@@ -1435,6 +1435,11 @@ export enum BOSS_HP_RATIO_TYPE {
|
||||
CITY_PLAYER_RATIO = 3, // 最低玩家人数
|
||||
}
|
||||
|
||||
export enum RESONANCE {
|
||||
JEWEL = 1,// 共灵阵是否包括共灵天晶镶嵌(1:包括 0:不包括)
|
||||
STONE = 1, // 共灵阵是否包括共灵地玉镶嵌(1:包括 0:不包括)
|
||||
}
|
||||
|
||||
export enum RESONANCE_SORT_TYPE {
|
||||
LV = 1, //先等级后后战力
|
||||
JOBSTAGE = 2, //职阶
|
||||
|
||||
@@ -842,9 +842,11 @@ export const STATUS = {
|
||||
RESONANCE_PUT_POSITION_EXIST_CONNECT: { code: 81009, simStr: '武将存在羁绊养成维度,请先重生' },
|
||||
RESONANCE_PUT_POSITION_EXIST_EQUIP: { code: 81010, simStr: '武将存在装备养成维度,请先重生' },
|
||||
RESONANCE_PUT_POSITION_FAIL: { code: 81011, simStr: '武将上阵失败' },
|
||||
RESONANCE_PUT_NOT_POSITION: { code: 81011, simStr: '武将数量不足,不可上阵' },
|
||||
RESONANCE_NOT_PUT_POSITION: { code: 81011, simStr: '该武将未在阵中' },
|
||||
RESONANCE_OFF_POSITION_FAIL: { code: 81011, simStr: '该武将下阵失败' },
|
||||
RESONANCE_PUT_NOT_POSITION: { code: 81012, simStr: '武将数量不足,不可上阵' },
|
||||
RESONANCE_NOT_PUT_POSITION: { code: 81013, simStr: '该武将未在阵中' },
|
||||
RESONANCE_OFF_POSITION_FAIL: { code: 81014, simStr: '该武将下阵失败' },
|
||||
RESONANCE__HID_NOT_CAN: { code: 81015, simStr: '共鸣武将不可养成' },
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ export default class ResonanceHistory extends BaseModel {
|
||||
|
||||
public static async updateByPosition(roleId: string, position: number, param: ResonanceHistoryPara, lean = true) {
|
||||
delete param._id;
|
||||
let result: ResonanceHistoryType = await ResonanceHistoryModel.findOneAndUpdate({ roleId, position }, { $set: param }, { new: true, upsert: true }).lean(lean);
|
||||
let result: ResonanceHistoryType = await ResonanceHistoryModel.findOneAndUpdate({ roleId, position, time: new Date() }, { $set: param }, { new: true, upsert: true }).lean(lean);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -482,7 +482,3 @@ export const ROUGELIKE = {
|
||||
SELECT_HOLLYCARD_WEIGHT: 30, // 选择的圣物卡后该特性卡权重减少比例(%)
|
||||
RANDOM_HOLLYCARD_WEIGHT: 10, // 随机出的圣物卡后该特性卡权重减少比例(%)
|
||||
};
|
||||
export const RESONANCE = {
|
||||
RESONANCE_JEWEL: 1, // 共灵阵是否包括共灵天晶的镶嵌(1:包括 0:不包括)
|
||||
RESONANCE_STONE: 1, // 共灵阵是否包括共灵地玉的镶嵌(1:包括 0:不包括)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user