Removed unused debug-bool from getXPString

This commit is contained in:
Bernhard Bonigl committed 2014-07-16 14:26:03 +02:00
1 parent b43adaf08d
commit aee249bc08
4 files changed
+17 -17

No files matched your search

@@ -47,26 +47,26 @@ public class IguanaLevelingLogic {
tag.setLong(TAG_BOOST_EXP, 0);
}
public static String getXpString(ItemStack tool, boolean debug)
public static String getXpString(ItemStack tool)
{
return getXpString(tool, debug, null);
return getXpString(tool, null);
}
public static String getXpString(ItemStack tool, boolean debug, boolean pick)
public static String getXpString(ItemStack tool, boolean boostXp)
{
return getXpToolTip(tool, debug, null, pick);
return getXpToolTip(tool, null, boostXp);
}
public static String getXpString(ItemStack tool, boolean debug, NBTTagCompound tags)
public static String getXpString(ItemStack tool, NBTTagCompound tags)
{
return getXpToolTip(tool, debug, tags, false);
return getXpToolTip(tool, tags, false);
}
/**
* Returns the XP string for the ToolTip.
* @param boostXp If true, the xp for the mining level boost will be returned instead of the xp for the next tool level.
*/
public static String getXpToolTip(ItemStack tool, boolean debug, NBTTagCompound tags, boolean boostXp)
public static String getXpToolTip(ItemStack tool, NBTTagCompound tags, boolean boostXp)
{
if (tags == null) tags = tool.getTagCompound().getCompoundTag("InfiTool");
@@ -182,7 +182,7 @@ public class IguanaLevelingLogic {
// display xp if we're below max level
if (level < MAX_LEVEL)
{
tips.add(getXpString(tool, false, false));
tips.add(getXpString(tool, false));
modifierTips.add("");
}
@@ -192,7 +192,7 @@ public class IguanaLevelingLogic {
&& !tags.hasKey("HarvestLevelModified")
&& (tool.getItem() instanceof Pickaxe || tool.getItem() instanceof Hammer))
{
tips.add(getXpString(tool, false, true));
tips.add(getXpString(tool, true));
modifierTips.add("");
}
}
@@ -89,7 +89,7 @@ public class LevelingEventHandler {
toolTag.setLong("ToolEXP", 0);
if (IguanaConfig.showTooltipXP)
{
tips.add(IguanaLevelingLogic.getXpString(new ItemStack(event.tool), false, toolTag));
tips.add(IguanaLevelingLogic.getXpString(new ItemStack(event.tool), toolTag));
modifierTips.add("");
}
@@ -102,7 +102,7 @@ public class LevelingEventHandler {
{
if (IguanaConfig.showTooltipXP)
{
tips.add(IguanaLevelingLogic.getXpToolTip(new ItemStack(event.tool), false, toolTag, true));
tips.add(IguanaLevelingLogic.getXpToolTip(new ItemStack(event.tool), toolTag, true));
modifierTips.add("");
}
@@ -176,13 +176,13 @@ public class LevelingEventHandler {
if (IguanaConfig.showTooltipXP)
{
if (level <= 5)
event.left.add(IguanaLevelingLogic.getXpString(equipped, true));
event.left.add(IguanaLevelingLogic.getXpString(equipped));
if (IguanaConfig.levelingPickaxeBoost)
if (hLevel >= TConstructRegistry.getMaterial("Copper").harvestLevel() && hLevel < TConstructRegistry.getMaterial("Manyullyn").harvestLevel()
&& !tags.hasKey("HarvestLevelModified")
&& (equipped.getItem() instanceof Pickaxe || equipped.getItem() instanceof Hammer))
event.left.add(IguanaLevelingLogic.getXpString(equipped, true, true));
event.left.add(IguanaLevelingLogic.getXpString(equipped, true));
}
}
}
@@ -158,7 +158,7 @@ public class IguanaModRedstone extends ItemModifier {
int level = tags.getInteger("ToolLevel");
if (level <= 5)
{
tips.add(IguanaLevelingLogic.getXpString(tool, false, false));
tips.add(IguanaLevelingLogic.getXpString(tool, false));
modifierTips.add("");
}
@@ -169,7 +169,7 @@ public class IguanaModRedstone extends ItemModifier {
&& !tags.hasKey("HarvestLevelModified")
&& (tool.getItem() instanceof Pickaxe || tool.getItem() instanceof Hammer))
{
tips.add(IguanaLevelingLogic.getXpString(tool, false, true));
tips.add(IguanaLevelingLogic.getXpString(tool, true));
modifierTips.add("");
}
}
@@ -401,7 +401,7 @@ public class IguanaModUpgrade extends ItemModifier {
{
if (level <= 5)
{
tips.add(IguanaLevelingLogic.getXpString(tool, false, false));
tips.add(IguanaLevelingLogic.getXpString(tool, false));
modifierTips.add("");
}
@@ -411,7 +411,7 @@ public class IguanaModUpgrade extends ItemModifier {
&& !tags.hasKey("HarvestLevelModified")
&& (tool.getItem() instanceof Pickaxe || tool.getItem() instanceof Hammer))
{
tips.add(IguanaLevelingLogic.getXpString(tool, false, true));
tips.add(IguanaLevelingLogic.getXpString(tool, true));
modifierTips.add("");
}