功绩14、18修改
parent
6d79100c20
commit
e3d9585568
|
|
@ -30,6 +30,7 @@ public class KillBossInBossMissionProcessor implements BaseMissionProcesor{
|
||||||
return GlobalsDef.MAP_MISSION_RETURN;
|
return GlobalsDef.MAP_MISSION_RETURN;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 1;
|
missionValue = -1;
|
||||||
|
return missionValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,27 +10,48 @@ import com.ljsd.jieling.logic.dao.root.User;
|
||||||
public class KillMonsterByOrderDifficultMapProcessor implements BaseMissionProcesor{
|
public class KillMonsterByOrderDifficultMapProcessor implements BaseMissionProcesor{
|
||||||
@Override
|
@Override
|
||||||
public int checkAndUpdateMissionProcessor(User user, SAccomplishmentConfig sAccomplishmentConfig, int eventId, int time, MapMissionType mapMissionType, int missionValue) {
|
public int checkAndUpdateMissionProcessor(User user, SAccomplishmentConfig sAccomplishmentConfig, int eventId, int time, MapMissionType mapMissionType, int missionValue) {
|
||||||
|
// MapManager mapManager = user.getMapManager();
|
||||||
|
// SChallengeConfig sChallengeConfig = SChallengeConfig.sChallengeConfigs.get(mapManager.getCurMapId());
|
||||||
|
// if(sChallengeConfig.getDifficultType()!=sAccomplishmentConfig.getValues()[1][0]||missionValue==-1){
|
||||||
|
// return GlobalsDef.MAP_MISSION_RETURN;
|
||||||
|
// }
|
||||||
|
// int[] value = sAccomplishmentConfig.getValues()[0];
|
||||||
|
// for(int i = 0 ; i < value.length ; i++){
|
||||||
|
// if(eventId!=value[i]) {
|
||||||
|
// continue;
|
||||||
|
// }
|
||||||
|
// if(i==0&&missionValue==0){
|
||||||
|
// missionValue = value[i];
|
||||||
|
// }else if(i!=0&&missionValue==value[i-1]){
|
||||||
|
// if(i!=value.length-1){
|
||||||
|
// missionValue = value[i];
|
||||||
|
// }else{
|
||||||
|
// missionValue = -1;
|
||||||
|
// }
|
||||||
|
// }else{
|
||||||
|
// missionValue = 0;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// return missionValue;
|
||||||
|
int[][] configValues = sAccomplishmentConfig.getValues();
|
||||||
MapManager mapManager = user.getMapManager();
|
MapManager mapManager = user.getMapManager();
|
||||||
SChallengeConfig sChallengeConfig = SChallengeConfig.sChallengeConfigs.get(mapManager.getCurMapId());
|
SChallengeConfig sChallengeConfig = SChallengeConfig.sChallengeConfigs.get(mapManager.getCurMapId());
|
||||||
if(sChallengeConfig.getDifficultType()!=sAccomplishmentConfig.getValues()[1][0]||missionValue==-1){
|
if(sChallengeConfig.getDifficultType()!=configValues[configValues.length-1][0]||missionValue==-1){
|
||||||
return GlobalsDef.MAP_MISSION_RETURN;
|
return GlobalsDef.MAP_MISSION_RETURN;
|
||||||
}
|
}
|
||||||
int[] value = sAccomplishmentConfig.getValues()[0];
|
if(missionValue==0){
|
||||||
for(int i = 0 ; i < value.length ; i++){
|
for(int i = 0 ;i < configValues[0].length;i++){
|
||||||
if(eventId!=value[i]) {
|
if(eventId==configValues[0][i]){
|
||||||
continue;
|
missionValue = 0-configValues.length+1;
|
||||||
}
|
|
||||||
if(i==0&&missionValue==0){
|
|
||||||
missionValue = value[i];
|
|
||||||
}else if(i!=0&&missionValue==value[i-1]){
|
|
||||||
if(i!=value.length-1){
|
|
||||||
missionValue = value[i];
|
|
||||||
}else{
|
|
||||||
missionValue = -1;
|
|
||||||
}
|
}
|
||||||
}else{
|
|
||||||
missionValue = 0;
|
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
for(int i = 0 ;i<configValues[configValues.length+missionValue].length;i++){
|
||||||
|
if(eventId==configValues[configValues.length+missionValue][i]){
|
||||||
|
missionValue++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return missionValue;
|
return missionValue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue