From 9a3155634c0b6e732f174b544cc34d4d1acc7394 Mon Sep 17 00:00:00 2001 From: Lulonaut Date: Wed, 10 Apr 2024 14:56:28 +0200 Subject: Add glacite powder to mining overlay (#1078) --- .../notenoughupdates/options/separatesections/Mining.java | 5 +++-- .../moulberry/notenoughupdates/overlays/MiningOverlay.java | 12 ++++++++++-- 2 files changed, 13 insertions(+), 4 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 38aefcaf..b485535e 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 @@ -156,11 +156,12 @@ public class Mining { "§3Forge 1) §9Diamonite§7: §aReady!", "§3Pickaxe CD: §a78s", "§3Star Cult: §a78s", - "§3Sky Mall: §a5x Titanium (78s)" + "§3Sky Mall: §a5x Titanium (78s)", + "§3Glacite Powder: §b46" } ) @ConfigAccordionId(id = 2) - public List dwarvenText2 = new ArrayList<>(Arrays.asList(0, 1, 2, 3, 4, 5, 6)); + public List dwarvenText2 = new ArrayList<>(Arrays.asList(0, 1, 2, 3, 4, 5, 6, 7)); @Expose public Position overlayPosition = new Position(10, 100); 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 f2d2886d..64d49304 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java @@ -256,11 +256,13 @@ public class MiningOverlay extends TextTabOverlay { // These strings will be displayed one after the other when the player list is disabled String mithrilPowder = ""; String gemstonePowder = ""; + String glacitePowder = ""; int forgeInt = 0; List powderLines = getTabLinesOrAddWarning(1, TablistAPI.WidgetNames.POWDER); getTabLinesOrAddWarning(2, TablistAPI.WidgetNames.POWDER); + getTabLinesOrAddWarning(6, TablistAPI.WidgetNames.POWDER); for (String line : powderLines) { if (line.contains("Mithril:")) { @@ -269,6 +271,9 @@ public class MiningOverlay extends TextTabOverlay { if (line.contains("Gemstone:")) { gemstonePowder = DARK_AQUA + Utils.trimWhitespaceAndFormatCodes(line).replaceAll("\u00a7[f|F|r]", ""); } + if (line.contains("Glacite: ")) { + glacitePowder = DARK_AQUA + Utils.trimWhitespaceAndFormatCodes(line).replaceAll("\u00a7[f|F|r]", ""); + } } List tabForgeLines = getTabLinesOrAddWarning(3, TablistAPI.WidgetNames.FORGE); @@ -431,6 +436,9 @@ public class MiningOverlay extends TextTabOverlay { case 6: overlayStrings.add("§3Sky Mall: §a" + SkyMallDisplay.Companion.getDisplayText()); break; + case 7: + overlayStrings.add(glacitePowder); + break; } } } else { @@ -755,8 +763,6 @@ public class MiningOverlay extends TextTabOverlay { } else { if (beforeColon.startsWith("Forge")) { icon = miningOverlayCommissionItems.get("Forge"); - } else if (beforeColon.contains("Mithril")) { - icon = miningOverlayCommissionItems.get("Mithril"); } else if (beforeColon.endsWith(" Gemstone Collector")) { String gemName = "ROUGH_" + beforeColon.replace(" Gemstone Collector", "").toUpperCase() + "_GEM"; @@ -832,6 +838,8 @@ public class MiningOverlay extends TextTabOverlay { addItem("Chest Looter", "CHEST"); addItem("Titanium", "TITANIUM_ORE"); addItem("Mithril", "MITHRIL_ORE"); + addItem("Gemstone", "ROCK_GEMSTONE"); + addItem("Glacite", "GLACITE"); addItem("Forge", "ANVIL"); addItem("First Event", "FIREWORK"); } -- cgit