小兵通关奖励
parent
55c742094e
commit
ad34e05704
|
|
@ -3,7 +3,6 @@ package com.ljsd.jieling.logic.mission.data;
|
|||
import com.ljsd.jieling.logic.dao.CumulationData;
|
||||
import com.ljsd.jieling.logic.mission.MissionType;
|
||||
import config.SChallengeConfig;
|
||||
import config.SMainLevelConfig;
|
||||
|
||||
public class FightDataManager implements BaseDataManager{
|
||||
@Override
|
||||
|
|
@ -24,22 +23,18 @@ public class FightDataManager implements BaseDataManager{
|
|||
if(fightType == 1){
|
||||
if(missionType == MissionType.HERO_LEVLE_TIMES){
|
||||
data.heroStoryTimes+=fightTimes;
|
||||
result = new CumulationData.Result(missionType);
|
||||
result = new CumulationData.Result(missionType);
|
||||
}else if(missionType == MissionType.GENERAL_STORY_PASS){
|
||||
SChallengeConfig sChallengeConfig = SChallengeConfig.sChallengeConfigs.get(fightId);
|
||||
if(sChallengeConfig.getType() == 1){
|
||||
result = new CumulationData.Result(missionType);
|
||||
}
|
||||
result = new CumulationData.Result(missionType);
|
||||
result = new CumulationData.Result(missionType);
|
||||
}else if(missionType == MissionType.HERO_STORY_PASS){
|
||||
SChallengeConfig sChallengeConfig = SChallengeConfig.sChallengeConfigs.get(fightId);
|
||||
if(sChallengeConfig.getType() == 3){
|
||||
result = new CumulationData.Result(missionType);
|
||||
result = new CumulationData.Result(missionType);
|
||||
}
|
||||
}else if(missionType ==MissionType.COMHERO_STORY_PASS){
|
||||
SChallengeConfig sChallengeConfig = SChallengeConfig.sChallengeConfigs.get(fightId);
|
||||
if(sChallengeConfig.getType() == 3||sChallengeConfig.getType() == 1){
|
||||
result = new CumulationData.Result(missionType);
|
||||
result = new CumulationData.Result(missionType);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ public class MistyTripEventProcessor implements BaseGameEventProcessor{
|
|||
if(type == MissionType.FINISH_EXPEDITION_HERO_TIMES){
|
||||
continue;
|
||||
}
|
||||
if(type!= MissionType.LEVEL_STORY_PASS ){
|
||||
if(type != MissionType.LEVEL_STORY_PASS){
|
||||
user.getUserMissionManager().calCumulationDataResult(user,type,misionTypeListMap,parm);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -291,7 +291,7 @@ public class SoldierLogic {
|
|||
mainLevelManager.setSoldierLayerId(stageConfig.getNextId());
|
||||
mainLevelManager.putSoldierState(stageConfig.getId(), TimeUtils.nowInt());
|
||||
// 通关奖励
|
||||
CommonProto.Drop.Builder drop = ItemUtil.drop(user, stageConfig.getReward(), BIReason.SOLDIER_MIAN_LEVEL_REWARD, 0);
|
||||
CommonProto.Drop.Builder drop = ItemUtil.drop(user, stageConfig.getReward(), 1, BIReason.SOLDIER_MIAN_LEVEL_REWARD);
|
||||
builder.setDrop(drop);
|
||||
builder.setResult(1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue