mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-10-26 14:33:50 +00:00
commit
fdc3fc09df
3 files changed
+11
-8
No files matched your search
@@ -726,6 +726,7 @@ gui.partcrafter7=Mining Level:
|
||||
gui.partcrafter8= Heart
|
||||
gui.partcrafter9= Hearts
|
||||
gui.partcrafter10=Attack:
|
||||
gui.partcrafter11=Full Durability:
|
||||
gui.stenciltable1=Next Pattern
|
||||
gui.stenciltable2=Previous Pattern
|
||||
gui.toolforge1=Repair and Modification
|
||||
|
||||
@@ -745,6 +745,7 @@ gui.partcrafter7=Livello dell'attrezzo:
|
||||
gui.partcrafter8= Cuore
|
||||
gui.partcrafter9= Cuori
|
||||
gui.partcrafter10=Attacco:
|
||||
gui.partcrafter11=Resistenza totale:
|
||||
gui.stenciltable1=Modello seguente
|
||||
gui.stenciltable2=Modello precedente
|
||||
gui.toolforge1=Riparare e modificare
|
||||
|
||||
@@ -6,6 +6,7 @@ import java.util.List;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
@@ -101,19 +102,19 @@ public class RecipeHandlerToolMaterials extends RecipeHandlerBase
|
||||
if (crecipe.material != null)
|
||||
{
|
||||
GuiDraw.drawString(EnumChatFormatting.BOLD + crecipe.material.localizedName(), 35, 10, 0x404040, false);
|
||||
GuiDraw.drawString("Base Durability: " + crecipe.material.durability, 35, 20, 0x404040, false);
|
||||
GuiDraw.drawString("Handle Modifier: " + crecipe.material.handleModifier + "x", 35, 30, 0x404040, false);
|
||||
GuiDraw.drawString("Full Durability: " + Math.round(crecipe.material.durability * crecipe.material.handleModifier), 35, 40, 0x404040, false);
|
||||
GuiDraw.drawString("Mining Speed: " + crecipe.material.miningspeed / 100F, 35, 50, 0x404040, false);
|
||||
GuiDraw.drawString("Mining Level: " + HarvestLevels.getHarvestLevelName(crecipe.material.harvestLevel), 35, 60, 0x404040, false);
|
||||
String heart = crecipe.material.attack == 2 ? " Heart" : " Hearts";
|
||||
GuiDraw.drawString(StatCollector.translateToLocal("gui.partcrafter4") + crecipe.material.durability, 35, 20, 0x404040, false);
|
||||
GuiDraw.drawString(StatCollector.translateToLocal("gui.partcrafter5") + crecipe.material.handleModifier + "x", 35, 30, 0x404040, false);
|
||||
GuiDraw.drawString(StatCollector.translateToLocal("gui.partcrafter11") + Math.round(crecipe.material.durability * crecipe.material.handleModifier), 35, 40, 0x404040, false);
|
||||
GuiDraw.drawString(StatCollector.translateToLocal("gui.partcrafter6") + crecipe.material.miningspeed / 100F, 35, 50, 0x404040, false);
|
||||
GuiDraw.drawString(StatCollector.translateToLocal("gui.partcrafter7") + HarvestLevels.getHarvestLevelName(crecipe.material.harvestLevel), 35, 60, 0x404040, false);
|
||||
String heart = crecipe.material.attack == 2 ? StatCollector.translateToLocal("gui.partcrafter8") : StatCollector.translateToLocal("gui.partcrafter9");
|
||||
if (crecipe.material.attack() % 2 == 0)
|
||||
{
|
||||
GuiDraw.drawString("Attack: " + crecipe.material.attack / 2 + heart, 35, 70, 0x404040, false);
|
||||
GuiDraw.drawString(StatCollector.translateToLocal("gui.partcrafter10") + crecipe.material.attack / 2 + heart, 35, 70, 0x404040, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
GuiDraw.drawString("Attack: " + crecipe.material.attack / 2F + heart, 35, 70, 0x404040, false);
|
||||
GuiDraw.drawString(StatCollector.translateToLocal("gui.partcrafter11") + crecipe.material.attack / 2F + heart, 35, 70, 0x404040, false);
|
||||
}
|
||||
int abilityY = 85;
|
||||
if (crecipe.material.reinforced > 0)
|
||||
|
||||
Reference in new issue
Block a user