Commit 18df5213 authored by linebear's avatar linebear Committed by Melledy
Browse files

Fix enter tower dungeons

parent 0ba13ef7
...@@ -8,7 +8,7 @@ public class TowerFloorData extends GameResource { ...@@ -8,7 +8,7 @@ public class TowerFloorData extends GameResource {
private int floorId; private int floorId;
private int floorIndex; private int floorIndex;
private int levelId; private int levelGroupId;
private int overrideMonsterLevel; private int overrideMonsterLevel;
private int teamNum; private int teamNum;
private int floorLevelConfigId; private int floorLevelConfigId;
...@@ -31,8 +31,8 @@ public class TowerFloorData extends GameResource { ...@@ -31,8 +31,8 @@ public class TowerFloorData extends GameResource {
return floorIndex; return floorIndex;
} }
public int getLevelId() { public int getLevelGroupId() {
return levelId; return levelGroupId;
} }
public int getOverrideMonsterLevel() { public int getOverrideMonsterLevel() {
......
...@@ -8,6 +8,7 @@ public class TowerLevelData extends GameResource { ...@@ -8,6 +8,7 @@ public class TowerLevelData extends GameResource {
private int levelId; private int levelId;
private int levelIndex; private int levelIndex;
private int levelGroupId;
private int dungeonId; private int dungeonId;
@Override @Override
...@@ -19,6 +20,10 @@ public class TowerLevelData extends GameResource { ...@@ -19,6 +20,10 @@ public class TowerLevelData extends GameResource {
return levelId; return levelId;
} }
public int getLevelGroupId() {
return levelGroupId;
}
public int getLevelIndex() { public int getLevelIndex() {
return levelIndex; return levelIndex;
} }
......
...@@ -71,7 +71,7 @@ public class TowerManager { ...@@ -71,7 +71,7 @@ public class TowerManager {
this.currentFloorId = floorData.getFloorId(); this.currentFloorId = floorData.getFloorId();
this.currentLevel = 0; this.currentLevel = 0;
this.currentLevelId = GameData.getTowerLevelDataMap().values().stream() this.currentLevelId = GameData.getTowerLevelDataMap().values().stream()
.filter(x -> x.getLevelId() == floorData.getLevelId() && x.getLevelIndex() == 1) .filter(x -> x.getLevelGroupId() == floorData.getLevelGroupId() && x.getLevelIndex() == 1)
.findFirst() .findFirst()
.map(TowerLevelData::getId) .map(TowerLevelData::getId)
.orElse(0); .orElse(0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment