Reverted changes to Living Armour - waiting on change to Forge's armour to balance properly.
This commit is contained in:
parent
aa480af518
commit
7d9312b2f8
|
@ -69,17 +69,17 @@ public class ItemLivingArmour extends ItemArmor implements ISpecialArmor, IMeshP
|
|||
}
|
||||
}
|
||||
|
||||
public double getRemainderForDamage(double damage, double plating) //TODO: Add plating, which shifts the damage
|
||||
{
|
||||
if (damage <= 0)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
double protectionAmount = 1 - Math.max(3, 15 - damage / 2) / 25; //This puts the base armour protection at vanilla iron level
|
||||
|
||||
return 0;
|
||||
}
|
||||
// public double getRemainderForDamage(double damage, double plating) //TODO: Add plating, which shifts the damage
|
||||
// {
|
||||
// if (damage <= 0)
|
||||
// {
|
||||
// return 1;
|
||||
// }
|
||||
//
|
||||
// double protectionAmount = 1 - Math.max(3, 15 - damage / 2) / 25; //This puts the base armour protection at vanilla iron level
|
||||
//
|
||||
// return 0;
|
||||
// }
|
||||
|
||||
@Override
|
||||
public ArmorProperties getProperties(EntityLivingBase player, ItemStack stack, DamageSource source, double damage, int slot)
|
||||
|
|
|
@ -602,10 +602,6 @@ public class EventHandler
|
|||
{
|
||||
EntityPlayer attackedPlayer = (EntityPlayer) attackedEntity;
|
||||
|
||||
System.out.println("Damage: " + event.getAmount());
|
||||
|
||||
System.out.println("New damage: " + net.minecraftforge.common.ISpecialArmor.ArmorProperties.applyArmor(attackedPlayer, attackedPlayer.inventory.armorInventory, event.getSource(), event.getAmount()));
|
||||
|
||||
// Living Armor Handling
|
||||
if (LivingArmour.hasFullSet(attackedPlayer))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue