aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com>2023-02-18 18:16:36 +0000
committerGTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com>2023-02-18 18:16:36 +0000
commit1586d30b4aa38d3c66048b602b542abb72ed7daf (patch)
treeec07a319f56991090300a9ac0b7a2787ae67f94d
parent08940cf50ec63e239bf2d85583f58ea3f78b1d4f (diff)
downloadGT5-Unofficial-1586d30b4aa38d3c66048b602b542abb72ed7daf.tar.gz
GT5-Unofficial-1586d30b4aa38d3c66048b602b542abb72ed7daf.tar.bz2
GT5-Unofficial-1586d30b4aa38d3c66048b602b542abb72ed7daf.zip
Another static final constant.
-rw-r--r--src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipeStorage.java6
1 files 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<Block, String> blocksMapInverted = new HashMap<Block, String>() {
@@ -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) {