From 1586d30b4aa38d3c66048b602b542abb72ed7daf Mon Sep 17 00:00:00 2001 From: GTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com> Date: Sat, 18 Feb 2023 18:16:36 +0000 Subject: Another static final constant. --- .../github/technus/tectech/recipe/EyeOfHarmonyRecipeStorage.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipeStorage.java b/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipeStorage.java index f4a5dbb92c..9603e60af9 100644 --- a/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipeStorage.java +++ b/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipeStorage.java @@ -27,6 +27,7 @@ import gregtech.api.util.GT_OreDictUnificator; public class EyeOfHarmonyRecipeStorage { public static final long BILLION = LongMath.pow(10, 9); + private static final double CHANCE_DECREASE_PER_DIMENSION = 0.05; // Map is unique so this is fine. HashMap blocksMapInverted = new HashMap() { @@ -67,7 +68,8 @@ public class EyeOfHarmonyRecipeStorage { BILLION * (blockDimensionDisplay.getDimensionRocketTier() + 1), timeCalculator(blockDimensionDisplay.getDimensionRocketTier()), blockDimensionDisplay.getDimensionRocketTier(), - 1.0 - 0.05 * blockDimensionDisplay.getDimensionRocketTier())); + 1.0 - CHANCE_DECREASE_PER_DIMENSION + * blockDimensionDisplay.getDimensionRocketTier())); } } } @@ -138,7 +140,7 @@ public class EyeOfHarmonyRecipeStorage { BILLION * (rocketTier + 1), timeCalculator(rocketTier), rocketTier, // -1 so that we avoid out of bounds exception on NEI render. - 1.0 - rocketTier / 10.0)); + 1.0 - rocketTier * CHANCE_DECREASE_PER_DIMENSION)); } private static long timeCalculator(final long rocketTier) { -- cgit