Miscellaneous cleanup and commenting

This commit is contained in:
Electroblob
2018-06-24 16:08:28 +01:00
parent 76473f7185
commit 55ae4b1161
13 changed files with 35 additions and 14 deletions
@@ -23,6 +23,7 @@ import net.minecraft.world.World;
public class Wither extends SpellRay {
private static final int BASE_DURATION = 200;
private static final int BASE_DAMAGE = 1;
public Wither(){
super("wither", Tier.APPRENTICE, Element.NECROMANCY, SpellType.ATTACK, 10, 20, false, 10, SoundEvents.ENTITY_WITHER_HURT);
@@ -40,7 +41,7 @@ public class Wither extends SpellRay {
this.getNameForTranslationFormatted()));
}else{
target.attackEntityFrom(MagicDamage.causeDirectMagicDamage(caster, DamageType.WITHER),
1.0f * modifiers.get(SpellModifiers.POTENCY));
BASE_DAMAGE * modifiers.get(SpellModifiers.POTENCY));
((EntityLivingBase)target).addPotionEffect(new PotionEffect(MobEffects.WITHER,
(int)(BASE_DURATION * modifiers.get(WizardryItems.duration_upgrade)), 1));
}