Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/main/java/ti4/game/Tile.java
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,11 @@ && hasAnyToken("token_ds_wound.png")) {
return getTileModel().isScar();
}

@JsonIgnore
public boolean hasEgress() {
return getTileModel().hasEgress();
}

@JsonIgnore
public List<WormholeModel.Wormhole> getWormholes(Game game) {
Set<WormholeModel.Wormhole> whs = EnumSet.noneOf(WormholeModel.Wormhole.class);
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/ti4/model/TileModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/systems/fracture2.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"frac2",
"fracleftegr"
],
"hasEgress": true,
"imagePath": "fracture2.png",
"shipPositionsType": "TYPE08",
"tileBack": "fracture",
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/systems/fracture6.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"frac6",
"fracrightegr"
],
"hasEgress": true,
"imagePath": "fracture6.png",
"shipPositionsType": "TYPE08",
"tileBack": "fracture",
Expand Down
Loading