森罗环境修复
parent
dee3658f2f
commit
0e8b31c1a7
|
@ -2849,6 +2849,8 @@ public class MapLogic {
|
||||||
trialInfo.setEnergy(0);
|
trialInfo.setEnergy(0);
|
||||||
trialInfo.setTimes(openTimeOfFuntionCacheByType.getTimes());
|
trialInfo.setTimes(openTimeOfFuntionCacheByType.getTimes());
|
||||||
List<Integer> initBuff = new ArrayList<>();
|
List<Integer> initBuff = new ArrayList<>();
|
||||||
|
//先出奖励层
|
||||||
|
trialInfo.setFloor(trialInfo.getFloor()%10000);
|
||||||
if(trialInfo.getHighestTower()!=0&&trialInfo.getFloor()<=trialInfo.getHighestTower()){
|
if(trialInfo.getHighestTower()!=0&&trialInfo.getFloor()<=trialInfo.getHighestTower()){
|
||||||
initBuff.add(STrialSetting.sTrialSetting.getBaseBuff());
|
initBuff.add(STrialSetting.sTrialSetting.getBaseBuff());
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,6 +124,14 @@ public class TowerMap extends AbstractMap {
|
||||||
for(int id :trialInfo.getBuffIds()){
|
for(int id :trialInfo.getBuffIds()){
|
||||||
mapEnterResponse.addFoodBuffers(CommonProto.FoodBuffer.newBuilder().setBufferId(id).setLeftStep(-1).build());
|
mapEnterResponse.addFoodBuffers(CommonProto.FoodBuffer.newBuilder().setBufferId(id).setLeftStep(-1).build());
|
||||||
}
|
}
|
||||||
|
if(mapManager.getCurXY()==0){
|
||||||
|
SChallengeMapConfig challengeMapConfig = STableManager.getConfig(SChallengeMapConfig.class).get(STrialConfig.sTrialConfigMap.get(trialInfo.getFloor()).getMapId());
|
||||||
|
int xy = CellUtil.xy2Pos(challengeMapConfig.getPosition()[0], challengeMapConfig.getPosition()[1]);
|
||||||
|
mapManager.setCurXY(xy);
|
||||||
|
if(xy==0){
|
||||||
|
throw new ErrorCodeException("初始不能为0");
|
||||||
|
}
|
||||||
|
}
|
||||||
mapManager.setCurMapType(type);
|
mapManager.setCurMapType(type);
|
||||||
mapEnterResponse.setMapId(mapManager.getCurMapId());
|
mapEnterResponse.setMapId(mapManager.getCurMapId());
|
||||||
mapEnterResponse.setCurXY(mapManager.getCurXY());
|
mapEnterResponse.setCurXY(mapManager.getCurXY());
|
||||||
|
|
Loading…
Reference in New Issue