aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/features
diff options
context:
space:
mode:
authorEmpa <42304516+ItsEmpa@users.noreply.github.com>2024-07-26 13:02:20 +0200
committerGitHub <noreply@github.com>2024-07-26 13:02:20 +0200
commit19d4d4e1eaa06d4ff2a170cad7ebf9e6441dc048 (patch)
tree99e7f275b2d8e05ad205de1b7a21a6a1ccc86863 /src/main/java/at/hannibal2/skyhanni/config/features
parentbde6b2a2b9ca8e89c6b661fc5ef6333cd4ec9da6 (diff)
downloadskyhanni-19d4d4e1eaa06d4ff2a170cad7ebf9e6441dc048.tar.gz
skyhanni-19d4d4e1eaa06d4ff2a170cad7ebf9e6441dc048.tar.bz2
skyhanni-19d4d4e1eaa06d4ff2a170cad7ebf9e6441dc048.zip
Improvement + Fix: Barn Fishing Timer (#1960)
Co-authored-by: Cal <cwolfson58@gmail.com> Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Co-authored-by: ItsEmpa <itsempa@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/fishing/BarnTimerConfig.java25
1 files changed, 18 insertions, 7 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/fishing/BarnTimerConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/fishing/BarnTimerConfig.java
index 42e36fe50..d62d066e5 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/fishing/BarnTimerConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/fishing/BarnTimerConfig.java
@@ -8,17 +8,18 @@ import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorKeybind;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorSlider;
import io.github.notenoughupdates.moulconfig.annotations.ConfigLink;
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
+import io.github.notenoughupdates.moulconfig.observer.Property;
import org.lwjgl.input.Keyboard;
public class BarnTimerConfig {
@Expose
@ConfigOption(
name = "Barn Fishing Timer",
- desc = "Show the time and amount of sea creatures while fishing on the barn via hub."
+ desc = "Show the time and amount of own sea creatures nearby while barn fishing."
)
@ConfigEditorBoolean
@FeatureToggle
- public boolean enabled = true;
+ public Property<Boolean> enabled = Property.of(true);
@Expose
@ConfigOption(
@@ -26,7 +27,7 @@ public class BarnTimerConfig {
desc = "Show the Barn Fishing Timer in the Crystal Hollows."
)
@ConfigEditorBoolean
- public boolean crystalHollows = true;
+ public Property<Boolean> crystalHollows = Property.of(true);
@Expose
@ConfigOption(
@@ -34,7 +35,7 @@ public class BarnTimerConfig {
desc = "Show the Barn Fishing Timer in the Crimson Isle."
)
@ConfigEditorBoolean
- public boolean crimsonIsle = true;
+ public Property<Boolean> crimsonIsle = Property.of(true);
@Expose
@ConfigOption(
@@ -42,7 +43,7 @@ public class BarnTimerConfig {
desc = "Show the Barn Fishing Timer on the Jerry's Workshop island."
)
@ConfigEditorBoolean
- public boolean winterIsland = true;
+ public Property<Boolean> winterIsland = Property.of(true);
@Expose
@ConfigOption(
@@ -50,12 +51,12 @@ public class BarnTimerConfig {
desc = "Show the Barn Fishing Timer on all the different islands that Stranded players can visit."
)
@ConfigEditorBoolean
- public boolean forStranded = true;
+ public Property<Boolean> forStranded = Property.of(true);
@Expose
@ConfigOption(
name = "Worm Cap Alert",
- desc = "Alerts you with title and sound if you hit the Worm Sea Creature limit of 60."
+ desc = "Alerts you with title and sound if you hit the Worm Sea Creature limit of 20."
)
@ConfigEditorBoolean
public boolean wormLimitAlert = true;
@@ -75,6 +76,16 @@ public class BarnTimerConfig {
public int alertTime = 330;
@Expose
+ @ConfigOption(name = "Fishing Cap Alert", desc = "Gives a warning when you reach a certain amount of mobs.")
+ @ConfigEditorBoolean
+ public boolean fishingCapAlert = true;
+
+ @Expose
+ @ConfigOption(name = "Fishing Cap Amount", desc = "Amount of mobs at which to trigger the Fishing Cap Alert.")
+ @ConfigEditorSlider(minValue = 10, maxValue = 60, minStep = 1)
+ public int fishingCapAmount = 30;
+
+ @Expose
@ConfigLink(owner = BarnTimerConfig.class, field = "enabled")
public Position pos = new Position(10, 10, false, true);
}