Added the Regeneration ritual. Added localization for ritual activation. Removed the cost of activating a ritual when in creative mode.

This commit is contained in:
WayofTime 2016-01-01 13:59:56 -05:00
parent 75d9a84194
commit c42bc12e69
4 changed files with 132 additions and 2 deletions

View file

@ -94,7 +94,7 @@ public class TileMasterRitualStone extends TileEntity implements IMasterRitualSt
{
SoulNetwork network = NetworkHelper.getSoulNetwork(crystalOwner);
if (network.getCurrentEssence() < ritual.getActivationCost())
if (network.getCurrentEssence() < ritual.getActivationCost() && !activator.capabilities.isCreativeMode)
{
ChatUtil.sendNoSpamUnloc(activator, "chat.BloodMagic.ritual.weak");
return false;
@ -113,7 +113,11 @@ public class TileMasterRitualStone extends TileEntity implements IMasterRitualSt
if (ritual.activateRitual(this, activator))
{
network.syphon(ritual.getActivationCost());
if (!activator.capabilities.isCreativeMode)
{
network.syphon(ritual.getActivationCost());
}
ChatUtil.sendNoSpamUnloc(activator, "chat.BloodMagic.ritual.activate");
this.active = true;
// Set the owner of the ritual to the crystal's owner