Skip to content

Commit

Permalink
Add TOO_MANY CorporationAchievement
Browse files Browse the repository at this point in the history
  • Loading branch information
gmitch215 committed Jan 13, 2024
1 parent 813a6c8 commit a30fc35
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,20 @@ public enum CorporationAchievement {

return c.getAverageRating() / 4D;
}),

/**
* The achievement for reaching a collective 50, 150, or 250 Products.
*/
TOO_MANY(Material.IRON_SWORD, 3, "constants.corporation.achievement.too_many", 75000, (c, level) -> {
int products = c.getAllProducts().size();

switch (level) {
case 0: return products / 50D;
case 1: return products / 150D;
case 2: return products / 250D;
default: return 1D;
}
}),

;

Expand Down

0 comments on commit a30fc35

Please sign in to comment.