Joshie commit!
This commit is contained in:
parent
87dde1cbe8
commit
d7fa34f32e
|
@ -173,4 +173,9 @@ public class AlchemyRecipe
|
|||
{
|
||||
return this.recipe;
|
||||
}
|
||||
|
||||
public int getOrbLevel()
|
||||
{
|
||||
return this.bloodOrbLevel;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ public class SpellModifier
|
|||
|
||||
private int modifier;
|
||||
|
||||
public SpellModifier(int modifier)
|
||||
protected SpellModifier(int modifier)
|
||||
{
|
||||
this.modifier = modifier;
|
||||
}
|
||||
|
|
|
@ -85,4 +85,37 @@ public abstract class SpellParadigm
|
|||
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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -90,5 +90,12 @@ public class SpellParadigmProjectile extends SpellParadigm
|
|||
proj.setEffectList(effectList);
|
||||
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
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDefaultCost()
|
||||
{
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,9 +9,16 @@ import WayofTime.alchemicalWizardry.common.spell.complex.enhancement.SpellEnhanc
|
|||
|
||||
public abstract class SpellEffect
|
||||
{
|
||||
public int modifierState = SpellModifier.DEFAULT;
|
||||
public int powerEnhancement = 0;
|
||||
public int costEnhancement = 0;
|
||||
protected int modifierState;
|
||||
protected int powerEnhancement;
|
||||
protected int costEnhancement;
|
||||
|
||||
public SpellEffect()
|
||||
{
|
||||
this.modifierState = SpellModifier.DEFAULT;
|
||||
this.powerEnhancement = 0;
|
||||
this.costEnhancement = 0;
|
||||
}
|
||||
|
||||
public void enhanceEffect(SpellEnhancement enh)
|
||||
{
|
||||
|
@ -99,10 +106,10 @@ public abstract class SpellEffect
|
|||
return 0;
|
||||
}
|
||||
|
||||
public abstract int getCostForDefaultProjectile();
|
||||
public abstract int getCostForOffenseProjectile();
|
||||
public abstract int getCostForDefenseProjectile();
|
||||
public abstract int getCostForEnvironmentProjectile();
|
||||
protected abstract int getCostForDefaultProjectile();
|
||||
protected abstract int getCostForOffenseProjectile();
|
||||
protected abstract int getCostForDefenseProjectile();
|
||||
protected abstract int getCostForEnvironmentProjectile();
|
||||
|
||||
public int getCostForSelf()
|
||||
{
|
||||
|
@ -116,10 +123,10 @@ public abstract class SpellEffect
|
|||
return 0;
|
||||
}
|
||||
|
||||
public abstract int getCostForDefaultSelf();
|
||||
public abstract int getCostForOffenseSelf();
|
||||
public abstract int getCostForDefenseSelf();
|
||||
public abstract int getCostForEnvironmentSelf();
|
||||
protected abstract int getCostForDefaultSelf();
|
||||
protected abstract int getCostForOffenseSelf();
|
||||
protected abstract int getCostForDefenseSelf();
|
||||
protected abstract int getCostForEnvironmentSelf();
|
||||
|
||||
public int getCostForMelee()
|
||||
{
|
||||
|
@ -133,8 +140,8 @@ public abstract class SpellEffect
|
|||
return 0;
|
||||
}
|
||||
|
||||
public abstract int getCostForDefaultMelee();
|
||||
public abstract int getCostForOffenseMelee();
|
||||
public abstract int getCostForDefenseMelee();
|
||||
public abstract int getCostForEnvironmentMelee();
|
||||
protected abstract int getCostForDefaultMelee();
|
||||
protected abstract int getCostForOffenseMelee();
|
||||
protected abstract int getCostForDefenseMelee();
|
||||
protected abstract int getCostForEnvironmentMelee();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue