Final push of 1.0.1!
This commit is contained in:
parent
9dc8a57a2d
commit
97b90eaf63
34 changed files with 1088 additions and 803 deletions
|
@ -1,5 +1,7 @@
|
|||
package WayofTime.alchemicalWizardry.api.rituals;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public abstract class RitualEffect
|
||||
{
|
||||
public abstract void performEffect(IMasterRitualStone ritualStone);
|
||||
|
@ -10,4 +12,6 @@ public abstract class RitualEffect
|
|||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public abstract List<RitualComponent> getRitualComponentList();
|
||||
}
|
||||
|
|
|
@ -9,7 +9,6 @@ import java.util.List;
|
|||
|
||||
public class Rituals
|
||||
{
|
||||
private List<RitualComponent> components;
|
||||
private int crystalLevel;
|
||||
private int actCost;
|
||||
private RitualEffect effect;
|
||||
|
@ -17,24 +16,14 @@ public class Rituals
|
|||
|
||||
public static List<Rituals> ritualList = new ArrayList();
|
||||
|
||||
public Rituals(List<RitualComponent> components, int crystalLevel, int actCost, RitualEffect effect, String name)
|
||||
public Rituals(int crystalLevel, int actCost, RitualEffect effect, String name)
|
||||
{
|
||||
this.components = components;
|
||||
this.crystalLevel = crystalLevel;
|
||||
this.actCost = actCost;
|
||||
this.effect = effect;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Rituals(List<RitualComponent> components, int crystalLevel, int actCost, RitualEffect effect)
|
||||
{
|
||||
this.components = components;
|
||||
this.crystalLevel = crystalLevel;
|
||||
this.actCost = actCost;
|
||||
this.effect = effect;
|
||||
this.name = "";
|
||||
}
|
||||
|
||||
public static int checkValidRitual(World world, int x, int y, int z)
|
||||
{
|
||||
for (int i = 1; i <= ritualList.size(); i++)
|
||||
|
@ -219,7 +208,7 @@ public class Rituals
|
|||
|
||||
private List<RitualComponent> obtainComponents()
|
||||
{
|
||||
return this.components;
|
||||
return this.effect.getRitualComponentList();
|
||||
}
|
||||
|
||||
private int getCrystalLevel()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue