Temporary (?) durability bar for will full-ness
This commit is contained in:
parent
2d382ffaa9
commit
7f434d7f3e
|
@ -42,15 +42,11 @@ public class ItemSoulGem extends Item implements IDemonWillGem
|
|||
{
|
||||
for (int i = 0; i < names.length; i++)
|
||||
{
|
||||
ItemStack stack = new ItemStack(this, 1, i);
|
||||
list.add(stack);
|
||||
}
|
||||
|
||||
for (int i = 0; i < names.length; i++)
|
||||
{
|
||||
ItemStack stack = new ItemStack(this, 1, i);
|
||||
this.setWill(stack, this.getMaxWill(stack));
|
||||
list.add(stack);
|
||||
ItemStack emptyStack = new ItemStack(this, 1, i);
|
||||
ItemStack fullStack = new ItemStack(this, 1, i);
|
||||
setWill(fullStack, getMaxWill(fullStack));
|
||||
list.add(emptyStack);
|
||||
list.add(fullStack);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -64,6 +60,18 @@ public class ItemSoulGem extends Item implements IDemonWillGem
|
|||
super.addInformation(stack, player, tooltip, advanced);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean showDurabilityBar(ItemStack stack)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getDurabilityForDisplay(ItemStack stack)
|
||||
{
|
||||
return 1.0 - (getWill(stack) / (double) getMaxWill(stack));
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack fillDemonWillGem(ItemStack soulGemStack, ItemStack soulStack)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue