aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
diff options
context:
space:
mode:
authorjani270 <69345714+jani270@users.noreply.github.com>2022-06-04 19:35:57 +0200
committerGitHub <noreply@github.com>2022-06-04 19:35:57 +0200
commit1dcfd9774f30fe3d7357a48ca94cfa0fcf277e1b (patch)
tree4e390f9666c8abbc40fbf742989727cb9137a97c /src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
parent73dbbed409a86328144f2c75f460426e7baa6ae1 (diff)
downloadnotenoughupdates-1dcfd9774f30fe3d7357a48ca94cfa0fcf277e1b.tar.gz
notenoughupdates-1dcfd9774f30fe3d7357a48ca94cfa0fcf277e1b.tar.bz2
notenoughupdates-1dcfd9774f30fe3d7357a48ca94cfa0fcf277e1b.zip
Useful Changes (#153)
* Added Trophy Fish Fished to 3rd page of pv * Useful changes Co-Authored-By: efefury <69400149+efefury@users.noreply.github.com> Co-authored-by: efefury <69400149+efefury@users.noreply.github.com>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java22
1 files changed, 17 insertions, 5 deletions
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 1729cfa7..ee73f66f 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
@@ -7,7 +7,6 @@ import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonPrimitive;
import com.mojang.authlib.GameProfile;
-import io.github.moulberry.notenoughupdates.NEUOverlay;
import io.github.moulberry.notenoughupdates.NotEnoughUpdates;
import io.github.moulberry.notenoughupdates.cosmetics.ShaderManager;
import io.github.moulberry.notenoughupdates.itemeditor.GuiElementTextField;
@@ -1931,18 +1930,22 @@ public class GuiProfileViewer extends GuiScreen {
if (levelObj.maxed) {
renderGoldBar(x, y + 6, xSize);
} else {
- renderBar(x, y + 6, xSize, level % 1);
+ if (skillName.contains("Catacombs") && levelObj.level >= 50) {
+ renderGoldBar(x, y + 6, xSize);
+ } else {
+ renderBar(x, y + 6, xSize, level % 1);
+ }
}
if (mouseX > x && mouseX < x + 120) {
if (mouseY > y - 4 && mouseY < y + 13) {
String levelStr;
String totalXpStr = null;
+ if (skillName.contains("Catacombs"))
+ totalXpStr = EnumChatFormatting.GRAY + "Total XP: " + EnumChatFormatting.DARK_PURPLE +
+ Utils.formatNumberWithDots((long) levelObj.totalXp);
if (levelObj.maxed) {
levelStr = EnumChatFormatting.GOLD + "MAXED!";
- if (skillName.contains("Catacombs"))
- totalXpStr = EnumChatFormatting.GRAY + "Total XP: " + EnumChatFormatting.DARK_PURPLE +
- Utils.formatNumberWithDots((long) levelObj.totalXp);
} else {
int maxXp = (int) levelObj.maxXpForLevel;
levelStr = EnumChatFormatting.DARK_PURPLE + shortNumberFormat(
@@ -3420,6 +3423,8 @@ public class GuiProfileViewer extends GuiScreen {
Utils.getElementAsFloat(Utils.getElement(profileInfo, "stats.items_fished_treasure"), 0);
float items_fished_large_treasure =
Utils.getElementAsFloat(Utils.getElement(profileInfo, "stats.items_fished_large_treasure"), 0);
+ float items_fished_trophy_fish =
+ Utils.getElementAsFloat(Utils.getElement(profileInfo, "stats.items_fished_trophy_fish"), 0);
Utils.renderAlignedString(
EnumChatFormatting.GREEN + "Ores Mined",
@@ -3457,6 +3462,13 @@ public class GuiProfileViewer extends GuiScreen {
guiTop + yStartTop + yOffset * 5,
76
);
+ Utils.renderAlignedString(
+ EnumChatFormatting.GREEN + "Trophy Fish Fished",
+ EnumChatFormatting.WHITE.toString() + (int) items_fished_trophy_fish,
+ guiLeft + xStart + xOffset * 2,
+ guiTop + yStartTop + yOffset * 6,
+ 76
+ );
if (topKills == null) {
topKills = new TreeMap<>();