mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-23 21:49:45 +00:00
Balance Additions (#53)
-Added Clay Patterns: Single use patterns for smeltery that supports only tools not requiring a tool forge. Currently unobtainable since I'll leave that to modpack creators. -Added Molten Quartz: A useful material for gating stuff behind the nether. Just melt quartz or quartz block.
This commit is contained in:
1 parent
1789e14270
commit
18bfeaff32
49 files changed
+259
-12
No files matched your search
@@ -47,6 +47,7 @@ import tconstruct.weaponry.entity.*;
|
||||
import tconstruct.weaponry.items.Boneana;
|
||||
import tconstruct.weaponry.items.GlassArrows;
|
||||
import tconstruct.weaponry.items.WeaponryPattern;
|
||||
import tconstruct.weaponry.items.WeaponryPatternClay;
|
||||
import tconstruct.library.weaponry.AmmoItem;
|
||||
import tconstruct.library.weaponry.AmmoWeapon;
|
||||
import tconstruct.library.weaponry.ArrowShaftMaterial;
|
||||
@@ -93,6 +94,8 @@ public class TinkerWeaponry {
|
||||
// patterns/casts
|
||||
public static Pattern woodPattern;
|
||||
public static Pattern metalPattern;
|
||||
public static Pattern clayPattern;
|
||||
|
||||
|
||||
// legendary weapons?
|
||||
public static GlassArrows glassArrows;
|
||||
@@ -189,6 +192,8 @@ public class TinkerWeaponry {
|
||||
|
||||
woodPattern = new WeaponryPattern("pattern_", "Pattern");
|
||||
metalPattern = new WeaponryPattern("cast_", "MetalPattern");
|
||||
clayPattern = new WeaponryPatternClay("clay_cast_", "ClayPattern");
|
||||
|
||||
|
||||
// register tool parts
|
||||
GameRegistry.registerItem(bowstring, "bowstring"); // 1.8 todo: rename properly?
|
||||
@@ -213,6 +218,8 @@ public class TinkerWeaponry {
|
||||
// register patterns/casts
|
||||
GameRegistry.registerItem(woodPattern, "Pattern");
|
||||
GameRegistry.registerItem(metalPattern, "Cast");
|
||||
GameRegistry.registerItem(clayPattern, "Clay Cast");
|
||||
|
||||
}
|
||||
|
||||
private void addPartRecipies()
|
||||
@@ -256,9 +263,10 @@ public class TinkerWeaponry {
|
||||
LiquidCasting tableCasting = TConstructRegistry.getTableCasting();
|
||||
for (int i = 0; i < patternOutputs.length; i++) {
|
||||
ItemStack cast = new ItemStack(metalPattern, 1, i);
|
||||
|
||||
ItemStack clay_cast = new ItemStack(clayPattern, 1, i);
|
||||
|
||||
tableCasting.addCastingRecipe(cast, new FluidStack(TinkerSmeltery.moltenAlubrassFluid, TConstruct.ingotLiquidValue), new ItemStack(patternOutputs[i], 1, Short.MAX_VALUE), false, 50);
|
||||
if (!PHConstruct.removeGoldCastRecipes)
|
||||
if (!PHConstruct.removeGoldCastRecipes)
|
||||
tableCasting.addCastingRecipe(cast, new FluidStack(TinkerSmeltery.moltenGoldFluid, TConstruct.ingotLiquidValue * 2), new ItemStack(patternOutputs[i], 1, Short.MAX_VALUE), false, 50);
|
||||
|
||||
for (int iterTwo = 0; iterTwo < TinkerSmeltery.liquids.length; iterTwo++) {
|
||||
@@ -266,11 +274,14 @@ public class TinkerWeaponry {
|
||||
int fluidAmount = metalPattern.getPatternCost(cast) * TConstruct.ingotLiquidValue / 2;
|
||||
ItemStack metalCast = new ItemStack(patternOutputs[i], 1, liquidDamage[iterTwo]);
|
||||
tableCasting.addCastingRecipe(metalCast, new FluidStack(fs, fluidAmount), cast, 50);
|
||||
tableCasting.addCastingRecipe(metalCast, new FluidStack(fs, fluidAmount), clay_cast, true, 50);
|
||||
Smeltery.addMelting(FluidType.getFluidType(fs), metalCast, 0, fluidAmount);
|
||||
}
|
||||
}
|
||||
|
||||
ItemStack cast = new ItemStack(TinkerSmeltery.metalPattern, 1, 25);
|
||||
ItemStack clay_cast = new ItemStack(TinkerSmeltery.clayPattern, 1, 25);
|
||||
|
||||
tableCasting.addCastingRecipe(cast, new FluidStack(TinkerSmeltery.moltenAlubrassFluid, TConstruct.ingotLiquidValue), new ItemStack(arrowhead, 1, Short.MAX_VALUE), false, 50);
|
||||
if (!PHConstruct.removeGoldCastRecipes)
|
||||
tableCasting.addCastingRecipe(cast, new FluidStack(TinkerSmeltery.moltenGoldFluid, TConstruct.ingotLiquidValue * 2), new ItemStack(arrowhead, 1, Short.MAX_VALUE), false, 50);
|
||||
@@ -280,6 +291,7 @@ public class TinkerWeaponry {
|
||||
int fluidAmount = ((IPattern) TinkerSmeltery.metalPattern).getPatternCost(cast) * TConstruct.ingotLiquidValue / 2;
|
||||
ItemStack metalCast = new ItemStack(arrowhead, 1, liquidDamage[iterTwo]);
|
||||
tableCasting.addCastingRecipe(metalCast, new FluidStack(fs, fluidAmount), cast, 50);
|
||||
tableCasting.addCastingRecipe(metalCast, new FluidStack(fs, fluidAmount), clay_cast, true, 50);
|
||||
Smeltery.addMelting(FluidType.getFluidType(fs), metalCast, 0, fluidAmount);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
package tconstruct.weaponry.items;
|
||||
|
||||
import tconstruct.util.Reference;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import tconstruct.tools.items.Pattern;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class WeaponryPatternClay extends Pattern {
|
||||
private static final String[] patternName = new String[] { "", "", "", "bowlimb" };
|
||||
|
||||
public WeaponryPatternClay(String patternType, String name) {
|
||||
super(patternName, getPatternNames(patternName, patternType), "patterns/");
|
||||
|
||||
this.setUnlocalizedName(Reference.prefix(name));
|
||||
}
|
||||
|
||||
public static String[] getPatternNames (String[] patternName, String partType)
|
||||
{
|
||||
String[] names = new String[patternName.length];
|
||||
for (int i = 0; i < patternName.length; i++)
|
||||
if (!(patternName[i].equals("")))
|
||||
names[i] = partType + patternName[i];
|
||||
else
|
||||
names[i] = "";
|
||||
return names;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getSubItems (Item b, CreativeTabs tab, List list)
|
||||
{
|
||||
for (int i = 0; i < patternName.length; i++)
|
||||
{
|
||||
// if (i != 23)
|
||||
if (!(patternName[i].equals("")))
|
||||
list.add(new ItemStack(b, 1, i));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int getPatternCost(ItemStack pattern) {
|
||||
switch(pattern.getItemDamage())
|
||||
{
|
||||
case 0: return 1; // shuriken
|
||||
case 1: return 8; // crossbow limb
|
||||
case 2: return 10; // crossbow body
|
||||
case 3: return 3; // bowlimb
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user