寻宝刷新
parent
62dca428e9
commit
3f6dadb2aa
|
@ -3,6 +3,7 @@ package com.ljsd.jieling.logic.mission.event;
|
|||
import com.ljsd.jieling.logic.dao.root.User;
|
||||
import com.ljsd.jieling.logic.mission.GameEvent;
|
||||
import com.ljsd.jieling.logic.mission.GameMisionType;
|
||||
import com.ljsd.jieling.logic.mission.MissionType;
|
||||
import com.ljsd.jieling.logic.mission.main.MissionStateChangeInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -12,5 +13,13 @@ public class DailyRefreshEventProcess implements BaseGameEventProcessor {
|
|||
@Override
|
||||
public void onGameEvent(User user, Map<GameMisionType, List<MissionStateChangeInfo>> misionTypeListMap, GameEvent event, Object... parm) throws Exception {
|
||||
user.getUserMissionManager().openMission(user,event,misionTypeListMap, parm);
|
||||
if(event == GameEvent.MISSING_ROOM_REFRESH){
|
||||
List<MissionType> typeList = MissionEventDistributor.eventEnumListMap.get(event);
|
||||
if(typeList!=null){
|
||||
for (MissionType type : typeList) {
|
||||
user.getUserMissionManager().calCumulationDataResult(user,type,misionTypeListMap,parm);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,6 +30,7 @@ public class MissionEventDistributor {
|
|||
public static void init(){
|
||||
|
||||
|
||||
eventProcessor.put(GameEvent.MISSING_ROOM_REFRESH,new CumulationDataEventProcessor());
|
||||
eventProcessor.put(GameEvent.DAILY_REFRESH,new DailyRefreshEventProcess());
|
||||
eventProcessor.put(GameEvent.BLOODY_REFRESH,new DailyRefreshEventProcess());
|
||||
eventProcessor.put(GameEvent.TREASH_REFRESH,new TreasureRefreshEventProcess());
|
||||
|
@ -38,9 +39,14 @@ public class MissionEventDistributor {
|
|||
eventProcessor.put(GameEvent.TREASH_MONTH_REFRESH,new TreasureRefreshEventProcess());
|
||||
eventProcessor.put(GameEvent.SERVENHAPPY_REFRESH,new TreasureRefreshEventProcess());
|
||||
eventProcessor.put(GameEvent.BEGINNER,new BeginneRefreshEventProcessor());
|
||||
eventProcessor.put(GameEvent.MISSING_ROOM_REFRESH,new DailyRefreshEventProcess());
|
||||
|
||||
|
||||
List<MissionType> typeList = new ArrayList<>();
|
||||
typeList.add(MissionType.REFRESH_MISSING_ROOM);
|
||||
eventEnumListMap.put(GameEvent.MISSING_ROOM_REFRESH,typeList);
|
||||
eventProcessor.put(GameEvent.MISSING_ROOM_REFRESH,new DailyRefreshEventProcess());
|
||||
|
||||
typeList = new ArrayList<>();
|
||||
typeList.add(MissionType.RECRUITMENT_RANDOM_HEROES);
|
||||
typeList.add(MissionType.ELEMENT_RANDOM_TIMES);
|
||||
eventEnumListMap.put(GameEvent.RANDOM_HERO,typeList);
|
||||
|
@ -309,11 +315,6 @@ public class MissionEventDistributor {
|
|||
eventProcessor.put(GameEvent.MAZE_TREASURE_TIMES,new CumulationDataEventProcessor());
|
||||
|
||||
|
||||
typeList = new ArrayList<>();
|
||||
typeList.add(MissionType.REFRESH_MISSING_ROOM);
|
||||
eventEnumListMap.put(GameEvent.MISSING_ROOM_REFRESH,typeList);
|
||||
eventProcessor.put(GameEvent.MISSING_ROOM_REFRESH,new CumulationDataEventProcessor());
|
||||
|
||||
typeList = new ArrayList<>();
|
||||
typeList.add(MissionType.LUCKY_WHEELS_TIMES);
|
||||
eventEnumListMap.put(GameEvent.LUCK_WHEEL_TIMES,typeList);
|
||||
|
|
Loading…
Reference in New Issue