Added growth method for the crystals.

This commit is contained in:
WayofTime 2016-02-26 22:11:28 -05:00
parent ea24e7edd8
commit 70f4c117d7
4 changed files with 147 additions and 6 deletions

View file

@ -146,6 +146,11 @@ public class ItemSoulGem extends Item implements IDemonWillGem
@Override
public double drainWill(EnumDemonWillType type, ItemStack soulGemStack, double drainAmount)
{
EnumDemonWillType currentType = this.getCurrentType(soulGemStack);
if (currentType != type)
{
return 0;
}
double souls = getWill(type, soulGemStack);
double soulsDrained = Math.min(drainAmount, souls);