组队类型限制

back_recharge
xuexinpeng 2021-05-20 17:08:06 +08:00
parent 61c2b2b460
commit 133afbab21
2 changed files with 11 additions and 1 deletions

View File

@ -99,7 +99,7 @@ public interface GlobalsDef {
int CHAMPION_TEAM = 1301; //巅峰赛
int WORLD_TEAM_ARENA_DEFENSE =1601;//跨服竞技场防御编队
int HARD_STAGE_TEAM = 1701;//山河社稷图队伍
int VICE_HARD_STAGE_TEAM =1801;//山河社稷图副关卡_
int VICE_HARD_STAGE_TEAM =1801;//山河社稷图副关卡
//特权解锁类型
int LEVEL_UNLOCK_PRIVILEGE = 1;

View File

@ -2,6 +2,7 @@ package com.ljsd.jieling.handler.hardStage;
import com.ljsd.fight.CheckFight;
import com.ljsd.fight.FightType;
import com.ljsd.jieling.core.GlobalsDef;
import com.ljsd.jieling.db.redis.RedisKey;
import com.ljsd.jieling.db.redis.RedisUtil;
import com.ljsd.jieling.exception.ErrorCode;
@ -71,6 +72,15 @@ public class StartHardStageRequestHandler extends BaseHandler<PlayerInfoProto.Ha
dropList.addAll(HardStageLogic.getFirstRewards(user, nodeConfig));
}
} else if (nodeConfig.getStageType() == 1 || nodeConfig.getStageType() == 3) {
if(nodeConfig.getStageType() == 1){
if(teamId != GlobalsDef.HARD_STAGE_TEAM){
return;
}
}else if(nodeConfig.getStageType() == 3){
if(teamId != GlobalsDef.VICE_HARD_STAGE_TEAM){
return;
}
}
//战斗后发奖励
int seed = (int) (System.currentTimeMillis() / 1000);
Map<Integer, List<CommonProto.FightUnitInfo>> monsterfightTeamInfos = MonsterUtil.getHardStageMonsterByGroup(nodeConfig);