Added some effects for the Crushing Ritual when affected by different types of Demon Will (balancing pending)

Also added the LP costs for the Crystal Harvest and Forsaken Souls rituals. You are welcome!
This commit is contained in:
WayofTime 2016-07-11 19:47:19 -04:00
parent c09ad83e53
commit 3dd574b1f7
7 changed files with 158 additions and 11 deletions

View file

@ -19,6 +19,7 @@ import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.TextComponentTranslation;
import net.minecraft.world.World;
import WayofTime.bloodmagic.api.soul.EnumDemonWillType;
import WayofTime.bloodmagic.demonAura.WorldDemonWillHandler;
/**
* Abstract class for creating new rituals. Rituals need be registered with
@ -286,9 +287,9 @@ public abstract class Ritual
}
}
public ITextComponent provideInformationOfRitualToPlayer(EntityPlayer player)
public ITextComponent[] provideInformationOfRitualToPlayer(EntityPlayer player)
{
return new TextComponentTranslation(this.getUnlocalizedName() + ".info");
return new ITextComponent[] { new TextComponentTranslation(this.getUnlocalizedName() + ".info") };
}
public ITextComponent provideInformationOfRangeToPlayer(EntityPlayer player, String range)
@ -350,5 +351,10 @@ public abstract class Ritual
EXPLOSION,
}
public double getWillRespectingConfig(World world, BlockPos pos, EnumDemonWillType type, List<EnumDemonWillType> willConfig)
{
return willConfig.contains(type) ? WorldDemonWillHandler.getCurrentWill(world, pos, type) : 0;
}
public abstract Ritual getNewCopy();
}