aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjani270 <69345714+jani270@users.noreply.github.com>2024-05-20 21:24:53 +0200
committerGitHub <noreply@github.com>2024-05-20 21:24:53 +0200
commitd721053fc352f9168322f1de2eff08126e69357a (patch)
tree1c30dfb5646ab09859c675d17449857ccdcefda7
parent080c9d8b24213441adf8ff594e646b8e905a14cd (diff)
downloadNotEnoughUpdates-d721053fc352f9168322f1de2eff08126e69357a.tar.gz
NotEnoughUpdates-d721053fc352f9168322f1de2eff08126e69357a.tar.bz2
NotEnoughUpdates-d721053fc352f9168322f1de2eff08126e69357a.zip
Add Refined Jyrre Bottles to Consumable Items in PV (#1172)
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/data/APIDataJson.java6
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/level/task/MiscTaskLevel.java5
2 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/data/APIDataJson.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/data/APIDataJson.java
index ff83d163..a99c6e0f 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/data/APIDataJson.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/data/APIDataJson.java
@@ -281,4 +281,10 @@ public class APIDataJson {
}
}
}
+
+ public WinterPlayerData winter_player_data = new WinterPlayerData();
+
+ public static class WinterPlayerData {
+ public int refined_jyrre_uses = 0;
+ }
}
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/level/task/MiscTaskLevel.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/level/task/MiscTaskLevel.java
index 59ee9abd..2970c107 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/level/task/MiscTaskLevel.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/level/task/MiscTaskLevel.java
@@ -65,12 +65,15 @@ public class MiscTaskLevel extends GuiTaskLevel {
int sbXpReaperPeppers = 0;
int sbXpUnlockedPowers = 0;
int sbXpAbiphone = 0;
+ int sbXpRefinedJyrre = 0;
if (data.accessory_bag_storage != null && data.accessory_bag_storage.unlocked_powers != null) {
sbXpAccessoryUpgrade = data.accessory_bag_storage.bag_upgrades_purchased * miscellaneousTask.get(
"accessory_bag_upgrades_xp").getAsInt();
sbXpReaperPeppers = data.player_data.reaper_peppers_eaten * miscellaneousTask.get("reaper_peppers_xp").getAsInt();
sbXpUnlockedPowers = data.accessory_bag_storage.unlocked_powers.size() * miscellaneousTask.get(
"unlocking_powers_xp").getAsInt();
+ sbXpRefinedJyrre =
+ data.winter_player_data.refined_jyrre_uses * miscellaneousTask.get("refined_jyrre_xp").getAsInt();
}
int sbXpDojo = 0;
@@ -185,7 +188,7 @@ public class MiscTaskLevel extends GuiTaskLevel {
lore.add(levelPage.buildLore("Accessory Bag Upgrades",
sbXpAccessoryUpgrade, 0, true
));
- int xpConsumableItems = sbXpReaperPeppers + sbXpBurger + sbXpSerum;
+ int xpConsumableItems = sbXpReaperPeppers + sbXpBurger + sbXpSerum + sbXpRefinedJyrre;
lore.add(levelPage.buildLore("Consumable Items",
xpConsumableItems, miscellaneousTask.get("consumable_items").getAsInt(), false
));