mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- fixed generateChallenges.
This commit is contained in:
@@ -398,6 +398,8 @@ public class QuestEventManager {
|
|||||||
|
|
||||||
Collections.shuffle(unlockedChallengeIds);
|
Collections.shuffle(unlockedChallengeIds);
|
||||||
|
|
||||||
|
maxChallenges = Math.min(maxChallenges, unlockedChallengeIds.size());
|
||||||
|
|
||||||
for (int i = 0; i < maxChallenges; i++) {
|
for (int i = 0; i < maxChallenges; i++) {
|
||||||
availableChallengeIds.add(unlockedChallengeIds.get(i));
|
availableChallengeIds.add(unlockedChallengeIds.get(i));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user