diff options
| author | Lulonaut <67191924+Lulonaut@users.noreply.github.com> | 2022-02-08 18:21:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-08 18:21:02 +0100 |
| commit | a703867e3ac945446dde06fbc2984835e790ffe3 (patch) | |
| tree | f7df34e9dbf46acf153275f406c9b4f4d69302c0 /src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java | |
| parent | 73d441245e33461f5ee9e2f44bfc15891f50f9c1 (diff) | |
| download | notenoughupdates-a703867e3ac945446dde06fbc2984835e790ffe3.tar.gz notenoughupdates-a703867e3ac945446dde06fbc2984835e790ffe3.tar.bz2 notenoughupdates-a703867e3ac945446dde06fbc2984835e790ffe3.zip | |
craft cost fix and SkillOverlay config changes (#73)
* Also multiply raw craft cost when holding shift
* SkillOverlays.java config changes
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java b/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java index e78c117b..2a1d1766 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java @@ -160,8 +160,10 @@ public class ItemPriceInformation { tooltip.add(""); added = true; } - tooltip.add(EnumChatFormatting.YELLOW.toString() + EnumChatFormatting.BOLD + "Raw Craft Cost: " + EnumChatFormatting.GOLD + EnumChatFormatting.BOLD + - (shortNumber && craftCost.craftCost > 1000 ? Utils.shortNumberFormat(craftCost.craftCost, 0) : format.format((int) craftCost.craftCost)) + " coins"); + float cost = craftCost.craftCost; + if (shiftPressed) cost = cost * shiftStackMultiplier; + + tooltip.add(EnumChatFormatting.YELLOW.toString() + EnumChatFormatting.BOLD + "Raw Craft Cost: " + EnumChatFormatting.GOLD + EnumChatFormatting.BOLD + (shortNumber && cost > 1000 ? Utils.shortNumberFormat(cost, 0) : format.format((int) cost)) + " coins"); } break; } |
