rendered paste bodypublic class functions {
public static byte METAL_MINE = 0;
public static byte CRYSTAL_MINE = 1;
public static byte DEUT_MINE = 2;
public static byte SOLAR_PLANT = 3;
public static byte FUSION_REACTOR = 4;
//Emulated global variables
public static byte METAL_MINE_LEVEL = 17;
public static byte CRYSTAL_MINE_LEVE = 23;
public static byte DEUT_MINE_LEVEL = 13;
public static byte SOLAR_PLANT_LEVEL = 12;
public static byte FUSION_REACTOR_LEVEL = 6;
public static byte ENERGY_TECHNOLOGY_LEVEL = 7;
public static void main(String[] args) {
System.out.print(MineProductionPerHour(METAL_MINE));
}
public static long MineProductionPerHour(byte MineType){
switch (MineType) {
case 0:
return new Double(30 * METAL_MINE_LEVEL * Math.pow(1.1 ,METAL_MINE_LEVEL)).longValue();
}
return 0;
}
}