fix mission
parent
41a99da5ca
commit
2dd97a9988
|
@ -7,7 +7,7 @@ public class FightPlayDataManager implements BaseDataManager{
|
|||
@Override
|
||||
public CumulationData.Result updateData(CumulationData data, MissionType missionType, Object... parm) {
|
||||
int type = (int)parm[0];
|
||||
if(type == 3 && missionType == MissionType.HERO_STORY_PLAY_TIMES){
|
||||
if(type == 3 && (missionType == MissionType.HERO_STORY_PLAY_TIMES || missionType == MissionType.HERO_STORY_TIMES)){
|
||||
data.heroStoryPlayTimes+=(int)parm[1];
|
||||
}else if(type == 999 && missionType == MissionType.INVASIONBOSS_PLAY_TIMES){
|
||||
data.invasionbossPlayTimes+=(int)parm[1];
|
||||
|
|
|
@ -123,7 +123,7 @@ public class MissionEventDistributor {
|
|||
typeList.add(MissionType.GENERAL_STORY_PASS);
|
||||
typeList.add(MissionType.HERO_STORY_PASS);
|
||||
|
||||
typeList.add(MissionType.HERO_STORY_TIMES);
|
||||
|
||||
typeList.add(MissionType.LEVEL_STORY_TIMES);
|
||||
|
||||
|
||||
|
@ -135,6 +135,7 @@ public class MissionEventDistributor {
|
|||
typeList.add(MissionType.INVASIONBOSS_PLAY_TIMES);
|
||||
typeList.add(MissionType.FAST_ADVENTUREREWARD_TIMES);
|
||||
typeList.add(MissionType.GENERAL_STORY_TIMES);
|
||||
typeList.add(MissionType.HERO_STORY_TIMES);
|
||||
eventEnumListMap.put(GameEvent.PlAY_STORY,typeList);
|
||||
eventProcessor.put(GameEvent.PlAY_STORY,new CumulationDataEventProcessor());
|
||||
|
||||
|
|
Loading…
Reference in New Issue