diff options
| author | Vixid <52578495+Vixid1@users.noreply.github.com> | 2022-10-21 07:19:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-20 23:19:22 -0700 |
| commit | 0a5c62857747c80ce039fcef182c7098a4a0503a (patch) | |
| tree | 4f8206c0fdfa90cb436494501ad8c675503e833a /src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java | |
| parent | bbf48864fa4894352964f28be11d6686d49052ad (diff) | |
| download | notenoughupdates-0a5c62857747c80ce039fcef182c7098a4a0503a.tar.gz notenoughupdates-0a5c62857747c80ce039fcef182c7098a4a0503a.tar.bz2 notenoughupdates-0a5c62857747c80ce039fcef182c7098a4a0503a.zip | |
Faction Town Board Quests added to Todo Overlay (#370)
370/merge
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java b/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java index f3a09fcc..d78a6988 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java @@ -284,6 +284,8 @@ public class SBInfo { private static final String profilePrefix = "\u00a7r\u00a7e\u00a7lProfile: \u00a7r\u00a7a"; private static final String skillsPrefix = "\u00a7r\u00a7e\u00a7lSkills: \u00a7r\u00a7a"; + private static final String completedFactionQuests = "\u00a7r \u00a7r\u00a7a"; + public ArrayList<String> completedQuests = new ArrayList<>(); private static final Pattern SKILL_LEVEL_PATTERN = Pattern.compile("([^0-9:]+) (\\d{1,2})"); @@ -320,6 +322,12 @@ public class SBInfo { } catch (Exception ignored) { } } + } else if (name.startsWith(completedFactionQuests)) { + if (completedQuests.isEmpty()) { + completedQuests.add(name); + } else if (!completedQuests.contains(name)) { + completedQuests.add(name); + } } } } catch (Exception e) { |
