diff options
author | Aaron <51387595+AzureAaron@users.noreply.github.com> | 2023-09-12 18:06:07 -0400 |
---|---|---|
committer | Aaron <51387595+AzureAaron@users.noreply.github.com> | 2023-09-12 18:06:07 -0400 |
commit | ec8215a204c144e6c83e9a56efc98e8d2b15cb85 (patch) | |
tree | f5217198875ebe20a93fa4a2e1fc466ebbf47883 /src/main/java | |
parent | 024df0a5ddb6fa617b303eab9bf95504491fd4f0 (diff) | |
download | Skyblocker-ec8215a204c144e6c83e9a56efc98e8d2b15cb85.tar.gz Skyblocker-ec8215a204c144e6c83e9a56efc98e8d2b15cb85.tar.bz2 Skyblocker-ec8215a204c144e6c83e9a56efc98e8d2b15cb85.zip |
Change warning stuff to dark blue
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/me/xmrvizzy/skyblocker/skyblock/dungeon/DungeonChestProfit.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/me/xmrvizzy/skyblocker/skyblock/dungeon/DungeonChestProfit.java b/src/main/java/me/xmrvizzy/skyblocker/skyblock/dungeon/DungeonChestProfit.java index 33521ae2..ad958503 100644 --- a/src/main/java/me/xmrvizzy/skyblocker/skyblock/dungeon/DungeonChestProfit.java +++ b/src/main/java/me/xmrvizzy/skyblocker/skyblock/dungeon/DungeonChestProfit.java @@ -29,7 +29,7 @@ public class DungeonChestProfit { private static final Pattern ESSENCE_PATTERN = Pattern.compile("(?<type>[A-Za-z]+) Essence x(?<amount>[0-9]+)"); private static final DecimalFormat FORMATTER = new DecimalFormat("#,###"); private static final Style GRAY = Style.EMPTY.withColor(Formatting.GRAY); - private static final Style GOLD = Style.EMPTY.withColor(0xd4a72c); + private static final Style DARK_BLUE = Style.EMPTY.withColor(Formatting.DARK_BLUE); private static final Style DARK_GREEN = Style.EMPTY.withColor(Formatting.DARK_GREEN); private static final Style DARK_RED = Style.EMPTY.withColor(Formatting.DARK_RED); @@ -166,6 +166,6 @@ public class DungeonChestProfit { } private static Text getProfitText(int profit, boolean hasIncompleteData) { - return (profit == 0) ? Text.literal(" " + FORMATTER.format(profit)).setStyle(hasIncompleteData ? GOLD : GRAY) : (profit > 0) ? Text.literal(" +" + FORMATTER.format(profit)).setStyle(hasIncompleteData ? GOLD : DARK_GREEN) : Text.literal(" " + FORMATTER.format(profit)).setStyle(hasIncompleteData ? GOLD : DARK_RED); + return (profit == 0) ? Text.literal(" " + FORMATTER.format(profit)).setStyle(hasIncompleteData ? DARK_BLUE : GRAY) : (profit > 0) ? Text.literal(" +" + FORMATTER.format(profit)).setStyle(hasIncompleteData ? DARK_BLUE : DARK_GREEN) : Text.literal(" " + FORMATTER.format(profit)).setStyle(hasIncompleteData ? DARK_BLUE : DARK_RED); } } |