More spells
This commit is contained in:
parent
5c6a5d0c0b
commit
ba19b04154
14 changed files with 233 additions and 45 deletions
|
@ -9,6 +9,7 @@ import net.minecraft.item.ItemStack;
|
|||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.world.World;
|
||||
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellEffect;
|
||||
import WayofTime.alchemicalWizardry.common.spell.complex.enhancement.SpellEnhancement;
|
||||
|
||||
public class SpellParadigmProjectile extends SpellParadigm
|
||||
{
|
||||
|
@ -18,7 +19,7 @@ public class SpellParadigmProjectile extends SpellParadigm
|
|||
public List<IProjectileImpactEffect> impactList = new ArrayList();
|
||||
public List<IProjectileUpdateEffect> updateEffectList = new ArrayList();
|
||||
public boolean penetration = false;
|
||||
|
||||
public int ricochetMax = 0;
|
||||
|
||||
@Override
|
||||
public void enhanceParadigm(SpellEnhancement enh)
|
||||
|
@ -31,7 +32,8 @@ public class SpellParadigmProjectile extends SpellParadigm
|
|||
public void castSpell(World world, EntityPlayer entityPlayer, ItemStack itemStack)
|
||||
{
|
||||
EntitySpellProjectile proj = new EntitySpellProjectile(world, entityPlayer);
|
||||
|
||||
this.prepareProjectile(proj);
|
||||
world.spawnEntityInWorld(proj);
|
||||
}
|
||||
|
||||
public static SpellParadigmProjectile getParadigmForStringArray(List<String> stringList)
|
||||
|
@ -86,6 +88,7 @@ public class SpellParadigmProjectile extends SpellParadigm
|
|||
proj.setUpdateEffectList(updateEffectList);
|
||||
proj.setPenetration(penetration);
|
||||
proj.setEffectList(effectList);
|
||||
proj.setRicochetMax(ricochetMax);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue