aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/profileviewer
diff options
context:
space:
mode:
authorThatGravyBoat <gravyboat211@gmail.com>2021-02-10 08:31:18 -0330
committerThatGravyBoat <gravyboat211@gmail.com>2021-02-10 08:31:18 -0330
commitada86e95cc85700ca39022ac25eeb32febaaa2fb (patch)
tree78516b10c84da820c93b25130a9cc77a2a23fca0 /src/main/java/io/github/moulberry/notenoughupdates/profileviewer
parenta2292c332c22646bd177eaf3123ce31a74991e36 (diff)
downloadnotenoughupdates-ada86e95cc85700ca39022ac25eeb32febaaa2fb.tar.gz
notenoughupdates-ada86e95cc85700ca39022ac25eeb32febaaa2fb.tar.bz2
notenoughupdates-ada86e95cc85700ca39022ac25eeb32febaaa2fb.zip
Added PetInfo display, allows for the checking of certain pets for certain features, also adds monkey check for treecap cooldown and adds a notification if you are using the wrong pet.
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/profileviewer')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java8
1 files changed, 5 insertions, 3 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 ce42b810..c47a1091 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
@@ -1011,9 +1011,10 @@ public class GuiProfileViewer extends GuiScreen {
}
public static class PetLevel {
- float level;
- float currentLevelRequirement;
- float maxXP;
+ public float level;
+ public float currentLevelRequirement;
+ public float maxXP;
+ public float levelPercentage;
}
public static PetLevel getPetLevel(JsonArray levels, int offset, float exp) {
@@ -1050,6 +1051,7 @@ public class GuiProfileViewer extends GuiScreen {
levelObj.level = level;
levelObj.currentLevelRequirement = currentLevelRequirement;
levelObj.maxXP = xpTotal;
+ levelObj.levelPercentage = remainingToNextLevel;
return levelObj;
}