mirror of
https://github.com/GTNewHorizons/Avaritia.git
synced 2026-11-20 20:22:18 +00:00
Tag Orb of Armok as creative. (#53)
This commit is contained in:
1 parent
008382ef29
commit
7aa1ae38a7
3 files changed
+22
-16
No files matched your search
@@ -41,18 +41,17 @@ public class ItemOrbArmok extends Item implements IBloodOrb, IBindable {
|
||||
NBTTagCompound itemTag = stack.stackTagCompound;
|
||||
if (itemTag == null || itemTag.getString("ownerName").equals("")) return;
|
||||
|
||||
SoulNetworkHandler.setCurrentEssence(itemTag.getString("ownerName"), getMaxEssence());
|
||||
SoulNetworkHandler
|
||||
.addCurrentEssenceToMaximum(itemTag.getString("ownerName"), Integer.MAX_VALUE, getMaxEssence());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack item, EntityPlayer player, List<String> tooltip, boolean wut) {
|
||||
tooltip.add(StatCollector.translateToLocal("tooltip.armok.desc"));
|
||||
if (item.getTagCompound() != null) {
|
||||
tooltip.add(
|
||||
StatCollector.translateToLocal("tooltip.owner.currentowner") + " "
|
||||
+ item.getTagCompound().getString("ownerName"));
|
||||
}
|
||||
tooltip.add(StatCollector.translateToLocal("tooltip.armok.desc2"));
|
||||
tooltip.add(StatCollector.translateToLocalFormatted("tooltip.armok.capacity", getMaxEssence()));
|
||||
addBindingInformation(item, tooltip);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -65,6 +64,11 @@ public class ItemOrbArmok extends Item implements IBloodOrb, IBindable {
|
||||
return 6;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFilledForFree() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumRarity getRarity(ItemStack itemstack) {
|
||||
return LudicrousItems.cosmic;
|
||||
|
||||
Reference in new issue
Block a user