fix mission
parent
d35d459169
commit
9c337089b4
|
|
@ -2252,7 +2252,6 @@ public class MapLogic {
|
|||
}else{
|
||||
state =2;
|
||||
}
|
||||
user.getUserMissionManager().onGameEvent(user, GameEvent.STORY_FIGHT, fightId,0,1);
|
||||
Poster.getPoster().dispatchEvent(new FightMainEvent(user.getId(),fightId));
|
||||
user.getMainLevelManager().updateFight(updateFightId,state);
|
||||
if(state == -1){
|
||||
|
|
@ -2268,6 +2267,7 @@ public class MapLogic {
|
|||
user.getMainLevelManager().removeFightStateInfo(removeId);
|
||||
}
|
||||
}
|
||||
user.getUserMissionManager().onGameEvent(user, GameEvent.STORY_FIGHT, fightId,0,1);
|
||||
}
|
||||
|
||||
public void getMainLevelInfo(ISession session) throws Exception {
|
||||
|
|
|
|||
|
|
@ -444,10 +444,10 @@ public class MissionLoigc {
|
|||
case LEVEL_STORY_PASS:
|
||||
if(SMainLevelConfig.config.containsKey(missionSubType[0])){
|
||||
int virtureId = SMainLevelConfig.config.get(missionSubType[0]).getVirtureId();
|
||||
SMainLevelConfig mineMainLevelConfig = SMainLevelConfig.config.get(user.getMainLevelManager().getFightId());
|
||||
if(user.getMainLevelManager().getState() == -1 ){
|
||||
int fightId = user.getMainLevelManager().getFightId();
|
||||
mineMainLevelConfig = SMainLevelConfig.fightPreMap.get(fightId);
|
||||
int fightId = user.getMainLevelManager().getFightId();
|
||||
SMainLevelConfig mineMainLevelConfig = SMainLevelConfig.fightPreMap.get(fightId);
|
||||
if(user.getMainLevelManager().getState() == 2 ){
|
||||
mineMainLevelConfig = SMainLevelConfig.config.get(user.getMainLevelManager().getFightId());
|
||||
}
|
||||
if(mineMainLevelConfig!=null){
|
||||
count =virtureId <= mineMainLevelConfig.getVirtureId() ?1:0;
|
||||
|
|
|
|||
|
|
@ -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 || missionType == MissionType.HERO_STORY_TIMES)){
|
||||
if(type == 3 && (missionType == MissionType.HERO_STORY_PLAY_TIMES)){
|
||||
data.heroStoryPlayTimes+=(int)parm[1];
|
||||
}else if(type == 999 && missionType == MissionType.INVASIONBOSS_PLAY_TIMES){
|
||||
data.invasionbossPlayTimes+=(int)parm[1];
|
||||
|
|
|
|||
Loading…
Reference in New Issue