fix mission
parent
ed7bd22bd7
commit
24efd56068
|
@ -36,8 +36,6 @@ public class CumulationData {
|
|||
*/
|
||||
private Map<Integer,Integer> heroLevleCountMap = new HashMap<>();
|
||||
|
||||
public Map<Integer,Integer> levlePassMap = new HashMap<>();
|
||||
|
||||
/**
|
||||
* key:副本类型 value:战斗次数
|
||||
*/
|
||||
|
|
|
@ -513,8 +513,8 @@ public class FriendLogic {
|
|||
if(check){
|
||||
friendManager1.updateHaveRewardMap(uid,1);
|
||||
sendFriendStatedication(uid,friendId,2);
|
||||
times++;
|
||||
}
|
||||
times++;
|
||||
}else{ //赠送全部好友
|
||||
for (Integer friendUserId : friends) {
|
||||
if (giveMap.get(friendUserId) == 1) {
|
||||
|
@ -527,12 +527,12 @@ public class FriendLogic {
|
|||
continue;
|
||||
}
|
||||
friendManager.updateGiveMap(friendUserId,1);
|
||||
boolean check = friendUser.getPlayerInfoManager().check(STableManager.getFigureConfig(CommonStaticConfig.class).getGameSetting().getMaxEnergyGet(), 0);
|
||||
boolean check = friendUser.getPlayerInfoManager().check(STableManager.getFigureConfig(CommonStaticConfig.class).getGameSetting().getMaxEnergyGet(), 1);
|
||||
if(check){
|
||||
friendManager1.updateHaveRewardMap(uid,1);
|
||||
sendFriendStatedication(uid,friendUserId,2);
|
||||
times++;
|
||||
}
|
||||
times++;
|
||||
}
|
||||
}
|
||||
user.getUserMissionManager().onGameEvent(user, GameEvent.GIVE_PRESENT,times);
|
||||
|
|
|
@ -443,12 +443,9 @@ public class MissionLoigc {
|
|||
break;
|
||||
case LEVEL_STORY_PASS:
|
||||
if(SMainLevelConfig.config.containsKey(missionSubType[0])){
|
||||
int type = SMainLevelConfig.config.get(missionSubType[0]).getDifficulty();
|
||||
if(cumulationData.levlePassMap.containsKey(type)){
|
||||
count =missionSubType[0] <=cumulationData.levlePassMap.get(type) ?1:0;
|
||||
}
|
||||
int virtureId = SMainLevelConfig.config.get(missionSubType[0]).getVirtureId();
|
||||
count =virtureId <= SMainLevelConfig.config.get(user.getMainLevelManager().getFightId()).getVirtureId() ?1:0;
|
||||
}
|
||||
|
||||
break;
|
||||
case GENERAL_STORY_PASS:
|
||||
count = cumulationData.getExploreFight().get(missionSubType[0])?1:0;
|
||||
|
|
|
@ -17,20 +17,8 @@ public class FightDataManager implements BaseDataManager{
|
|||
data.levelStoryTimes+=fightTimes;
|
||||
result = new CumulationData.Result(missionType);
|
||||
}else if(missionType == MissionType.LEVEL_STORY_PASS){
|
||||
SMainLevelConfig sMainLevelConfig = SMainLevelConfig.config.get(fightId);
|
||||
int type = sMainLevelConfig.getDifficulty();
|
||||
Integer maxFightId = data.levlePassMap.get(type);
|
||||
if(maxFightId!=null){
|
||||
if(fightId>maxFightId){
|
||||
data.levlePassMap.put(type,fightId);
|
||||
result = new CumulationData.Result(missionType);
|
||||
}
|
||||
}else{
|
||||
data.levlePassMap.put(type,fightId);
|
||||
result = new CumulationData.Result(missionType);
|
||||
}
|
||||
result = new CumulationData.Result(missionType);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(fightType == 1){
|
||||
|
|
Loading…
Reference in New Issue