diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-01-11 12:04:46 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-01-11 12:04:46 +0100 |
commit | 90522ec07249ecca238083d66f17c61ccdae9481 (patch) | |
tree | 391380d6095a162aaff123d78fc357e915883452 /src/main/java/at | |
parent | 389e74e1554baa30b48c56ef88235f09df031e6d (diff) | |
download | skyhanni-90522ec07249ecca238083d66f17c61ccdae9481.tar.gz skyhanni-90522ec07249ecca238083d66f17c61ccdae9481.tar.bz2 skyhanni-90522ec07249ecca238083d66f17c61ccdae9481.zip |
Added toggle to count double hook catches as two catches in Sea Creature Tracker.
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/fishing/SeaCreatureTrackerConfig.java | 5 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/SeaCreatureTracker.kt | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/fishing/SeaCreatureTrackerConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/fishing/SeaCreatureTrackerConfig.java index 91c26aa21..4558e1413 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/fishing/SeaCreatureTrackerConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/fishing/SeaCreatureTrackerConfig.java @@ -27,4 +27,9 @@ public class SeaCreatureTrackerConfig { @ConfigOption(name = "Hide Chat", desc = "Hide the chat messages when catching a sea creature.") @ConfigEditorBoolean public boolean hideChat = false; + + @Expose + @ConfigOption(name = "Count Double", desc = "Count double hook catches as two catches.") + @ConfigEditorBoolean + public boolean countDouble = true; } diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/SeaCreatureTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/SeaCreatureTracker.kt index 6a1e1a382..c9168c306 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/SeaCreatureTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/SeaCreatureTracker.kt @@ -42,7 +42,7 @@ object SeaCreatureTracker { if (!isEnabled()) return tracker.modify { - val amount = if (event.doubleHook) 2 else 1 + val amount = if (event.doubleHook && config.countDouble) 2 else 1 it.amount.addOrPut(event.seaCreature.name, amount) } |