Skip to content
Open
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: 3 additions & 2 deletions src/main/java/work/fking/masteringmixology/Goal.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ public void recalculate(MasteringMixologyConfig config, Client client) {
.orElse(0);
itemsAffordable = Math.min(minAffordable, rewardQuantity);

// Overall progress is the average of all component progress
// Overall progress is the minimum of all component progress
// as you can't buy rewards without completion of all components
overallProgress = componentDataMap.values().stream()
.mapToDouble(data -> data.percentageToGoal)
.average()
.min()
.orElse(0.0);
}

Expand Down