aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-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) {