diff options
| author | jani270 <69345714+jani270@users.noreply.github.com> | 2024-07-18 12:27:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-18 12:27:14 +0200 |
| commit | fee4e7061b761d656904d1c984d0888d056cbbb0 (patch) | |
| tree | b5bb4f5f4de4348e45a06600e6c969c20d4930b6 | |
| parent | def1e1e828d98528fe5c0a6ad21d99afed676cce (diff) | |
| download | notenoughupdates-fee4e7061b761d656904d1c984d0888d056cbbb0.tar.gz notenoughupdates-fee4e7061b761d656904d1c984d0888d056cbbb0.tar.bz2 notenoughupdates-fee4e7061b761d656904d1c984d0888d056cbbb0.zip | |
Add Wriggling Larva to Misc Task on PV Levels Page (#1252)
2 files changed, 9 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 9499b1b2..3666f16e 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 @@ -272,4 +272,10 @@ public class APIDataJson { public static class WinterPlayerData { public int refined_jyrre_uses = 0; } + + public GardenPlayerData garden_player_data = new GardenPlayerData(); + + public static class GardenPlayerData { + public int larva_consumed = 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 2970c107..5f90e56a 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 @@ -66,6 +66,7 @@ public class MiscTaskLevel extends GuiTaskLevel { int sbXpUnlockedPowers = 0; int sbXpAbiphone = 0; int sbXpRefinedJyrre = 0; + int sbXpWrigglingLarva = 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(); @@ -74,6 +75,7 @@ public class MiscTaskLevel extends GuiTaskLevel { "unlocking_powers_xp").getAsInt(); sbXpRefinedJyrre = data.winter_player_data.refined_jyrre_uses * miscellaneousTask.get("refined_jyrre_xp").getAsInt(); + sbXpWrigglingLarva = data.garden_player_data.larva_consumed * miscellaneousTask.get("wriggling_larva_xp").getAsInt(); } int sbXpDojo = 0; @@ -188,7 +190,7 @@ public class MiscTaskLevel extends GuiTaskLevel { lore.add(levelPage.buildLore("Accessory Bag Upgrades", sbXpAccessoryUpgrade, 0, true )); - int xpConsumableItems = sbXpReaperPeppers + sbXpBurger + sbXpSerum + sbXpRefinedJyrre; + int xpConsumableItems = sbXpReaperPeppers + sbXpBurger + sbXpSerum + sbXpRefinedJyrre + sbXpWrigglingLarva; lore.add(levelPage.buildLore("Consumable Items", xpConsumableItems, miscellaneousTask.get("consumable_items").getAsInt(), false )); |
