扫荡修改

back_recharge
lvxinran 2019-07-03 16:25:25 +08:00
parent 181649ee07
commit 24b4080062
1 changed files with 10 additions and 0 deletions

View File

@ -1493,6 +1493,15 @@ public class MapLogic {
SChallengeConfig sChallengeConfig = SChallengeConfig.sChallengeConfigs.get(mapId);
int type = sChallengeConfig.getType();
if(type==3 || type==1){
int itemId = Global.GENERALSTORY_TICKET;
if (type == 3) {
itemId = Global.HEROSTORY_TICKET;
}
boolean enough = ItemUtil.itemCost(user, new int[][]{{itemId ,count}}, BIReason.MAP_ENTER_CONSUME, mapId);
if (!enough) {
MessageUtil.sendErrorResponse(session, 0, messageType.getNumber(), "no ticket");
return;
}
SChallengeMapConfig sChallengeMapConfig = SChallengeMapConfig.integerSChallengeMapConfigMap.get(mapId);
MapInfoProto.MapSweepResponse.Builder mapSweepResponse = MapInfoProto.MapSweepResponse.newBuilder();
for (int i = 0; i < count; i++) {
@ -1509,6 +1518,7 @@ public class MapLogic {
}
/**
*
*