第一次进副本类型

back_recharge
lvxinran 2019-10-31 11:42:47 +08:00
parent b35bfe0d1e
commit 8f58c62930
3 changed files with 16 additions and 4 deletions

View File

@ -161,6 +161,7 @@ public class GetPlayerInfoHandler extends BaseHandler{
.setPlayerBindPhone(playerBindPhone)
.setQuestionState(questState)
.setSoulEquipPool(equipPool)
.addAllPlayedMapTypes(mapManager.getPlayedMapType())
.build();
try {
MessageUtil.sendMessage(iSession, 1, MessageTypeProto.MessageType.GET_PLAYERINFO_RESPONSE_VALUE, getPlayerInfoResponse, true);

View File

@ -120,6 +120,9 @@ public class MapLogic {
SChallengeConfig sChallengeConfig = SChallengeConfig.sChallengeConfigs.get(mapId);
int type = sChallengeConfig.getType();
if (mapManager.getCurMapId() == 0) {
if(!mapManager.getPlayedMapType().contains(type)){
mapManager.addPlayedMapType(type);
}
SChallengeMapConfig sChallengeMapConfig = STableManager.getConfig(SChallengeMapConfig.class).get(mapId);
mapEnterResponse.setCurXY(CellUtil.xy2Pos(sChallengeMapConfig.getPosition()[0],sChallengeMapConfig.getPosition()[1]));
Map<Integer, SCMap> scMap = SCMap.sCMap.get(mapId);

View File

@ -17,10 +17,7 @@ import config.SVipLevelConfig;
import manager.STableManager;
import util.TimeUtils;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.*;
public class MapManager extends MongoBase {
@ -120,6 +117,8 @@ public class MapManager extends MongoBase {
private int lastMonsterAttack =1;//兽潮来袭波数
private Set<Integer> playedMapType;
public MapManager() {
this.setRootCollection(User._COLLECTION_NAME);
}
@ -792,6 +791,15 @@ public class MapManager extends MongoBase {
endlessMapInfo.setSkipFight(type);
updateString("endlessMapInfo.skipFight",type);
}
public Set<Integer> getPlayedMapType() {
return playedMapType;
}
public void addPlayedMapType(int type){
playedMapType.add(type);
updateString("playedMapType",playedMapType);
}
}