- Fixed it so that the Sentient weaponry is actually repairable using any demon will crystals in an anvil

- Changed the stat tracker for Tough Palms so that it counts number of hearts sacrificed, not number of sacrifices
This commit is contained in:
WayofTime 2016-05-12 14:51:42 -04:00
parent 328b566064
commit e363ba8ffb
5 changed files with 25 additions and 5 deletions

View file

@ -73,6 +73,12 @@ public class ItemSentientBow extends ItemBow implements IMultiWillTool//, IMeshP
});
}
@Override
public boolean getIsRepairable(ItemStack toRepair, ItemStack repair)
{
return ModItems.itemDemonCrystal == repair.getItem() ? true : super.getIsRepairable(toRepair, repair);
}
public void recalculatePowers(ItemStack stack, World world, EntityPlayer player)
{
EnumDemonWillType type = PlayerDemonWillHandler.getLargestWillType(player);

View file

@ -76,6 +76,12 @@ public class ItemSentientSword extends ItemSword implements IDemonWillWeapon, IM
setCreativeTab(BloodMagic.tabBloodMagic);
}
@Override
public boolean getIsRepairable(ItemStack toRepair, ItemStack repair)
{
return ModItems.itemDemonCrystal == repair.getItem() ? true : super.getIsRepairable(toRepair, repair);
}
public void recalculatePowers(ItemStack stack, World world, EntityPlayer player)
{
EnumDemonWillType type = PlayerDemonWillHandler.getLargestWillType(player);