aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkr45732 <52721908+kr45732@users.noreply.github.com>2023-07-11 08:41:35 -0400
committerGitHub <noreply@github.com>2023-07-11 14:41:35 +0200
commit897d727953562d487e9d2f1d77fdb1d83f16da0a (patch)
tree4d88913a4f49f5376144c05b6b26099feeb7205d
parent4656db6f9eeb7912715fbae25384af2add19f622 (diff)
downloadNotEnoughUpdates-897d727953562d487e9d2f1d77fdb1d83f16da0a.tar.gz
NotEnoughUpdates-897d727953562d487e9d2f1d77fdb1d83f16da0a.tar.bz2
NotEnoughUpdates-897d727953562d487e9d2f1d77fdb1d83f16da0a.zip
Funny Rainbow Bar (#768)
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/DungeonPage.java2
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/DungeonPage.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/DungeonPage.java
index 980a488f..b03c87dd 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/DungeonPage.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/DungeonPage.java
@@ -546,9 +546,9 @@ public class DungeonPage extends GuiProfileViewerPage {
for (int i = 0; i < Weight.DUNGEON_CLASS_NAMES.size(); i++) {
String className = Weight.DUNGEON_CLASS_NAMES.get(i);
- classLevelSum += levelingInfo.get(className).level;
String colour = className.equalsIgnoreCase(activeClass) ? EnumChatFormatting.GREEN.toString() : EnumChatFormatting.WHITE.toString();
ProfileViewer.Level levelObj = levelingInfo.get("cosmetic_" + className);
+ classLevelSum += levelObj.level;
getInstance()
.renderXpBar(
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
index c4ba85db..e7476979 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
@@ -907,7 +907,7 @@ public class GuiProfileViewer extends GuiScreen {
if (levelObj.maxed) {
renderGoldBar(x, y + 6, xSize);
} else {
- if (skillName.contains("Catacombs") && levelObj.level >= 50) {
+ if ((skillName.contains("Catacombs") || Weight.DUNGEON_CLASS_NAMES.stream().anyMatch(e -> skillName.toLowerCase().contains(e))) && levelObj.level >= 50) {
renderGoldBar(x, y + 6, xSize);
} else {
renderBar(x, y + 6, xSize, level % 1);