森罗bug修改

lvxinran 2020-12-18 05:03:02 +08:00
parent 543cca1864
commit 874fc8f2c5
2 changed files with 3 additions and 12 deletions

View File

@ -2062,18 +2062,6 @@ public class MapLogic {
}
//登录时检测是否需要重置
checkTrialReset(user);
MapInfoProto.TowerCopyInfo towerCopyInfo = MapInfoProto.TowerCopyInfo.newBuilder()
.setTower(mapManager.getTrialInfo().getFloor())
.setFightCount(mapManager.getFightCount())
.setHighestTower(mapManager.getTrialInfo().getHighestTower())
.setEssenceValue(mapManager.getTrialInfo().getEnergy())
.setMapIntoReset(mapManager.getMapIntoFlag())
.setTowerUseTime((int)(mapManager.getCurrTowerTime()/1000))
.setKillCount(mapManager.getTrialInfo().getKillCount())
.addAllTrialRewardInfo(mapManager.getTrialInfo().getTowerReceivedReward())
.setBombUsed(mapManager.getTrialInfo().getBombUseTimes())
.build();
builder.setTowerCopyInfo(towerCopyInfo);
builder.addAllPlayedGenMapId(mapManager.getPlayGenMaps());
for(Map.Entry<Integer,Integer> entry:mapManager.getDifficultyOptions().entrySet()){

View File

@ -167,6 +167,9 @@ public class TowerMap extends AbstractMap {
// mapEnterResponse.setTowerInfo(towerCopyInfo);
mapEnterResponse.setCurTower(trialInfo.getFloor());
mapEnterResponse.setBombUsed(trialInfo.getBombUseTimes());
mapEnterResponse.setEssenceValue(trialInfo.getEnergy());
mapEnterResponse.setKillCount(trialInfo.getKillCount());
mapEnterResponse.addAllTrialRewardInfo(trialInfo.getTowerReceivedReward());
}
@Override