Joshie commit!
This commit is contained in:
parent
87dde1cbe8
commit
d7fa34f32e
|
@ -173,4 +173,9 @@ public class AlchemyRecipe
|
||||||
{
|
{
|
||||||
return this.recipe;
|
return this.recipe;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getOrbLevel()
|
||||||
|
{
|
||||||
|
return this.bloodOrbLevel;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ public class SpellModifier
|
||||||
|
|
||||||
private int modifier;
|
private int modifier;
|
||||||
|
|
||||||
public SpellModifier(int modifier)
|
protected SpellModifier(int modifier)
|
||||||
{
|
{
|
||||||
this.modifier = modifier;
|
this.modifier = modifier;
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,4 +85,37 @@ public abstract class SpellParadigm
|
||||||
return bufferedEffectList.get(bufferedEffectList.size()-1);
|
return bufferedEffectList.get(bufferedEffectList.size()-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getTotalCost()
|
||||||
|
{
|
||||||
|
int cost = 0;
|
||||||
|
if(this.bufferedEffectList!=null && !this.bufferedEffectList.isEmpty())
|
||||||
|
{
|
||||||
|
if(this instanceof SpellParadigmProjectile)
|
||||||
|
{
|
||||||
|
for(SpellEffect effect : bufferedEffectList)
|
||||||
|
{
|
||||||
|
cost+=effect.getCostForProjectile();
|
||||||
|
}
|
||||||
|
}else if(this instanceof SpellParadigmSelf)
|
||||||
|
{
|
||||||
|
for(SpellEffect effect : bufferedEffectList)
|
||||||
|
{
|
||||||
|
cost+=effect.getCostForSelf();
|
||||||
|
}
|
||||||
|
}else if(this instanceof SpellParadigmMelee)
|
||||||
|
{
|
||||||
|
for(SpellEffect effect : bufferedEffectList)
|
||||||
|
{
|
||||||
|
cost+=effect.getCostForMelee();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
return cost;
|
||||||
|
}
|
||||||
|
|
||||||
|
public abstract int getDefaultCost();
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,4 +22,11 @@ public class SpellParadigmMelee extends SpellParadigm
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getDefaultCost()
|
||||||
|
{
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,4 +91,11 @@ public class SpellParadigmProjectile extends SpellParadigm
|
||||||
proj.setRicochetMax(ricochetMax);
|
proj.setRicochetMax(ricochetMax);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getDefaultCost()
|
||||||
|
{
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
return 50;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,4 +19,11 @@ public class SpellParadigmSelf extends SpellParadigm
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getDefaultCost()
|
||||||
|
{
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,9 +9,16 @@ import WayofTime.alchemicalWizardry.common.spell.complex.enhancement.SpellEnhanc
|
||||||
|
|
||||||
public abstract class SpellEffect
|
public abstract class SpellEffect
|
||||||
{
|
{
|
||||||
public int modifierState = SpellModifier.DEFAULT;
|
protected int modifierState;
|
||||||
public int powerEnhancement = 0;
|
protected int powerEnhancement;
|
||||||
public int costEnhancement = 0;
|
protected int costEnhancement;
|
||||||
|
|
||||||
|
public SpellEffect()
|
||||||
|
{
|
||||||
|
this.modifierState = SpellModifier.DEFAULT;
|
||||||
|
this.powerEnhancement = 0;
|
||||||
|
this.costEnhancement = 0;
|
||||||
|
}
|
||||||
|
|
||||||
public void enhanceEffect(SpellEnhancement enh)
|
public void enhanceEffect(SpellEnhancement enh)
|
||||||
{
|
{
|
||||||
|
@ -99,10 +106,10 @@ public abstract class SpellEffect
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract int getCostForDefaultProjectile();
|
protected abstract int getCostForDefaultProjectile();
|
||||||
public abstract int getCostForOffenseProjectile();
|
protected abstract int getCostForOffenseProjectile();
|
||||||
public abstract int getCostForDefenseProjectile();
|
protected abstract int getCostForDefenseProjectile();
|
||||||
public abstract int getCostForEnvironmentProjectile();
|
protected abstract int getCostForEnvironmentProjectile();
|
||||||
|
|
||||||
public int getCostForSelf()
|
public int getCostForSelf()
|
||||||
{
|
{
|
||||||
|
@ -116,10 +123,10 @@ public abstract class SpellEffect
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract int getCostForDefaultSelf();
|
protected abstract int getCostForDefaultSelf();
|
||||||
public abstract int getCostForOffenseSelf();
|
protected abstract int getCostForOffenseSelf();
|
||||||
public abstract int getCostForDefenseSelf();
|
protected abstract int getCostForDefenseSelf();
|
||||||
public abstract int getCostForEnvironmentSelf();
|
protected abstract int getCostForEnvironmentSelf();
|
||||||
|
|
||||||
public int getCostForMelee()
|
public int getCostForMelee()
|
||||||
{
|
{
|
||||||
|
@ -133,8 +140,8 @@ public abstract class SpellEffect
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract int getCostForDefaultMelee();
|
protected abstract int getCostForDefaultMelee();
|
||||||
public abstract int getCostForOffenseMelee();
|
protected abstract int getCostForOffenseMelee();
|
||||||
public abstract int getCostForDefenseMelee();
|
protected abstract int getCostForDefenseMelee();
|
||||||
public abstract int getCostForEnvironmentMelee();
|
protected abstract int getCostForEnvironmentMelee();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue