aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-16 16:32:07 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-16 16:32:07 +0100
commit5d027819967ad664dd6b79f2e3c90c752df55e84 (patch)
tree1542a67f137999c57ca1daa08b0c237b96e0c9d7 /src/main/java/at/hannibal2/skyhanni/config
parent6a9599fa9820b3efe0e5fdbb1d546ad8a0aa4de7 (diff)
downloadskyhanni-5d027819967ad664dd6b79f2e3c90c752df55e84.tar.gz
skyhanni-5d027819967ad664dd6b79f2e3c90c752df55e84.tar.bz2
skyhanni-5d027819967ad664dd6b79f2e3c90c752df55e84.zip
Added Mythological Mob Tracker.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/Storage.java5
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt10
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/event/diana/DianaConfig.java5
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/event/diana/MythologicalMobTrackerConfig.java30
4 files changed, 50 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/Storage.java b/src/main/java/at/hannibal2/skyhanni/config/Storage.java
index e17646663..7f4d6c183 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/Storage.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/Storage.java
@@ -6,6 +6,7 @@ import at.hannibal2.skyhanni.features.combat.endernodetracker.EnderNodeTracker;
import at.hannibal2.skyhanni.features.combat.ghostcounter.GhostData;
import at.hannibal2.skyhanni.features.dungeon.DungeonAPI;
import at.hannibal2.skyhanni.features.event.diana.DianaProfitTracker;
+import at.hannibal2.skyhanni.features.event.diana.MythologicalMobTracker;
import at.hannibal2.skyhanni.features.event.jerry.frozentreasure.FrozenTreasureTracker;
import at.hannibal2.skyhanni.features.fishing.tracker.FishingProfitTracker;
import at.hannibal2.skyhanni.features.fishing.trophy.TrophyRarity;
@@ -450,8 +451,12 @@ public class Storage {
public static class DianaStorage {
@Expose
+ // TODO rename to 'profitTracker'
public DianaProfitTracker.Data dianaProfitTracker = new DianaProfitTracker.Data();
+ @Expose
+ public MythologicalMobTracker.Data mythologicalMobTracker = new MythologicalMobTracker.Data();
+
}
}
}
diff --git a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
index 8f4d96483..f169a04f8 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
+++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
@@ -15,7 +15,9 @@ import at.hannibal2.skyhanni.features.combat.endernodetracker.EnderNodeTracker
import at.hannibal2.skyhanni.features.combat.ghostcounter.GhostUtil
import at.hannibal2.skyhanni.features.commands.PartyCommands
import at.hannibal2.skyhanni.features.event.diana.BurrowWarpHelper
+import at.hannibal2.skyhanni.features.event.diana.DianaProfitTracker
import at.hannibal2.skyhanni.features.event.diana.InquisitorWaypointShare
+import at.hannibal2.skyhanni.features.event.diana.MythologicalMobTracker
import at.hannibal2.skyhanni.features.event.jerry.frozentreasure.FrozenTreasureTracker
import at.hannibal2.skyhanni.features.fame.AccountUpgradeReminder
import at.hannibal2.skyhanni.features.fame.CityProjectFeatures
@@ -208,6 +210,14 @@ object Commands {
"shresetvermintracker",
"Resets the Vermin Tracker"
) { VerminTracker.resetCommand(it) }
+ registerCommand(
+ "shresetdianaprofittracker",
+ "Resets the Diana Profit Tracker"
+ ) { DianaProfitTracker.resetCommand(it) }
+ registerCommand(
+ "shresetmythologicalmobtracker",
+ "Resets the Mythological Mob Tracker"
+ ) { MythologicalMobTracker.resetCommand(it) }
}
private fun usersBugFix() {
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/event/diana/DianaConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/event/diana/DianaConfig.java
index a99268b0a..9db30db0c 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/event/diana/DianaConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/event/diana/DianaConfig.java
@@ -68,4 +68,9 @@ public class DianaConfig {
@ConfigOption(name = "Diana Profit Tracker", desc = "")
@Accordion
public DianaProfitTrackerConfig dianaProfitTracker = new DianaProfitTrackerConfig();
+
+ @Expose
+ @ConfigOption(name = "Mythological Mob Tracker", desc = "")
+ @Accordion
+ public MythologicalMobTrackerConfig mythologicalMobtracker = new MythologicalMobTrackerConfig();
}
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/event/diana/MythologicalMobTrackerConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/event/diana/MythologicalMobTrackerConfig.java
new file mode 100644
index 000000000..2dac93553
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/event/diana/MythologicalMobTrackerConfig.java
@@ -0,0 +1,30 @@
+package at.hannibal2.skyhanni.config.features.event.diana;
+
+import at.hannibal2.skyhanni.config.FeatureToggle;
+import at.hannibal2.skyhanni.config.core.config.Position;
+import com.google.gson.annotations.Expose;
+import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean;
+import io.github.moulberry.moulconfig.annotations.ConfigOption;
+import io.github.moulberry.moulconfig.observer.Property;
+
+public class MythologicalMobTrackerConfig {
+
+ @Expose
+ @ConfigOption(name = "Enabled", desc = "Counts the different mythological mobs you have dug up.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean enabled = false;
+
+ @Expose
+ public Position position = new Position(20, 20, false, true);
+
+ @Expose
+ @ConfigOption(name = "Show Percentage", desc = "Show percentage of mob compared to all mobs")
+ @ConfigEditorBoolean
+ public Property<Boolean> showPercentage = Property.of(false);
+
+ @Expose
+ @ConfigOption(name = "Hide Chat", desc = "Hide the chat messages when digging up a mythological mob.")
+ @ConfigEditorBoolean
+ public boolean hideChat = false;
+}