diff options
author | heyngra <heyngra.wspolpraca@gmail.com> | 2022-12-09 12:45:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 22:45:29 +1100 |
commit | ac74ab8c13cf486cf36cb911f0a723908b0c5072 (patch) | |
tree | 980ab4530c8b14098cf3268d9f6ae43d1eedbdd5 /src/main | |
parent | 1797440fcdc21c816c3d3a472f261c4e6da6f024 (diff) | |
download | NotEnoughUpdates-ac74ab8c13cf486cf36cb911f0a723908b0c5072.tar.gz NotEnoughUpdates-ac74ab8c13cf486cf36cb911f0a723908b0c5072.tar.bz2 NotEnoughUpdates-ac74ab8c13cf486cf36cb911f0a723908b0c5072.zip |
Make MinionHelper show North Stars without a price (#482)
fixes https://github.com/NotEnoughUpdates/NotEnoughUpdates/issues/472
Diffstat (limited to 'src/main')
2 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/render/MinionHelperOverlayHover.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/render/MinionHelperOverlayHover.java index fcafa534..84678c0c 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/render/MinionHelperOverlayHover.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/render/MinionHelperOverlayHover.java @@ -253,6 +253,12 @@ public class MinionHelperOverlayHover { lines.add(" §8- §5" + peltCount + "§8/§5" + amount + " Pelts"); continue; } + if (internalName.equals("SKYBLOCK_NORTH_STAR")) { + // North Stars are not in the API + + lines.add(" §8- §a" + amount + "§7x §d" + "North Star"); + continue; + } String name = NotEnoughUpdates.INSTANCE.manager.getDisplayName(internalName); double price = manager.getPriceCalculation().getPrice(internalName); diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/util/MinionHelperPriceCalculation.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/util/MinionHelperPriceCalculation.java index 8f75b32c..cb43100b 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/util/MinionHelperPriceCalculation.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/util/MinionHelperPriceCalculation.java @@ -84,6 +84,10 @@ public class MinionHelperPriceCalculation { int amount = items.get("SKYBLOCK_PELT").get(0); result += " §7+ §5" + amount + " Pelts"; } + if (items.containsKey("SKYBLOCK_NORTH_STAR")) { + int amount = items.get("SKYBLOCK_NORTH_STAR").get(0); + result += " §7+ §d" + amount + " North Stars"; + } } if (upgradeOnly) { |