back_recharge
wangyuan 2019-07-24 14:43:33 +08:00
parent c1d9f8fdb0
commit b89aa9a2a0
2 changed files with 2 additions and 1 deletions

View File

@ -172,6 +172,7 @@ public class MapLogic {
initMap(mapManager, user);
}
user.setMapManager(mapManager);
user.getUserMissionManager().onGameEvent(user,GameEvent.PlAY_STORY,SChallengeConfig.sChallengeConfigs.get(mapId).getType(),1);
} else if (mapManager.getCurMapId() != mapId) {
MessageUtil.sendErrorResponse(iSession, 0, messageType.getNumber(), "地图错误,应进入" + mapManager.getCurMapId());
return;
@ -239,7 +240,6 @@ public class MapLogic {
}
LOGGER.info("enterMap() uid=>{} mapId =>{}", uid, mapManager.getCurMapId());
LOGGER.info("进图临时背包{}",mapEnterResponse.getTemporaryItems().toString());
user.getUserMissionManager().onGameEvent(user,GameEvent.PlAY_STORY,SChallengeConfig.sChallengeConfigs.get(mapId).getType(),1);
MessageUtil.sendMessage(iSession, 1, messageType.getNumber(), mapEnterResponse.build(), true);
}

View File

@ -117,6 +117,7 @@ public class MissionEventDistributor {
typeList = new ArrayList<>();
typeList.add(MissionType.HERO_STORY_PLAY_TIMES);
eventEnumListMap.put(GameEvent.PlAY_STORY,typeList);
eventProcessor.put(GameEvent.PlAY_STORY,new CumulationDataEventProcessor());