Added Charging Strike armour upgrade
This commit is contained in:
parent
bd36e95fc9
commit
7b94e414f8
9 changed files with 260 additions and 3 deletions
|
@ -57,6 +57,17 @@ public class LivingArmour implements ILivingArmour
|
|||
return total;
|
||||
}
|
||||
|
||||
public double getKnockbackOnHit(EntityPlayer wearer, EntityLivingBase hitEntity, ItemStack weapon)
|
||||
{
|
||||
double total = 0;
|
||||
for (Entry<String, LivingArmourUpgrade> entry : upgradeMap.entrySet())
|
||||
{
|
||||
total += entry.getValue().getKnockbackOnHit(wearer, hitEntity, weapon);
|
||||
}
|
||||
|
||||
return total;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Multimap<String, AttributeModifier> getAttributeModifiers()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue