扫荡修改
parent
181649ee07
commit
24b4080062
|
@ -1493,6 +1493,15 @@ public class MapLogic {
|
||||||
SChallengeConfig sChallengeConfig = SChallengeConfig.sChallengeConfigs.get(mapId);
|
SChallengeConfig sChallengeConfig = SChallengeConfig.sChallengeConfigs.get(mapId);
|
||||||
int type = sChallengeConfig.getType();
|
int type = sChallengeConfig.getType();
|
||||||
if(type==3 || type==1){
|
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);
|
SChallengeMapConfig sChallengeMapConfig = SChallengeMapConfig.integerSChallengeMapConfigMap.get(mapId);
|
||||||
MapInfoProto.MapSweepResponse.Builder mapSweepResponse = MapInfoProto.MapSweepResponse.newBuilder();
|
MapInfoProto.MapSweepResponse.Builder mapSweepResponse = MapInfoProto.MapSweepResponse.newBuilder();
|
||||||
for (int i = 0; i < count; i++) {
|
for (int i = 0; i < count; i++) {
|
||||||
|
@ -1509,6 +1518,7 @@ public class MapLogic {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取所有关卡信息
|
* 获取所有关卡信息
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue