Added the Forestry API

This commit is contained in:
WayofTime 2015-05-11 13:12:56 -04:00
parent 69aeb4a813
commit 2cc9d3a53a
202 changed files with 7108 additions and 35 deletions

View file

@ -10,7 +10,7 @@ import WayofTime.alchemicalWizardry.api.tile.IBloodAltar;
public class PlayerSacrificeHandler
{
public static float scalingOfSacrifice = 0.0025f;
public static float scalingOfSacrifice = 0.001f;
public static int soulFrayDuration = 400;
public static float getPlayerIncense(EntityPlayer player)
{
@ -22,7 +22,7 @@ public class PlayerSacrificeHandler
APISpellHelper.setCurrentIncense(player, amount);
}
public static boolean incrementIncense(EntityPlayer player, float min, float max)
public static boolean incrementIncense(EntityPlayer player, float min, float max, float increment)
{
float amount = getPlayerIncense(player);
if(amount < min || amount >= max)
@ -30,7 +30,7 @@ public class PlayerSacrificeHandler
return false;
}
amount++;
amount = amount + Math.max(increment, max - amount);
setPlayerIncense(player, amount);
return true;