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