Change Revealing upgrade to follow other upgrades

Obtained the same way as before.
This commit is contained in:
Nick 2016-02-09 18:49:38 -08:00
parent be0a93143d
commit f613c00970
6 changed files with 57 additions and 25 deletions

View file

@ -188,12 +188,6 @@ public class ItemLivingArmour extends ItemArmor implements ISpecialArmor, IRevea
}
}
if (this == ModItems.livingArmourHelmet)
{
if (stack.getTagCompound().getBoolean(Constants.Compat.THAUMCRAFT_HAS_GOGGLES))
tooltip.add(TextHelper.localizeEffect("tooltip.BloodMagic.livingArmour.hasGoggles"));
}
super.addInformation(stack, player, tooltip, advanced);
}
@ -326,16 +320,19 @@ public class ItemLivingArmour extends ItemArmor implements ISpecialArmor, IRevea
}
@Override
public boolean showIngamePopups(ItemStack stack, EntityLivingBase entityLivingBase)
{
public boolean showIngamePopups(ItemStack stack, EntityLivingBase entityLivingBase) {
stack = NBTHelper.checkNBT(stack);
return stack != null && stack.getItem() == ModItems.livingArmourHelmet && stack.getTagCompound().getBoolean(Constants.Compat.THAUMCRAFT_HAS_GOGGLES);
LivingArmour armor = getLivingArmour(stack);
return armor.upgradeMap.containsKey(Constants.Mod.MODID + ".upgrade.revealing") && LivingArmour.hasFullSet((EntityPlayer) entityLivingBase);
}
@Override
public boolean showNodes(ItemStack stack, EntityLivingBase entityLivingBase)
{
stack = NBTHelper.checkNBT(stack);
return stack != null && stack.getItem() == ModItems.livingArmourHelmet && stack.getTagCompound().getBoolean(Constants.Compat.THAUMCRAFT_HAS_GOGGLES);
LivingArmour armor = getLivingArmour(stack);
return armor.upgradeMap.containsKey(Constants.Mod.MODID + ".upgrade.revealing") && LivingArmour.hasFullSet((EntityPlayer) entityLivingBase);
}
}