From d721053fc352f9168322f1de2eff08126e69357a Mon Sep 17 00:00:00 2001 From: jani270 <69345714+jani270@users.noreply.github.com> Date: Mon, 20 May 2024 21:24:53 +0200 Subject: Add Refined Jyrre Bottles to Consumable Items in PV (#1172) --- .../moulberry/notenoughupdates/profileviewer/data/APIDataJson.java | 6 ++++++ .../notenoughupdates/profileviewer/level/task/MiscTaskLevel.java | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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 )); -- cgit