diff --git a/src/main/java/ti4/game/Tile.java b/src/main/java/ti4/game/Tile.java index 85b59a06ab..9ea0af7f23 100644 --- a/src/main/java/ti4/game/Tile.java +++ b/src/main/java/ti4/game/Tile.java @@ -625,6 +625,11 @@ && hasAnyToken("token_ds_wound.png")) { return getTileModel().isScar(); } + @JsonIgnore + public boolean hasEgress() { + return getTileModel().hasEgress(); + } + @JsonIgnore public List getWormholes(Game game) { Set whs = EnumSet.noneOf(WormholeModel.Wormhole.class); diff --git a/src/main/java/ti4/model/TileModel.java b/src/main/java/ti4/model/TileModel.java index 9f4a40eb3c..a88928eb85 100644 --- a/src/main/java/ti4/model/TileModel.java +++ b/src/main/java/ti4/model/TileModel.java @@ -60,6 +60,7 @@ public String toValue() { private @JsonProperty("isNebula") boolean nebula; private @JsonProperty("isGravityRift") boolean gravityRift; private @JsonProperty("isScar") boolean isScar; + private @JsonProperty("hasEgress") boolean hasEgress; private String imageURL; private ComponentSource source; private TileBack tileBack = TileBack.BLACK; @@ -186,6 +187,11 @@ public boolean isScar() { return isScar; } + @JsonIgnore + public boolean hasEgress() { + return hasEgress; + } + @JsonIgnore public boolean isAnomaly() { return asteroidField || gravityRift || nebula || supernova || isScar; diff --git a/src/main/resources/systems/fracture2.json b/src/main/resources/systems/fracture2.json index b7a4128523..10507cedf2 100644 --- a/src/main/resources/systems/fracture2.json +++ b/src/main/resources/systems/fracture2.json @@ -7,6 +7,7 @@ "frac2", "fracleftegr" ], + "hasEgress": true, "imagePath": "fracture2.png", "shipPositionsType": "TYPE08", "tileBack": "fracture", diff --git a/src/main/resources/systems/fracture6.json b/src/main/resources/systems/fracture6.json index d5b565cc61..82021551b8 100644 --- a/src/main/resources/systems/fracture6.json +++ b/src/main/resources/systems/fracture6.json @@ -7,6 +7,7 @@ "frac6", "fracrightegr" ], + "hasEgress": true, "imagePath": "fracture6.png", "shipPositionsType": "TYPE08", "tileBack": "fracture",