168 public final String task;
177 this.amount = amount;
178 this.difficulty = difficulty;
182 public double getProgressExperience() {
187 return difficulty == Difficulty.HARD ? 350 : 50;
194 public String getName(ClanChannel channel) {
195 return task.replace(
"%",
"" + channel.getDetails().taskAmount);
198 public int getAmount() {
199 return Utility.random(amount.minimum, amount.maximum);
202 public static Set<ClanTask> getTasks(ClanType type, Difficulty difficulty) {
203 Set<ClanTask> tasks =
new HashSet<>();
204 for (ClanTask task : values()) {
205 if (task.type == type && task.difficulty == difficulty)
213 Set<ClanTask> tasks =
new HashSet<>();
221 Set<ClanTask> tasks =
new HashSet<>();
230 public int getReward() {