aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java
diff options
context:
space:
mode:
authorLulonaut <lulonaut@lulonaut.tech>2023-09-27 13:10:16 +0200
committerGitHub <noreply@github.com>2023-09-27 21:10:16 +1000
commitc41f5adb3977d8d60944c548fa2b456587256f5f (patch)
tree9ee5bdc131d12251327369757322c0d062ad306d /src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java
parent4cc84e3fd1b67e1e7f5b7c744e08dfee915708b1 (diff)
downloadnotenoughupdates-c41f5adb3977d8d60944c548fa2b456587256f5f.tar.gz
notenoughupdates-c41f5adb3977d8d60944c548fa2b456587256f5f.tar.bz2
notenoughupdates-c41f5adb3977d8d60944c548fa2b456587256f5f.zip
Fix skyblock level calculations in PV (#828)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java
index 3bfac529..3184fba6 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java
@@ -950,8 +950,13 @@ public class SkyblockProfiles {
return levelingInfo = out;
}
- public int getBestiaryLevel() {
- return BestiaryData.calculateTotalBestiaryLevel(BestiaryData.parseBestiaryData(getProfileJson()));
+ /**
+ * Get the Skyblock XP provided by the bestiary progress for this profile
+ *
+ * @return skyblock xp
+ */
+ public int getBestiaryXp() {
+ return BestiaryData.calculateBestiarySkyblockXp(getProfileJson());
}
public JsonObject getPetsInfo() {