掉落改数组
parent
29024fae3e
commit
a8717a73a9
|
@ -262,9 +262,6 @@ public class MapLogic {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Cell cellValue = new Cell(xy, mapPointConfig.getInitialEventId(), mapPointConfig.getId());
|
Cell cellValue = new Cell(xy, mapPointConfig.getInitialEventId(), mapPointConfig.getId());
|
||||||
if (mapPointConfig.getStyle() == EventType.enter) {
|
|
||||||
mapManager.setCurXY(xy);
|
|
||||||
}
|
|
||||||
if (mapPointConfig.getStyle() == EventType.allEvents || mapPointConfig.getStyle() == EventType.hinder) {
|
if (mapPointConfig.getStyle() == EventType.allEvents || mapPointConfig.getStyle() == EventType.hinder) {
|
||||||
spicelMap.put(xy, cellValue);
|
spicelMap.put(xy, cellValue);
|
||||||
} else {
|
} else {
|
||||||
|
@ -281,6 +278,8 @@ public class MapLogic {
|
||||||
mission.setMissionId(challengeMapConfig.getMissionId());
|
mission.setMissionId(challengeMapConfig.getMissionId());
|
||||||
mission.setMissionStep(0);
|
mission.setMissionStep(0);
|
||||||
mission.setTime(0);
|
mission.setTime(0);
|
||||||
|
int xy = CellUtil.xy2Pos(challengeMapConfig.getPosition()[0], challengeMapConfig.getPosition()[1]);
|
||||||
|
mapManager.setCurXY(xy);
|
||||||
mapManager.setMission(mission);
|
mapManager.setMission(mission);
|
||||||
mapManager.setMapInfo(newMap);
|
mapManager.setMapInfo(newMap);
|
||||||
mapManager.setTypeEight(spicelMap);
|
mapManager.setTypeEight(spicelMap);
|
||||||
|
@ -1304,15 +1303,12 @@ public class MapLogic {
|
||||||
}
|
}
|
||||||
mapManager.setDayFightCount(mapManager.getDayFightCount() + count);
|
mapManager.setDayFightCount(mapManager.getDayFightCount() + count);
|
||||||
SChallengeMapConfig sChallengeMapConfig = SChallengeMapConfig.integerSChallengeMapConfigMap.get(mapId);
|
SChallengeMapConfig sChallengeMapConfig = SChallengeMapConfig.integerSChallengeMapConfigMap.get(mapId);
|
||||||
CommonProto.Drop.Builder dropBuilder = CommonProto.Drop.newBuilder();
|
MapInfoProto.MapSweepResponse.Builder mapSweepResponse = MapInfoProto.MapSweepResponse.newBuilder();
|
||||||
for (int i = 0; i < count; i++) {
|
for (int i = 0; i < count; i++) {
|
||||||
ItemUtil.activityDrop(user, dropBuilder, sChallengeMapConfig.getSweepingAward(), 1);
|
CommonProto.Drop.Builder dropBuilder = ItemUtil.drop(user, sChallengeMapConfig.getSweepingAward(), 1, 0);
|
||||||
|
mapSweepResponse.addDrop(dropBuilder);
|
||||||
}
|
}
|
||||||
MapInfoProto.MapSweepResponse mapSweepResponse = MapInfoProto.MapSweepResponse
|
MessageUtil.sendMessage(session, 1, messageType.getNumber(), mapSweepResponse.build(), true);
|
||||||
.newBuilder()
|
|
||||||
.setDrop(dropBuilder)
|
|
||||||
.build();
|
|
||||||
MessageUtil.sendMessage(session, 1, messageType.getNumber(), mapSweepResponse, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue