pvp:添加购买挑战次数

This commit is contained in:
luying
2021-11-01 15:28:58 +08:00
parent e507ff933b
commit bb625b88ed
7 changed files with 59 additions and 37 deletions

View File

@@ -143,6 +143,7 @@ export const STATUS = {
PVP_CHALLENGE_TIMES_NOT_ENOUGH: { code: 20805, simStr: '挑战次数不足' },
PVP_SET_ATTACK_CNT_NOT_ENOUGH: { code: 20806, simStr: '设置挑战阵容次数不足' },
PVP_NOT_SET_ATTACK: { code: 20807, simStr: '未设置挑战阵容' },
PVP_BUY_ATTACK_CNT_NOT_ENOUGH: { code: 20808, simStr: '购买挑战阵容次数不足' },
// 军团 20900-20999
GUILD_AUTH_NOT_ENOUGH: { code: 20900, simStr: '权限不足' },

View File

@@ -38,6 +38,8 @@ export default class PvpDefense extends BaseModel {
refOppCnt: number; // 刷新对手总次数,消耗可根据消耗表算出
@prop({ required: true, default: 0 })
setAttackCnt: number; // 设置挑战阵容次数
@prop({ required: true, default: 0 })
buyAttackCnt: number; // 购买挑战阵容次数
@prop({ required: true, default: 0 })
challengeCnt: number; // 可挑战次数每2小时回复一次

View File

@@ -233,6 +233,7 @@ export class PvpDataReturn {
winStreakNum: number = 0;
refOppCnt: number;
setAttackCnt: number;
buyAttackCnt: number;
challengeCnt: number;
challengeRefTime: number;
receiveBox: number[] = [];
@@ -249,6 +250,7 @@ export class PvpDataReturn {
this.refOppCnt = pvpDefense.refOppCnt;
this.setAttackCnt = pvpDefense.setAttackCnt;
this.buyAttackCnt = pvpDefense.buyAttackCnt;
this.challengeCnt = pvpDefense.challengeCnt;
this.challengeRefTime = pvpDefense.challengeRefTime;