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:
parent
75d9a84194
commit
c42bc12e69
4 changed files with 132 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue