Added more to the upgrades
Added a lot of the regular upgrades, as well as added the recipe for the Binding Reagent. The rituals used for upgrading/removing upgrades for the Living Armour were also added, as well as the Ellipsoid ritual. Complete for BM 3.0.2
This commit is contained in:
parent
953bac9298
commit
7b938c28b4
14 changed files with 766 additions and 42 deletions
|
@ -2,6 +2,7 @@ package wayoftime.bloodmagic.common.item;
|
|||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
import com.google.common.collect.HashMultimap;
|
||||
import com.google.common.collect.Multimap;
|
||||
|
@ -53,6 +54,32 @@ public class ItemLivingArmor extends ArmorItem implements ILivingContainer, Expa
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getIsRepairable(ItemStack toRepair, ItemStack repair)
|
||||
{
|
||||
return repair.getItem() == BloodMagicItems.REAGENT_BINDING.get() || super.getIsRepairable(toRepair, repair);
|
||||
}
|
||||
|
||||
// @Override
|
||||
// public void setDamage(ItemStack stack, int damage)
|
||||
// {
|
||||
// this.damageItem(stack, amount, entity, onBroken)
|
||||
// if (this.slot != EquipmentSlotType.CHEST)
|
||||
// {
|
||||
// return;
|
||||
// }
|
||||
// if (damage >= this.getMaxDamage(stack))
|
||||
// {
|
||||
// super.setDamage(stack, this.getMaxDamage(stack) - 1);
|
||||
// }
|
||||
// }
|
||||
|
||||
@Override
|
||||
public <T extends LivingEntity> int damageItem(ItemStack stack, int amount, T entity, Consumer<T> onBroken)
|
||||
{
|
||||
return Math.min((stack.getMaxDamage() - 1) - stack.getDamage() - amount, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Multimap<Attribute, AttributeModifier> getAttributeModifiers(EquipmentSlotType slot, ItemStack stack)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue