wangyuan 2019-07-08 22:03:17 +08:00
parent b74d2b13b6
commit 1e34fc8993
3 changed files with 15 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import com.ljsd.jieling.handler.map.EventType;
import com.ljsd.jieling.handler.map.MapLogic;
import com.ljsd.jieling.handler.map.MapManager;
import com.ljsd.jieling.logic.dao.root.User;
import com.ljsd.jieling.logic.mission.GameEvent;
import com.ljsd.jieling.protocols.MapInfoProto;
import org.springframework.stereotype.Component;
@ -30,6 +31,7 @@ public class FourtyTwoBehavior extends BaseBehavior{
mapManager.removeBoss();
mapManager.setTower(mapManager.getTower()+1);
mapManager.setEssenceValue(0);
user.getUserMissionManager().onGameEvent(user, GameEvent.COPY_TOWER_LEVEL,mapManager.getTower());
MapLogic.getInstance().initTrialMap(mapManager, user);
return true;
}

View File

@ -25,4 +25,7 @@ public enum GameEvent {
BUY_MATERIAL,//购买道具
RINGFIRE_ADVANCE,//天赋进阶
COPY_TOWER_TIMES, //参与试炼副本次数
COPY_TOWER_LEVEL, //试炼层数达到
}

View File

@ -145,6 +145,16 @@ public class MissionEventDistributor {
typeList.add(MissionType.RING_FIREA_DVANCED);
eventEnumListMap.put(GameEvent.RINGFIRE_ADVANCE,typeList);
eventProcessor.put(GameEvent.RINGFIRE_ADVANCE,new CumulationDataEventProcessor());
typeList = new ArrayList<>();
typeList.add(MissionType.COPY_STORY_TIMES);
eventEnumListMap.put(GameEvent.COPY_TOWER_TIMES,typeList);
eventProcessor.put(GameEvent.COPY_TOWER_TIMES,new CumulationDataEventProcessor());
typeList = new ArrayList<>();
typeList.add(MissionType.COPY_STORY_LEVLE);
eventEnumListMap.put(GameEvent.COPY_TOWER_LEVEL,typeList);
eventProcessor.put(GameEvent.COPY_TOWER_LEVEL,new CumulationDataEventProcessor());
}
private static final ThreadLocal<Map<GameMisionType, List<MissionStateChangeInfo>>> threadMissionChangeList =