2014-02-14 15:20:20 -05:00
|
|
|
package WayofTime.alchemicalWizardry.common.spell.complex.effect;
|
|
|
|
|
|
|
|
import WayofTime.alchemicalWizardry.common.spell.complex.SpellParadigmMelee;
|
|
|
|
import WayofTime.alchemicalWizardry.common.spell.complex.SpellParadigmProjectile;
|
|
|
|
import WayofTime.alchemicalWizardry.common.spell.complex.SpellParadigmSelf;
|
2014-03-07 07:02:18 -05:00
|
|
|
import WayofTime.alchemicalWizardry.common.spell.complex.effect.impactEffects.earth.MeleeDefaultEarth;
|
|
|
|
import WayofTime.alchemicalWizardry.common.spell.complex.effect.impactEffects.earth.ProjectileDefaultEarth;
|
|
|
|
import WayofTime.alchemicalWizardry.common.spell.complex.effect.impactEffects.earth.ProjectileDefensiveEarth;
|
2014-02-23 21:25:10 -05:00
|
|
|
import WayofTime.alchemicalWizardry.common.spell.complex.effect.impactEffects.earth.ProjectileEnvironmentalEarth;
|
2014-03-07 07:02:18 -05:00
|
|
|
import WayofTime.alchemicalWizardry.common.spell.complex.effect.impactEffects.earth.ProjectileOffensiveEarth;
|
2014-02-14 15:20:20 -05:00
|
|
|
|
|
|
|
public class SpellEffectEarth extends SpellEffect
|
|
|
|
{
|
|
|
|
@Override
|
|
|
|
public void defaultModificationProjectile(SpellParadigmProjectile parad)
|
|
|
|
{
|
2014-03-07 07:02:18 -05:00
|
|
|
parad.addImpactEffect(new ProjectileDefaultEarth(this.powerEnhancement, this.potencyEnhancement, this.costEnhancement));
|
2014-02-14 15:20:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void offensiveModificationProjectile(SpellParadigmProjectile parad)
|
|
|
|
{
|
2014-03-07 07:02:18 -05:00
|
|
|
parad.addImpactEffect(new ProjectileOffensiveEarth(this.powerEnhancement, this.potencyEnhancement, this.costEnhancement));
|
2014-02-14 15:20:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void defensiveModificationProjectile(SpellParadigmProjectile parad)
|
|
|
|
{
|
2014-03-07 07:02:18 -05:00
|
|
|
parad.addImpactEffect(new ProjectileDefensiveEarth(this.powerEnhancement,this.potencyEnhancement,this.costEnhancement));
|
2014-02-14 15:20:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void environmentalModificationProjectile(SpellParadigmProjectile parad)
|
|
|
|
{
|
2014-02-23 21:25:10 -05:00
|
|
|
parad.addUpdateEffect(new ProjectileEnvironmentalEarth(this.powerEnhancement,this.potencyEnhancement,this.costEnhancement));
|
2014-02-14 15:20:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void defaultModificationSelf(SpellParadigmSelf parad)
|
|
|
|
{
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void offensiveModificationSelf(SpellParadigmSelf parad)
|
|
|
|
{
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void defensiveModificationSelf(SpellParadigmSelf parad)
|
|
|
|
{
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void environmentalModificationSelf(SpellParadigmSelf parad)
|
|
|
|
{
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void defaultModificationMelee(SpellParadigmMelee parad)
|
|
|
|
{
|
2014-03-07 07:02:18 -05:00
|
|
|
parad.addWorldEffect(new MeleeDefaultEarth(this.powerEnhancement, this.potencyEnhancement, this.costEnhancement));
|
2014-02-14 15:20:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void offensiveModificationMelee(SpellParadigmMelee parad)
|
|
|
|
{
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void defensiveModificationMelee(SpellParadigmMelee parad)
|
|
|
|
{
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void environmentalModificationMelee(SpellParadigmMelee parad)
|
|
|
|
{
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected int getCostForDefaultProjectile()
|
|
|
|
{
|
2014-03-07 07:02:18 -05:00
|
|
|
return (int)(10*Math.pow((0.5*(this.powerEnhancement)+1)*2 + 1,3)*Math.pow(0.8, costEnhancement));
|
2014-02-14 15:20:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected int getCostForOffenseProjectile()
|
|
|
|
{
|
2014-03-07 07:02:18 -05:00
|
|
|
|
|
|
|
return (int)(3*(1.5*this.potencyEnhancement+1)*(Math.pow(1*this.powerEnhancement+1,2))*Math.pow(0.8, costEnhancement));
|
2014-02-14 15:20:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected int getCostForDefenseProjectile()
|
|
|
|
{
|
2014-03-07 07:02:18 -05:00
|
|
|
return (int)(3*Math.pow((this.powerEnhancement*2+1),2)*(this.potencyEnhancement*2+1)*Math.pow(0.8, costEnhancement));
|
2014-02-14 15:20:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected int getCostForEnvironmentProjectile()
|
|
|
|
{
|
2014-03-07 07:02:18 -05:00
|
|
|
return (int)(10*2*(0.1d*(this.potencyEnhancement+1))*Math.pow(3.47,this.potencyEnhancement)*Math.pow(0.8, costEnhancement));
|
2014-02-14 15:20:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected int getCostForDefaultSelf()
|
|
|
|
{
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected int getCostForOffenseSelf()
|
|
|
|
{
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected int getCostForDefenseSelf()
|
|
|
|
{
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected int getCostForEnvironmentSelf()
|
|
|
|
{
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected int getCostForDefaultMelee()
|
|
|
|
{
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected int getCostForOffenseMelee()
|
|
|
|
{
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected int getCostForDefenseMelee()
|
|
|
|
{
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected int getCostForEnvironmentMelee()
|
|
|
|
{
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|