Added growth method for the crystals.
This commit is contained in:
parent
ea24e7edd8
commit
70f4c117d7
4 changed files with 147 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue