Skip to content

Commit

Permalink
chore: more streamlined rootless cone to cinder cone
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex4386 committed Dec 12, 2024
1 parent b93ca52 commit f434fbf
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1301,6 +1301,12 @@ public void addRootlessCone(Location location) {
}

if (height >= 6 && this.vent.isMainVent()) {
// check if it is too nearby existing vent

if (Math.random() < 0.6) return;
VolcanoVent nearestVent = this.getVolcano().manager.getNearestVent(location);
if (nearestVent != null && nearestVent.getTwoDimensionalDistance(location) < 50) return;

// small percentage of generating a vent
String name = "rootless_";
int i = 1;
Expand Down

0 comments on commit f434fbf

Please sign in to comment.