From 16ba4c9813b4f3c36d61c736ebf9d5835e0d7e28 Mon Sep 17 00:00:00 2001 From: Squirrely Date: Sun, 17 Nov 2013 22:37:34 -0600 Subject: [PATCH] Added "smeltery output modification" config section. Adds ability to customize ingot output of ores thrown into the smeltery and also the output of ingots when alloys are made. --- src/tconstruct/common/TContent.java | 47 +++++---------------- src/tconstruct/util/config/PHConstruct.java | 27 ++++++++---- 2 files changed, 29 insertions(+), 45 deletions(-) diff --git a/src/tconstruct/common/TContent.java b/src/tconstruct/common/TContent.java index 52a5f666..e99e03d8 100644 --- a/src/tconstruct/common/TContent.java +++ b/src/tconstruct/common/TContent.java @@ -1646,34 +1646,15 @@ public class TContent implements IFuelHandler private void addRecipesForSmeltery () { - //Alloys Smelting - if (PHConstruct.vanillaSmelting) - { - Smeltery.addAlloyMixing(new FluidStack(moltenBronzeFluid, TConstruct.ingotLiquidValue * 4), new FluidStack(moltenCopperFluid, TConstruct.ingotLiquidValue * 3), new FluidStack( - moltenTinFluid, TConstruct.ingotLiquidValue)); //Bronze - Smeltery.addAlloyMixing(new FluidStack(moltenAlubrassFluid, TConstruct.ingotLiquidValue * 4), new FluidStack(moltenAluminumFluid, TConstruct.ingotLiquidValue * 3), new FluidStack( - moltenCopperFluid, TConstruct.ingotLiquidValue * 1)); //Aluminum Brass - Smeltery.addAlloyMixing(new FluidStack(moltenManyullynFluid, TConstruct.ingotLiquidValue * 2), new FluidStack(moltenCobaltFluid, TConstruct.ingotLiquidValue), new FluidStack( - moltenArditeFluid, TConstruct.ingotLiquidValue)); //Manyullyn - Smeltery.addAlloyMixing(new FluidStack(moltenAlumiteFluid, TConstruct.ingotLiquidValue * 6), new FluidStack(moltenAluminumFluid, TConstruct.ingotLiquidValue * 5), new FluidStack( - moltenIronFluid, TConstruct.ingotLiquidValue * 2), new FluidStack(moltenObsidianFluid, TConstruct.ingotLiquidValue * 2)); //Alumite - } - else - { - if (PHConstruct.harderBronze) - Smeltery.addAlloyMixing(new FluidStack(moltenBronzeFluid, TConstruct.ingotLiquidValue * 2), new FluidStack(moltenCopperFluid, TConstruct.ingotLiquidValue * 3), new FluidStack( - moltenTinFluid, TConstruct.ingotLiquidValue)); //Bronze - else - Smeltery.addAlloyMixing(new FluidStack(moltenBronzeFluid, TConstruct.ingotLiquidValue * 4), new FluidStack(moltenCopperFluid, TConstruct.ingotLiquidValue * 3), new FluidStack( - moltenTinFluid, TConstruct.ingotLiquidValue)); //Bronze - - Smeltery.addAlloyMixing(new FluidStack(moltenAlubrassFluid, TConstruct.ingotLiquidValue * 4), new FluidStack(moltenAluminumFluid, TConstruct.ingotLiquidValue * 3), new FluidStack( - moltenCopperFluid, TConstruct.ingotLiquidValue * 1)); //Aluminum Brass - Smeltery.addAlloyMixing(new FluidStack(moltenManyullynFluid, TConstruct.ingotLiquidValue), new FluidStack(moltenCobaltFluid, TConstruct.ingotLiquidValue * 2), new FluidStack( - moltenArditeFluid, TConstruct.ingotLiquidValue * 2)); //Manyullyn - Smeltery.addAlloyMixing(new FluidStack(moltenAlumiteFluid, TConstruct.ingotLiquidValue * 3), new FluidStack(moltenAluminumFluid, TConstruct.ingotLiquidValue * 5), new FluidStack( - moltenIronFluid, TConstruct.ingotLiquidValue * 2), new FluidStack(moltenObsidianFluid, TConstruct.ingotLiquidValue * 2)); //Alumite - } + //Alloy Smelting + Smeltery.addAlloyMixing(new FluidStack(moltenBronzeFluid, TConstruct.ingotLiquidValue * PHConstruct.ingotsBronzeAlloy), new FluidStack(moltenCopperFluid, TConstruct.ingotLiquidValue * 3), new FluidStack( + moltenTinFluid, TConstruct.ingotLiquidValue)); //Bronze + Smeltery.addAlloyMixing(new FluidStack(moltenAlubrassFluid, TConstruct.ingotLiquidValue * PHConstruct.ingotsAluminumBrassAlloy), new FluidStack(moltenAluminumFluid, TConstruct.ingotLiquidValue * 3), new FluidStack( + moltenCopperFluid, TConstruct.ingotLiquidValue * 1)); //Aluminum Brass + Smeltery.addAlloyMixing(new FluidStack(moltenAlumiteFluid, TConstruct.ingotLiquidValue * PHConstruct.ingotsAlumiteAlloy), new FluidStack(moltenAluminumFluid, TConstruct.ingotLiquidValue * 5), new FluidStack( + moltenIronFluid, TConstruct.ingotLiquidValue * 2), new FluidStack(moltenObsidianFluid, TConstruct.ingotLiquidValue * 2)); //Alumite + Smeltery.addAlloyMixing(new FluidStack(moltenManyullynFluid, TConstruct.ingotLiquidValue * PHConstruct.ingotsManyullynAlloy), new FluidStack(moltenCobaltFluid, TConstruct.ingotLiquidValue), new FluidStack( + moltenArditeFluid, TConstruct.ingotLiquidValue)); //Manyullyn // Stone parts for (int sc = 0; sc < patternOutputs.length; sc++) @@ -2378,16 +2359,10 @@ public class TContent implements IFuelHandler Smeltery.addDictionaryMelting("crystalline" + ft.toString(), ft, -50, TConstruct.ingotLiquidValue); // Ores - if (PHConstruct.vanillaSmelting) - Smeltery.addDictionaryMelting("ore" + ft.toString(), ft, 0, TConstruct.ingotLiquidValue); - else - Smeltery.addDictionaryMelting("ore" + ft.toString(), ft, 0, TConstruct.oreLiquidValue); + Smeltery.addDictionaryMelting("ore" + ft.toString(), ft, 0, TConstruct.ingotLiquidValue * PHConstruct.ingotsPerOre); // NetherOres support - if (PHConstruct.vanillaSmelting) - Smeltery.addDictionaryMelting("oreNether" + ft.toString(), ft, 75, TConstruct.oreLiquidValue); - else - Smeltery.addDictionaryMelting("oreNether" + ft.toString(), ft, 75, TConstruct.oreLiquidValue * 2); + Smeltery.addDictionaryMelting("oreNether" + ft.toString(), ft, 75, TConstruct.ingotLiquidValue * PHConstruct.ingotsPerOreNetherOreMod); // Blocks Smeltery.addDictionaryMelting("block" + ft.toString(), ft, 100, TConstruct.blockLiquidValue); diff --git a/src/tconstruct/util/config/PHConstruct.java b/src/tconstruct/util/config/PHConstruct.java index 4f660b71..50a6471f 100644 --- a/src/tconstruct/util/config/PHConstruct.java +++ b/src/tconstruct/util/config/PHConstruct.java @@ -40,11 +40,12 @@ public class PHConstruct /* Define the mod's IDs. * Avoid values below 4096 for items and in the 250-450 range for blocks */ + + superfunWorld = config.get("Superfun", "All the world is Superfun", false).getBoolean(false); keepHunger = config.get("Difficulty Changes", "Keep hunger on death", true).getBoolean(true); keepLevels = config.get("Difficulty Changes", "Keep levels on death", true).getBoolean(true); beginnerBook = config.get("Difficulty Changes", "Spawn beginner book", true).getBoolean(true); - superfunWorld = config.get("Superfun", "All the world is Superfun", false).getBoolean(false); enableTWood = config.get("Difficulty Changes", "Enable mod wooden tools", true).getBoolean(true); enableTStone = config.get("Difficulty Changes", "Enable mod stone tools", true).getBoolean(true); @@ -60,15 +61,17 @@ public class PHConstruct vanillaMetalBlocks = config.get("Difficulty Changes", "Craft vanilla metal blocks", true).getBoolean(true); lavaFortuneInteraction = config.get("Difficulty Changes", "Enable Auto-Smelt and Fortune interaction", true).getBoolean(true); removeVanillaToolRecipes = config.get("Difficulty Changes", "Remove Vanilla Tool Recipes", false).getBoolean(false); - harderBronze = config.get("Difficulty Changes", "Lower bronze output to 2 ingots", false).getBoolean(false); stencilTableCrafting = config.get("Difficulty Changes", "Craft Stencil Tables", true).getBoolean(true); miningLevelIncrease = config.get("Difficulty Changes", "Modifiers increase Mining Level", true).getBoolean(true); denyMattock = config.get("Difficulty Changes", "Deny creation of non-metal mattocks", false).getBoolean(false); - vanillaSmelting = config.get("Difficulty Changes", "Vanilla furnace smeltery ingot output", false, "If true ingot output lowered to 1 per ore. Could be used in accordance with mods which limit early game ore doubling.").getBoolean(false); -// harderBronze = config.get("Difficulty Changes", "Lower bronze output to 2 ingots", false).getBoolean(false); -// stencilTableCrafting = config.get("Difficulty Changes", "Craft Stencil Tables", true).getBoolean(true); -// denyMattock = config.get("Difficulty Changes", "Deny creation of non-metal mattocks", false).getBoolean(false); - + + ingotsPerOre = config.get("Smeltery Output Modification", "Ingots per ore", 2, "Number of ingots returned from smelting ores in the smeltery").getInt(2); + ingotsPerOreNetherOreMod = config.get("Smeltery Output Modification", "Ingots per ore nether ore mod", 4, "Number of ingots returned from smelting ores from the Nether Ore Mod in the smeltery").getInt(4); + ingotsBronzeAlloy = config.get("Smeltery Output Modification", "Bronze ingot return", 4, "Number of ingots returned from smelting Bronze in the smeltery").getInt(4); + ingotsAluminumBrassAlloy = config.get("Smeltery Output Modification", "Aluminum Brass ingot return", 4, "Number of ingots returned from smelting Aluminum Brass in the smeltery").getInt(4); + ingotsAlumiteAlloy = config.get("Smeltery Output Modification", "Alumite ingot return", 3, "Number of ingots returned from smelting Alumite in the smeltery").getInt(3); + ingotsManyullynAlloy = config.get("Smeltery Output Modification", "Manyullyn ingot return", 1, "Number of ingots returned from smelting Manyullyn in the smeltery").getInt(1); + //1467-1489 woodStation = config.getBlock("Wood Tool Station", 1471).getInt(1471); heldItemBlock = config.getBlock("Held Item Block", 1472).getInt(1472); @@ -678,12 +681,18 @@ public class PHConstruct public static boolean craftMetalTools; public static boolean vanillaMetalBlocks; public static boolean removeVanillaToolRecipes; - public static boolean harderBronze; - public static boolean vanillaSmelting; public static boolean stencilTableCrafting; public static boolean miningLevelIncrease; public static boolean denyMattock; + //Smeltery Output Modification + public static int ingotsPerOre; + public static int ingotsPerOreNetherOreMod; + public static int ingotsBronzeAlloy; + public static int ingotsAluminumBrassAlloy; + public static int ingotsAlumiteAlloy; + public static int ingotsManyullynAlloy; + //Ultra Hardcore modifiers public static boolean enableHealthRegen; public static boolean goldAppleRecipe;