功绩20修改
parent
49ad73610d
commit
83adab494f
|
|
@ -10,7 +10,7 @@ import com.ljsd.jieling.logic.dao.root.User;
|
||||||
public class NotEventFinishEventDifficultMapProcessor implements BaseMissionProcesor {
|
public class NotEventFinishEventDifficultMapProcessor 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) {
|
||||||
if(missionValue==-1){
|
if(missionValue==-1||missionValue==GlobalsDef.MAP_MISSION_FAILURE){
|
||||||
return GlobalsDef.MAP_MISSION_RETURN;
|
return GlobalsDef.MAP_MISSION_RETURN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -31,20 +31,19 @@ public class NotEventFinishEventDifficultMapProcessor implements BaseMissionProc
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(eventId==skipEvent[i]){
|
if(eventId==skipEvent[i]){
|
||||||
missionValue = skipEvent[i];
|
missionValue = -10000;
|
||||||
|
return missionValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(flag){
|
if(flag){
|
||||||
for(int i = 0 ; i < finishEvent.length;i++){
|
for(int i = 0 ; i < finishEvent.length;i++){
|
||||||
if(eventId==finishEvent[i]){
|
if(eventId==finishEvent[i]){
|
||||||
if(missionValue<0){
|
if(missionValue<0){
|
||||||
if(missionValue==-1){
|
missionValue++;
|
||||||
break;
|
|
||||||
}
|
|
||||||
missionValue = missionValue/2;
|
|
||||||
}else{
|
}else{
|
||||||
missionValue =0-1<<(configValues[1][1]-1);
|
missionValue =0-configValues[2][1];
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue