aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
authorDoKM <mcazzyman@gmail.com>2021-07-25 21:08:51 +0200
committerDoKM <mcazzyman@gmail.com>2021-07-25 21:08:51 +0200
commite9b2aa9b40150ad3e602d9f6e2674a7383f41c60 (patch)
tree8ed34da0bb2229c50d51a33515c17fe4b7954d91 /src/main/java/io
parent224edc9b020e40f5a6de5b3e055542f1302ce26d (diff)
downloadNotEnoughUpdates-e9b2aa9b40150ad3e602d9f6e2674a7383f41c60.tar.gz
NotEnoughUpdates-e9b2aa9b40150ad3e602d9f6e2674a7383f41c60.tar.bz2
NotEnoughUpdates-e9b2aa9b40150ad3e602d9f6e2674a7383f41c60.zip
Add a toggle for showing reforge stats on a reforge stone
Diffstat (limited to 'src/main/java/io')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java3
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/TooltipTweaks.java8
2 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java
index b849c890..3240de03 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java
@@ -1721,9 +1721,10 @@ public class NEUEventListener {
int index = 0;
List<String> newTooltip = new ArrayList<>();
for(String line : event.toolTip) {
- if(line.endsWith(EnumChatFormatting.DARK_GRAY+"Reforge Stone")) {
+ if(line.endsWith(EnumChatFormatting.DARK_GRAY+"Reforge Stone") && NotEnoughUpdates.INSTANCE.config.tooltipTweaks.showReforgeStats) {
JsonObject reforgeStones = Constants.REFORGESTONES;
+
if(reforgeStones != null && reforgeStones.has(internalname)) {
boolean shift = Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT);
if(!pressedShiftLast && shift) {
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/TooltipTweaks.java b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/TooltipTweaks.java
index e1b9780a..b7fb3433 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/TooltipTweaks.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/TooltipTweaks.java
@@ -62,6 +62,14 @@ public class TooltipTweaks {
@Expose
@ConfigOption(
+ name = "Show reforge stats",
+ desc = "Show statistics a reforge stone will apply."
+ )
+ @ConfigEditorBoolean
+ public boolean showReforgeStats = true;
+
+ @Expose
+ @ConfigOption(
name = "Missing Enchant List",
desc = "Show which enchants are missing on an item when pressing LSHIFT"
)