diff options
author | Linnea Gräf <nea@nea.moe> | 2024-04-10 20:54:50 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-04-11 11:39:09 +0200 |
commit | 0dde442debc27d1167e398140dcce71f0b32142c (patch) | |
tree | 5acee77c0546622ad56a5d34415c25a384c6f315 /src/main/java | |
parent | d6128f0dac37768bb295efe3f92c55ba890073de (diff) | |
download | NotEnoughUpdates-0dde442debc27d1167e398140dcce71f0b32142c.tar.gz NotEnoughUpdates-0dde442debc27d1167e398140dcce71f0b32142c.tar.bz2 NotEnoughUpdates-0dde442debc27d1167e398140dcce71f0b32142c.zip |
Add waypoints to gemstone spawns
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/Mining.java | 38 | ||||
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java | 4 |
2 files changed, 39 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/Mining.java b/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/Mining.java index b485535e..c3d9b88d 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/Mining.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/Mining.java @@ -20,7 +20,6 @@ package io.github.moulberry.notenoughupdates.options.separatesections; import com.google.gson.annotations.Expose; -import io.github.moulberry.notenoughupdates.core.config.Position; import io.github.moulberry.moulconfig.annotations.ConfigAccordionId; import io.github.moulberry.moulconfig.annotations.ConfigEditorAccordion; import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean; @@ -29,6 +28,8 @@ import io.github.moulberry.moulconfig.annotations.ConfigEditorDraggableList; import io.github.moulberry.moulconfig.annotations.ConfigEditorDropdown; import io.github.moulberry.moulconfig.annotations.ConfigEditorSlider; import io.github.moulberry.moulconfig.annotations.ConfigOption; +import io.github.moulberry.notenoughupdates.core.config.Position; +import org.jetbrains.annotations.NotNull; import java.util.ArrayList; import java.util.Arrays; @@ -94,6 +95,41 @@ public class Mining { @ConfigAccordionId(id = 0) public boolean fallenStarWaypoint = true; + @Expose + @ConfigOption( + name = "Glacite Tunnel Waypoints", + desc = "Show waypoints in the Glacite Tunnels to the various gemstone locations, when you have a commission for them." + ) + @ConfigEditorDropdown + @ConfigAccordionId(id = 0) + public @NotNull GlaciteTunnelWaypointBehaviour tunnelWaypoints = GlaciteTunnelWaypointBehaviour.SHOW_ALL; + + @Expose + @ConfigOption( + name = "Always show Glacite Tunnel Waypoints", + desc = "Always show the Gemstone waypoints in the tunnels, instead of only for your current commissions." + ) + @ConfigEditorBoolean + @ConfigAccordionId(id = 0) + public boolean alwaysShowTunnelWaypoints = false; + + public enum GlaciteTunnelWaypointBehaviour { + SHOW_ALL("Show all"), + SHOW_NEAREST("Show nearest"), + NONE("Show none"), + ; + String text; + + GlaciteTunnelWaypointBehaviour(String text) { + this.text = text; + } + + @Override + public String toString() { + return text; + } + } + @ConfigOption( name = "Drill Fuel Bar", desc = "" diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java index 8b12026d..39f7b716 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java @@ -625,7 +625,7 @@ public class MiningOverlay extends TextTabOverlay { if (name.equals("Glacite Collector")) return "Break ice"; if (name.equals("Onyx Gemstone Collector")) return "Break black glass"; if (name.equals("Aquamarine Gemstone Collector")) return "Break aqua glass"; - if (name.equals("Peridot Gemstone Collecto")) return "Break dark green glass"; + if (name.equals("Peridot Gemstone Collector")) return "Break dark green glass"; if (name.equals("Citrine Gemstone Collector")) return "Break brown glass"; } else if (SBInfo.getInstance().getLocation().equals("crystal_hollows")) { // Crystal Hollows @@ -671,7 +671,7 @@ public class MiningOverlay extends TextTabOverlay { if (name.equals("Glacite Collector")) return "Break ice"; if (name.equals("Onyx Gemstone Collector")) return "Break black glass"; if (name.equals("Aquamarine Gemstone Collector")) return "Break aqua glass"; - if (name.equals("Peridot Gemstone Collecto")) return "Break dark green glass"; + if (name.equals("Peridot Gemstone Collector")) return "Break dark green glass"; if (name.equals("Citrine Gemstone Collector")) return "Break brown glass"; } |