无尽修改
parent
388a28507b
commit
26e02ac204
|
@ -101,7 +101,7 @@ public class EndlessMap extends AbstractMap{
|
||||||
mapManager.setCurMapId(endlessMapInfo.getCurMapId());
|
mapManager.setCurMapId(endlessMapInfo.getCurMapId());
|
||||||
}
|
}
|
||||||
|
|
||||||
mapManager.updateEndlessMapId(4001);
|
mapManager.updateEndlessMapId(mapManager.getCurMapId());
|
||||||
//无尽标记点
|
//无尽标记点
|
||||||
for(Map.Entry<Integer,Map<Integer,String>> entry :endlessMapInfo.getMapSign().entrySet()){
|
for(Map.Entry<Integer,Map<Integer,String>> entry :endlessMapInfo.getMapSign().entrySet()){
|
||||||
int curMapId = entry.getKey();
|
int curMapId = entry.getKey();
|
||||||
|
@ -155,7 +155,7 @@ public class EndlessMap extends AbstractMap{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enterNewMap(User user, int mapId,int teamId, MapInfoProto.MapEnterResponse.Builder mapEnterResponse) throws Exception {
|
public void enterNewMap(User user, int mapId,int teamId, MapInfoProto.MapEnterResponse.Builder mapEnterResponse) throws Exception {
|
||||||
super.enterNewMap(user, 4001,teamId, mapEnterResponse);
|
// super.enterNewMap(user, 4001,teamId, mapEnterResponse);
|
||||||
// KtEventUtils.onKtEvent(user, ParamEventBean.UserGameType,type,mapId);
|
// KtEventUtils.onKtEvent(user, ParamEventBean.UserGameType,type,mapId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -347,7 +347,7 @@ public class EndlessMap extends AbstractMap{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initMap(MapManager mapManager, User user) throws Exception {
|
public void initMap(MapManager mapManager, User user) throws Exception {
|
||||||
int mapId = getMapIdByWorldLevel(1);
|
int mapId = getMapIdByWorldLevel();
|
||||||
Map<Integer, SCMap> scMap =SCMap.sCMap.get(mapId);
|
Map<Integer, SCMap> scMap =SCMap.sCMap.get(mapId);
|
||||||
Map<Integer, Cell> newMap = new HashMap<>();
|
Map<Integer, Cell> newMap = new HashMap<>();
|
||||||
Random random = new Random();
|
Random random = new Random();
|
||||||
|
@ -448,7 +448,8 @@ public class EndlessMap extends AbstractMap{
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private int getMapIdByWorldLevel(int level){
|
private int getMapIdByWorldLevel() throws Exception {
|
||||||
return 4001;
|
return GlobalDataManaager.getEndleeMapIdByLevel();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue