Added the Ritual of the Feathered Knife

This commit is contained in:
WayofTime 2015-12-31 19:11:58 -05:00
parent 7eee77ffe1
commit 241c0b8dda
3 changed files with 156 additions and 2 deletions

View file

@ -24,7 +24,6 @@ import javax.annotation.Nullable;
@Setter
public class SoulNetwork extends WorldSavedData
{
@Nullable
private final EntityPlayer player;
private int currentEssence;
@ -142,9 +141,9 @@ public class SoulNetwork extends WorldSavedData
public void hurtPlayer(float syphon)
{
System.out.println("Called");
if (getPlayer() != null)
{
getPlayer().addPotionEffect(new PotionEffect(Potion.confusion.getId(), 20));
if (syphon < 100 && syphon > 0)
{
if (!getPlayer().capabilities.isCreativeMode)
@ -166,4 +165,14 @@ public class SoulNetwork extends WorldSavedData
}
}
}
public void causeNauseaToPlayer()
{
System.out.println("Hai! I'm adding the bane of your existence!");
if (getPlayer() != null)
{
getPlayer().addPotionEffect(new PotionEffect(Potion.confusion.getId(), 20));
}
}
}