12345678910111213141516171819 |
- package me.km.effects.active;
- import me.km.KajetansMod;
- import me.km.effects.ActiveEffectBase;
- import net.minecraft.entity.player.EntityPlayerMP;
- public class ConstantPower extends ActiveEffectBase
- {
- @Override
- protected boolean executeEffect(EntityPlayerMP p, int power)
- {
- if(!KajetansMod.playerbank.getData(p).hasData("cpower"))
- {
- KajetansMod.playerbank.getData(p).addGoodTimedData("cpower", 1.3d, power * 20, " + 30 % Schaden", 62);
- return true;
- }
- return false;
- }
- }
|