ConstantPower.java 543 B

12345678910111213141516171819
  1. package me.km.effects.active;
  2. import me.km.KajetansMod;
  3. import me.km.effects.ActiveEffectBase;
  4. import net.minecraft.entity.player.EntityPlayerMP;
  5. public class ConstantPower extends ActiveEffectBase
  6. {
  7. @Override
  8. protected boolean executeEffect(EntityPlayerMP p, int power)
  9. {
  10. if(!KajetansMod.playerbank.getData(p).hasData("cpower"))
  11. {
  12. KajetansMod.playerbank.getData(p).addGoodTimedData("cpower", 1.3d, power * 20, " + 30 % Schaden", 62);
  13. return true;
  14. }
  15. return false;
  16. }
  17. }