Fixed the projectile so that it actually work
Amazing, eh?
This commit is contained in:
parent
112b4e6b53
commit
eb46185dc8
8 changed files with 93 additions and 113 deletions
|
@ -55,48 +55,4 @@ public class SpellParadigmSelf extends SpellParadigm
|
|||
return 100;
|
||||
}
|
||||
|
||||
public static SpellParadigmSelf getParadigmForStringArray(List<String> stringList)
|
||||
{
|
||||
SpellParadigmSelf parad = new SpellParadigmSelf();
|
||||
|
||||
try
|
||||
{
|
||||
for(String str : stringList)
|
||||
{
|
||||
Class clazz = Class.forName(str);
|
||||
if(clazz!=null)
|
||||
{
|
||||
Object obj = clazz.newInstance();
|
||||
|
||||
if(obj instanceof SpellEffect)
|
||||
{
|
||||
parad.addBufferedEffect((SpellEffect)obj);
|
||||
continue;
|
||||
}
|
||||
if(obj instanceof SpellModifier)
|
||||
{
|
||||
parad.modifyBufferedEffect((SpellModifier)obj);
|
||||
continue;
|
||||
}
|
||||
if(obj instanceof SpellEnhancement)
|
||||
{
|
||||
parad.applyEnhancement((SpellEnhancement)obj);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} catch (InstantiationException e) {
|
||||
|
||||
e.printStackTrace();
|
||||
} catch (IllegalAccessException e) {
|
||||
|
||||
e.printStackTrace();
|
||||
} catch (ClassNotFoundException e) {
|
||||
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return parad;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue