From 830a2df78d4b28d2bb27b83d4117aaf8651dd87b Mon Sep 17 00:00:00 2001 From: Alkalus Date: Thu, 5 Oct 2017 16:33:51 +1000 Subject: + Added some wires from custom materials. + Added a new Super Conductor Material for LuV power (HG-1223). + Added recipes for all custom material wires and cables. $ Fixed an issue where materials with a bad RGB array would crash the game. --- src/Java/gtPlusPlus/core/util/Utils.java | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'src/Java/gtPlusPlus/core/util') diff --git a/src/Java/gtPlusPlus/core/util/Utils.java b/src/Java/gtPlusPlus/core/util/Utils.java index 1ce9a29877..3b2bafe9fb 100644 --- a/src/Java/gtPlusPlus/core/util/Utils.java +++ b/src/Java/gtPlusPlus/core/util/Utils.java @@ -572,6 +572,44 @@ public class Utils { return output; } + + public static int calculateVoltageTier(int Voltage){ + int V; + if (Voltage == 8){ + V = 0; + } + else if (Voltage == 32){ + V = 1; + } + else if (Voltage == 128){ + V = 2; + } + else if (Voltage == 512){ + V = 3; + } + else if (Voltage == 2048){ + V = 4; + } + else if (Voltage == 8196){ + V = 5; + } + else if (Voltage == 32768){ + V = 6; + } + else if (Voltage == 131072){ + V = 7; + } + else if (Voltage == 524288){ + V = 8; + } + else if (Voltage == Integer.MAX_VALUE){ + V = 9; + } + else { + V = -1; + } + return V; + } public static String[] parseVersion(final String version){ return parseVersion(version, "//."); -- cgit