aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewerUtils.java
diff options
context:
space:
mode:
authorefefury <69400149+efefury@users.noreply.github.com>2023-07-19 12:15:58 +0200
committerGitHub <noreply@github.com>2023-07-19 20:15:58 +1000
commit27d5083b6c80036a5b69368fd20ae1d019036e1d (patch)
tree70bc873865386d4d732f1c343abc6ca6a148c3f3 /src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewerUtils.java
parent6c53c772c7f96da1775acf9314be10cc7df53f5b (diff)
downloadnotenoughupdates-27d5083b6c80036a5b69368fd20ae1d019036e1d.tar.gz
notenoughupdates-27d5083b6c80036a5b69368fd20ae1d019036e1d.tar.bz2
notenoughupdates-27d5083b6c80036a5b69368fd20ae1d019036e1d.zip
Rift Page in PV and several Level Page changes (#770)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewerUtils.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewerUtils.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewerUtils.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewerUtils.java
index d8f7d17e..38e26a80 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewerUtils.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewerUtils.java
@@ -110,6 +110,12 @@ public class ProfileViewerUtils {
// While there are several crab hats, only one of them counts towards the magical power
boolean countedCrabHat = false;
int powerAmount = 0;
+
+ if (profileInfo.has("rift") && profileInfo.getAsJsonObject("rift").has("access") && profileInfo.getAsJsonObject(
+ "rift").getAsJsonObject("access").has("consumed_prism")) { // should be true when existing ?
+ powerAmount += 11;
+ }
+
for (Map.Entry<String, Integer> entry : accessories.entrySet()) {
if (ignoredTalismans.contains(entry.getKey())) continue;