12345678910111213141516171819202122 |
- package me.km.effects.active;
- import me.km.effects.ActiveEffectBase;
- import net.minecraft.entity.player.EntityPlayerMP;
- import net.minecraft.init.MobEffects;
- import net.minecraft.potion.PotionEffect;
- public class Lucky extends ActiveEffectBase
- {
- @Override
- protected boolean executeEffect(EntityPlayerMP p, int power)
- {
- p.addPotionEffect(new PotionEffect(MobEffects.LUCK, 200 + 200 * power, 9));
- return true;
- }
- @Override
- protected int getManaCost(int manaFactor)
- {
- return 3 * manaFactor;
- }
- }
|