aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config
diff options
context:
space:
mode:
authorThunderblade73 <85900443+Thunderblade73@users.noreply.github.com>2024-05-30 11:21:50 +0200
committerGitHub <noreply@github.com>2024-05-30 11:21:50 +0200
commit6b0e324c96073d824c12dff1629a782352155e99 (patch)
tree95317e2d5d134dc596eaa237cefb7f271384796a /src/main/java/at/hannibal2/skyhanni/config
parentb2733f13841363c9417c0eb79d7240990eb36bcb (diff)
downloadskyhanni-6b0e324c96073d824c12dff1629a782352155e99.tar.gz
skyhanni-6b0e324c96073d824c12dff1629a782352155e99.tar.bz2
skyhanni-6b0e324c96073d824c12dff1629a782352155e99.zip
Feature: Hotm Features + Hotm API/Data (#1059)
Co-authored-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Co-authored-by: Empa <42304516+ItsEmpa@users.noreply.github.com> Co-authored-by: martimavocado <39881008+martimavocado@users.noreply.github.com> Co-authored-by: martimavocado <martim.cavaco@tutanota.com> Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/mining/HotmConfig.java27
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/mining/MiningConfig.java4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/storage/ProfileSpecificStorage.java23
3 files changed, 54 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/mining/HotmConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/mining/HotmConfig.java
new file mode 100644
index 000000000..cbe7d0be0
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/mining/HotmConfig.java
@@ -0,0 +1,27 @@
+package at.hannibal2.skyhanni.config.features.mining;
+
+import at.hannibal2.skyhanni.config.FeatureToggle;
+import com.google.gson.annotations.Expose;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean;
+import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
+
+public class HotmConfig {
+
+ @Expose
+ @ConfigOption(name = "Enabled Highlight", desc = "Highlights enabled perks in the hotm tree green and disabled red. Not unlocked perks are highlighted gray.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean highlightEnabledPerks = true;
+
+ @Expose
+ @ConfigOption(name = "Level Stack", desc = "Shows the level of a perk as item stacks.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean levelStackSize = true;
+
+ @Expose
+ @ConfigOption(name = "Token Stack", desc = "Shows unused tokens on the heart.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean tokenStackSize = true;
+}
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/mining/MiningConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/mining/MiningConfig.java
index 9c4af3882..05ad3fb27 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/mining/MiningConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/mining/MiningConfig.java
@@ -14,6 +14,10 @@ public class MiningConfig {
public MiningEventConfig miningEvent = new MiningEventConfig();
@Expose
+ @Category(name = "HotM", desc = "Settings for Heart of the Mountain")
+ public HotmConfig hotm = new HotmConfig();
+
+ @Expose
@ConfigOption(name = "Powder Tracker", desc = "")
@Accordion
public PowderTrackerConfig powderTracker = new PowderTrackerConfig();
diff --git a/src/main/java/at/hannibal2/skyhanni/config/storage/ProfileSpecificStorage.java b/src/main/java/at/hannibal2/skyhanni/config/storage/ProfileSpecificStorage.java
index 747d5c116..d73e707ab 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/storage/ProfileSpecificStorage.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/storage/ProfileSpecificStorage.java
@@ -1,8 +1,10 @@
package at.hannibal2.skyhanni.config.storage;
+import at.hannibal2.skyhanni.api.HotmAPI;
import at.hannibal2.skyhanni.api.SkillAPI;
import at.hannibal2.skyhanni.data.IslandType;
import at.hannibal2.skyhanni.data.MaxwellAPI;
+import at.hannibal2.skyhanni.data.jsonobjects.local.HotmTree;
import at.hannibal2.skyhanni.data.model.ComposterUpgrade;
import at.hannibal2.skyhanni.features.combat.endernodetracker.EnderNodeTracker;
import at.hannibal2.skyhanni.features.combat.ghostcounter.GhostData;
@@ -490,6 +492,27 @@ public class ProfileSpecificStorage {
@Expose
public ExcavatorProfitTracker.Data fossilExcavatorProfitTracker = new ExcavatorProfitTracker.Data();
+
+ @Expose
+ public HotmTree hotmTree = new HotmTree();
+
+ @Expose
+ public Map<HotmAPI.Powder, PowderStorage> powder = new HashMap<>();
+
+ public static class PowderStorage {
+
+ @Expose
+ public Long available;
+
+ @Expose
+ public Long total;
+ }
+
+ @Expose
+ public int tokens;
+
+ @Expose
+ public int availableTokens;
}
@Expose