From d37252418e361dc154fa33156755ec35dfc0c331 Mon Sep 17 00:00:00 2001 From: Alkalus Date: Sun, 3 Sep 2017 18:38:44 +1000 Subject: + Made all Multiblocks handle their recipes different. > They now have hard coded 20% speed bonuses over their single block counterparts and hard coded output chance bonuses. > Multiblocks no longer require cells as input or output. --- src/Java/gtPlusPlus/core/util/math/MathUtils.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Java/gtPlusPlus/core/util/math') diff --git a/src/Java/gtPlusPlus/core/util/math/MathUtils.java b/src/Java/gtPlusPlus/core/util/math/MathUtils.java index b61af67566..72969550e8 100644 --- a/src/Java/gtPlusPlus/core/util/math/MathUtils.java +++ b/src/Java/gtPlusPlus/core/util/math/MathUtils.java @@ -143,6 +143,10 @@ public class MathUtils { final double roundOff = Math.round(c * 100.00) / 100.00; return roundOff; } + + public static int findPercentageOfInt(int input, int percentage){ + return (int)(input*(percentage/100.0f)); + } //Smooth Rounding Function -- cgit