mirror of
https://github.com/GTNewHorizons/Avaritia.git
synced 2026-11-22 21:20:13 +00:00
UNLIMITED BALANCE!!!!
https: //github.com/SpitefulFox/Avaritia/commit/ed0741f20c2606eaba3835f713ee5780d7a8cd89 Co-Authored-By: SpitefulFox <[email protected]>
This commit is contained in:
1 parent
1dda8774c1
commit
460b62f32e
6 files changed
+41
-7
No files matched your search
@@ -51,6 +51,7 @@ public class Config {
|
||||
public static boolean steel = true;
|
||||
public static boolean nickel = true;
|
||||
public static boolean enderium = true;
|
||||
public static boolean ultimateBalance = true;
|
||||
|
||||
public static int modifier = 0;
|
||||
public static int multiplier = 0;
|
||||
@@ -107,6 +108,7 @@ public class Config {
|
||||
steel = conf.get("materials", "Steel", true).getBoolean(true);
|
||||
enderium = conf.get("materials", "Enderium", true).getBoolean(true);
|
||||
darksteel = conf.get("compatibility", "DarkSteel", true).getBoolean(true);
|
||||
ultimateBalance = conf.get("materials", "Clay", true).getBoolean(true);
|
||||
|
||||
modifier = conf.get("balance!", "Cost Modifier", 0, "Added to the existing modifier to make prices more expensive or cheaper. Can be negative.").getInt(0);
|
||||
multiplier = conf.get("balance!", "Cost Multiplier", 0, "Added to the existing multiplier to make prices more expensive or cheaper. Can be negative.").getInt(0);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package fox.spiteful.avaritia.crafting;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import fox.spiteful.avaritia.Config;
|
||||
import fox.spiteful.avaritia.blocks.LudicrousBlocks;
|
||||
@@ -48,6 +49,8 @@ public class Grinder {
|
||||
GameRegistry.addShapedRecipe(new ItemStack(LudicrousItems.resource, 9, 4), "C", 'C', new ItemStack(LudicrousBlocks.resource_block, 1, 0));
|
||||
GameRegistry.addShapedRecipe(new ItemStack(LudicrousBlocks.resource_block, 1, 1), "CCC", "CCC", "CCC", 'C', new ItemStack(LudicrousItems.resource, 1, 6));
|
||||
GameRegistry.addShapedRecipe(new ItemStack(LudicrousItems.resource, 9, 6), "C", 'C', new ItemStack(LudicrousBlocks.resource_block, 1, 1));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(LudicrousItems.resource, 13, 8), "CIC", "ICI", "CIC", 'C', new ItemStack(Blocks.coal_block, 1), 'I', new ItemStack(LudicrousItems.resource, 1, 1));
|
||||
|
||||
ExtremeCraftingManager.getInstance().addRecipe(new ItemStack(LudicrousBlocks.neutron_collector, 1),
|
||||
"IIQQQQQII",
|
||||
@@ -323,5 +326,10 @@ public class Grinder {
|
||||
if(Config.darksteel && !OreDictionary.getOres("blockDarkSteel").isEmpty()){
|
||||
catalyst.getInput().add(OreDictionary.getOres("blockDarkSteel"));
|
||||
}
|
||||
|
||||
if(Config.ultimateBalance && (Loader.isModLoaded("Botania") || Loader.isModLoaded("Mekanism"))) {
|
||||
catalyst.getInput().add(new ItemStack(LudicrousItems.singularity, 1, 11));
|
||||
CompressorManager.addRecipe(new ItemStack(LudicrousItems.singularity, 1, 11), 150, new ItemStack(Items.clay_ball, 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -24,7 +24,7 @@ import java.util.List;
|
||||
public class ItemResource extends Item implements IHaloRenderItem {
|
||||
|
||||
private static final String[] types = new String[]{"diamond_lattice", "crystal_matrix_ingot", "neutron_pile",
|
||||
"neutron_nugget", "neutronium_ingot", "infinity_catalyst", "infinity_ingot", "record_fragment"};
|
||||
"neutron_nugget", "neutronium_ingot", "infinity_catalyst", "infinity_ingot", "record_fragment", "starfuel"};
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon[] icons;
|
||||
@@ -56,7 +56,7 @@ public class ItemResource extends Item implements IHaloRenderItem {
|
||||
public void addInformation(ItemStack item, EntityPlayer player, List tooltip, boolean wut) {
|
||||
|
||||
int meta = item.getItemDamage();
|
||||
if (meta != 0) {
|
||||
if (meta != 0 && meta != 8) {
|
||||
tooltip.add(EnumChatFormatting.DARK_GRAY +""+ EnumChatFormatting.ITALIC + StatCollector.translateToLocal("tooltip."+types[meta]+".desc"));
|
||||
}
|
||||
}
|
||||
@@ -91,6 +91,7 @@ public class ItemResource extends Item implements IHaloRenderItem {
|
||||
return EnumRarity.uncommon;
|
||||
case 1:
|
||||
case 4:
|
||||
case 8:
|
||||
return EnumRarity.rare;
|
||||
case 5:
|
||||
return EnumRarity.epic;
|
||||
@@ -105,7 +106,7 @@ public class ItemResource extends Item implements IHaloRenderItem {
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean drawHalo(ItemStack stack) {
|
||||
int meta = stack.getItemDamage();
|
||||
return (meta >= 2 && meta <= 6);
|
||||
return (meta >= 2 && meta <= 6) || meta == 8;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -3,25 +3,28 @@ package fox.spiteful.avaritia.items;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import fox.spiteful.avaritia.Avaritia;
|
||||
import fox.spiteful.avaritia.LudicrousText;
|
||||
import fox.spiteful.avaritia.render.IHaloRenderItem;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.EnumRarity;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class ItemSingularity extends Item implements IHaloRenderItem {
|
||||
|
||||
public static final String[] types = new String[]{"iron", "gold", "lapis", "redstone", "quartz", "copper",
|
||||
"tin", "lead", "silver", "nickel", "enderium"};
|
||||
"tin", "lead", "silver", "nickel", "enderium", "clay"};
|
||||
public static final int[] colors = new int[]{0xBFBFBF, 0xE8EF23, 0x5a82e2, 0xDF0000, 0xeeebe6, 0xE47200,
|
||||
0xA5C7DE, 0x444072, 0xF9F9F9, 0xDEE187, 0x47736d};
|
||||
0xA5C7DE, 0x444072, 0xF9F9F9, 0xDEE187, 0x47736d, 0x8890AD};
|
||||
public static final int[] colors2 = new int[]{0x7F7F7F, 0xdba213, 0x224baf, 0x900000, 0x94867d, 0x89511A,
|
||||
0x9BA9B2, 0x3E3D4E, 0xD5D5D5, 0xC4C698, 0x1a3732};
|
||||
0x9BA9B2, 0x3E3D4E, 0xD5D5D5, 0xC4C698, 0x1a3732, 0x666B7F};
|
||||
public static IIcon background;
|
||||
public static IIcon foreground;
|
||||
|
||||
@@ -80,9 +83,23 @@ public class ItemSingularity extends Item implements IHaloRenderItem {
|
||||
@Override
|
||||
public EnumRarity getRarity(ItemStack stack)
|
||||
{
|
||||
if(stack.getItemDamage() == 10)
|
||||
return LudicrousItems.cosmic;
|
||||
return EnumRarity.uncommon;
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
@Override
|
||||
public void addInformation(ItemStack item, EntityPlayer player, List tooltip, boolean wut) {
|
||||
|
||||
int meta = item.getItemDamage();
|
||||
if (meta == 10) {
|
||||
//tooltip.add(EnumChatFormatting.DARK_GRAY +""+ EnumChatFormatting.ITALIC + StatCollector.translateToLocal("tooltip.claybalance.desc"));
|
||||
tooltip.add(LudicrousText.makeFabulous(StatCollector.translateToLocal("tooltip.claybalance.desc")));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean drawHalo(ItemStack stack) {
|
||||
@@ -98,7 +115,9 @@ public class ItemSingularity extends Item implements IHaloRenderItem {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public int getHaloSize(ItemStack stack) {
|
||||
return 4;
|
||||
if(stack.getItemDamage() == 10)
|
||||
return 8;
|
||||
return 4;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user