组队类型限制
parent
61c2b2b460
commit
133afbab21
|
@ -99,7 +99,7 @@ public interface GlobalsDef {
|
||||||
int CHAMPION_TEAM = 1301; //巅峰赛
|
int CHAMPION_TEAM = 1301; //巅峰赛
|
||||||
int WORLD_TEAM_ARENA_DEFENSE =1601;//跨服竞技场防御编队
|
int WORLD_TEAM_ARENA_DEFENSE =1601;//跨服竞技场防御编队
|
||||||
int HARD_STAGE_TEAM = 1701;//山河社稷图队伍
|
int HARD_STAGE_TEAM = 1701;//山河社稷图队伍
|
||||||
int VICE_HARD_STAGE_TEAM =1801;//山河社稷图副关卡_
|
int VICE_HARD_STAGE_TEAM =1801;//山河社稷图副关卡
|
||||||
|
|
||||||
//特权解锁类型
|
//特权解锁类型
|
||||||
int LEVEL_UNLOCK_PRIVILEGE = 1;
|
int LEVEL_UNLOCK_PRIVILEGE = 1;
|
||||||
|
|
|
@ -2,6 +2,7 @@ package com.ljsd.jieling.handler.hardStage;
|
||||||
|
|
||||||
import com.ljsd.fight.CheckFight;
|
import com.ljsd.fight.CheckFight;
|
||||||
import com.ljsd.fight.FightType;
|
import com.ljsd.fight.FightType;
|
||||||
|
import com.ljsd.jieling.core.GlobalsDef;
|
||||||
import com.ljsd.jieling.db.redis.RedisKey;
|
import com.ljsd.jieling.db.redis.RedisKey;
|
||||||
import com.ljsd.jieling.db.redis.RedisUtil;
|
import com.ljsd.jieling.db.redis.RedisUtil;
|
||||||
import com.ljsd.jieling.exception.ErrorCode;
|
import com.ljsd.jieling.exception.ErrorCode;
|
||||||
|
@ -71,6 +72,15 @@ public class StartHardStageRequestHandler extends BaseHandler<PlayerInfoProto.Ha
|
||||||
dropList.addAll(HardStageLogic.getFirstRewards(user, nodeConfig));
|
dropList.addAll(HardStageLogic.getFirstRewards(user, nodeConfig));
|
||||||
}
|
}
|
||||||
} else if (nodeConfig.getStageType() == 1 || nodeConfig.getStageType() == 3) {
|
} 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);
|
int seed = (int) (System.currentTimeMillis() / 1000);
|
||||||
Map<Integer, List<CommonProto.FightUnitInfo>> monsterfightTeamInfos = MonsterUtil.getHardStageMonsterByGroup(nodeConfig);
|
Map<Integer, List<CommonProto.FightUnitInfo>> monsterfightTeamInfos = MonsterUtil.getHardStageMonsterByGroup(nodeConfig);
|
||||||
|
|
Loading…
Reference in New Issue