aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/BazaarTweaks.java
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-04-11 11:25:35 +0200
committerGitHub <noreply@github.com>2024-04-11 11:25:35 +0200
commitd6128f0dac37768bb295efe3f92c55ba890073de (patch)
tree81063a18b66914b0f31571b395b9158bd9b1eb68 /src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/BazaarTweaks.java
parent4cd130f140655f8741da93b1aa6c7bc7a2ce6d41 (diff)
downloadnotenoughupdates-d6128f0dac37768bb295efe3f92c55ba890073de.tar.gz
notenoughupdates-d6128f0dac37768bb295efe3f92c55ba890073de.tar.bz2
notenoughupdates-d6128f0dac37768bb295efe3f92c55ba890073de.zip
Add hex overpay warning (#1072)
Co-authored-by: Lulonaut <lulonaut@lulonaut.dev>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/BazaarTweaks.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/BazaarTweaks.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/BazaarTweaks.java b/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/BazaarTweaks.java
index 254d0c2e..f29cc97c 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/BazaarTweaks.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/BazaarTweaks.java
@@ -23,6 +23,7 @@ import com.google.gson.annotations.Expose;
import io.github.moulberry.moulconfig.annotations.ConfigAccordionId;
import io.github.moulberry.moulconfig.annotations.ConfigEditorAccordion;
import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean;
+import io.github.moulberry.moulconfig.annotations.ConfigEditorSlider;
import io.github.moulberry.moulconfig.annotations.ConfigOption;
public class BazaarTweaks {
@@ -70,4 +71,12 @@ public class BazaarTweaks {
@ConfigEditorBoolean
@ConfigAccordionId(id = 0)
public boolean escFullClose = true;
+
+ @Expose
+ @ConfigOption(
+ name = "Bazaar Overpay Warning",
+ desc = "Warns you before you would pay more than this amount of coins for an item in the /bz"
+ )
+ @ConfigEditorSlider(minValue = 0, maxValue = 500_000_000, minStep = 1)
+ public double bazaarOverpayWarning = 1_000_000;
}