- Added a potion effect called "(-) Immunity", which allows the training of Living Armour Downgrades. This potion is crafted using a Draft of Angelus with a potion flask. Check the uses of the flask!

- Added some more framework for the Living Armour Downgrades.
- Modified the Grim Reaper's Sprint so it is better at later levels.
This commit is contained in:
WayofTime 2016-10-02 15:03:31 -04:00
parent e5276fba6f
commit 6ea17510b7
12 changed files with 348 additions and 11 deletions

View file

@ -1,28 +1,43 @@
package WayofTime.bloodmagic.livingArmour.downgrade;
import java.util.UUID;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.attributes.AttributeModifier;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.MobEffects;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.potion.PotionEffect;
import net.minecraft.world.World;
import WayofTime.bloodmagic.api.Constants;
import WayofTime.bloodmagic.api.livingArmour.ILivingArmour;
import WayofTime.bloodmagic.api.livingArmour.LivingArmourUpgrade;
import com.google.common.collect.HashMultimap;
import com.google.common.collect.Multimap;
public class LivingArmourUpgradeSlowness extends LivingArmourUpgrade
{
public static final int[] costs = new int[] { -50 };
public static final int[] slownessDuration = new int[] { 30 * 20 };
public static final int[] costs = new int[] { -10, -17, -23, -35, -48, -60, -80, -110, -160, -200 };
public static final double[] speedModifier = new double[] { -0.1, -0.2, -0.3, -0.4, -0.45, -0.5, -0.55, -0.6, -0.65, -0.7 };
public LivingArmourUpgradeSlowness(int level)
{
super(level);
}
@Override
public Multimap<String, AttributeModifier> getAttributeModifiers()
{
Multimap<String, AttributeModifier> modifierMap = HashMultimap.<String, AttributeModifier>create();
modifierMap.put(SharedMonsterAttributes.MOVEMENT_SPEED.getAttributeUnlocalizedName(), new AttributeModifier(new UUID(85472, 8502), "speed modifier" + 2, speedModifier[this.level], 1));
return modifierMap;
}
@Override
public void onTick(World world, EntityPlayer player, ILivingArmour livingArmour)
{
player.addPotionEffect(new PotionEffect(MobEffects.SLOWNESS, 1, 0, true, false));
}
@Override
@ -34,7 +49,7 @@ public class LivingArmourUpgradeSlowness extends LivingArmourUpgrade
@Override
public int getMaxTier()
{
return 1;
return 10;
}
@Override