Tweaked Tartaric Gem interactions.
This commit is contained in:
parent
39dbaea109
commit
3fc5a76d53
|
@ -215,7 +215,8 @@ public class ItemSoulGem extends Item implements IDemonWillGem, IMeshProvider, I
|
|||
@Override
|
||||
public int getMaxWill(EnumDemonWillType type, ItemStack soulGemStack)
|
||||
{
|
||||
if (!type.equals(getCurrentType(soulGemStack)))
|
||||
EnumDemonWillType currentType = getCurrentType(soulGemStack);
|
||||
if (!type.equals(currentType) && currentType != EnumDemonWillType.DEFAULT)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -263,7 +264,7 @@ public class ItemSoulGem extends Item implements IDemonWillGem, IMeshProvider, I
|
|||
@Override
|
||||
public double fillWill(EnumDemonWillType type, ItemStack stack, double fillAmount)
|
||||
{
|
||||
if (!type.equals(getCurrentType(stack)))
|
||||
if (!type.equals(getCurrentType(stack)) && this.getWill(getCurrentType(stack), stack) > 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@ import WayofTime.bloodmagic.compress.BaseCompressionHandler;
|
|||
import WayofTime.bloodmagic.compress.StorageBlockCraftingManager;
|
||||
import WayofTime.bloodmagic.item.ItemComponent;
|
||||
import WayofTime.bloodmagic.item.ItemDemonCrystal;
|
||||
import WayofTime.bloodmagic.item.soul.ItemSoulGem;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
@ -92,6 +93,20 @@ public class ModRecipes
|
|||
|
||||
for (int i = 1; i < BlockBloodRune.names.length; i++)
|
||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModBlocks.bloodRune), new ItemStack(ModBlocks.bloodRune, 1, i)));
|
||||
|
||||
for (int i = 0; i < ItemSoulGem.names.length; i++)
|
||||
{
|
||||
for (int j = 0; j < ItemDemonCrystal.getNames().size(); j++)
|
||||
{
|
||||
ItemStack baseGemStack = new ItemStack(ModItems.soulGem, 1, i);
|
||||
ItemStack newGemStack = new ItemStack(ModItems.soulGem, 1, i);
|
||||
|
||||
ItemStack crystalStack = new ItemStack(ModItems.itemDemonCrystal, 1, j);
|
||||
|
||||
((ItemSoulGem) ModItems.soulGem).setCurrentType(((ItemDemonCrystal) ModItems.itemDemonCrystal).getType(crystalStack), newGemStack);
|
||||
GameRegistry.addShapelessRecipe(newGemStack, baseGemStack, crystalStack);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void addAltarRecipes()
|
||||
|
|
|
@ -329,13 +329,13 @@ public class TileSoulForge extends TileInventory implements ITickable, IDemonWil
|
|||
@Override
|
||||
public boolean canFill(EnumDemonWillType type)
|
||||
{
|
||||
return type.equals(EnumDemonWillType.DEFAULT);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canDrain(EnumDemonWillType type)
|
||||
{
|
||||
return type.equals(EnumDemonWillType.DEFAULT);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -340,6 +340,12 @@ tooltip.BloodMagic.fluid.capacity=Capacity
|
|||
tooltip.BloodMagic.ghost.everything=Everything
|
||||
tooltip.BloodMagic.ghost.amount=Ghost item amount: %d
|
||||
|
||||
tooltip.BloodMagic.currentType.default=Contains: Default Will
|
||||
tooltip.BloodMagic.currentType.corrosive=Contains: Corrosive Will
|
||||
tooltip.BloodMagic.currentType.destructive=Contains: Destructive Will
|
||||
tooltip.BloodMagic.currentType.vengeful=Contains: Vengeful Will
|
||||
tooltip.BloodMagic.currentType.steadfast=Contains: Steadfast Will
|
||||
|
||||
# Ritual
|
||||
ritual.BloodMagic.testRitual=Test Ritual
|
||||
ritual.BloodMagic.waterRitual=Ritual of the Full Spring
|
||||
|
|
Loading…
Reference in a new issue