mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 12:42:57 +00:00
Buff redstone mod, refactor broad tools to match
Cherry-picked from 34a4c8c80f969cafd696b41d963c2a041347d4cd Conflicts: src/main/java/tconstruct/common/TProxyCommon.java src/main/java/tconstruct/items/tools/Excavator.java src/main/java/tconstruct/items/tools/Hammer.java src/main/java/tconstruct/items/tools/LumberAxe.java src/main/java/tconstruct/library/tools/HarvestTool.java src/main/java/tconstruct/modifiers/tools/ModLapis.java src/main/java/tconstruct/modifiers/tools/ModRedstone.java src/main/java/tconstruct/tools/gui/ToolStationGui.java
This commit is contained in:
1 parent
ae31c05f45
commit
5b56d5e392
8 files changed
+47
-168
No files matched your search
@@ -160,18 +160,28 @@ public abstract class HarvestTool extends ToolCore
|
||||
mineSpeed += tags.getInteger("MiningSpeedExtra");
|
||||
heads++;
|
||||
}
|
||||
float trueSpeed = mineSpeed / (heads * 100f);
|
||||
float trueSpeed = mineSpeed / (heads * 100f) * breakSpeedModifier();
|
||||
int hlvl = block.getHarvestLevel(meta);
|
||||
int durability = tags.getInteger("Damage");
|
||||
|
||||
float stonebound = tags.getFloat("Shoddy");
|
||||
float bonusLog = (float) Math.log(durability / 72f + 1) * 2 * stonebound;
|
||||
float bonusLog = (float) Math.log(durability / stoneboundModifier() + 1) * 2 * stonebound;
|
||||
trueSpeed += bonusLog;
|
||||
|
||||
if (hlvl <= tags.getInteger("HarvestLevel"))
|
||||
return trueSpeed;
|
||||
return 0.1f;
|
||||
}
|
||||
|
||||
public float breakSpeedModifier()
|
||||
{
|
||||
return 1.0f;
|
||||
}
|
||||
|
||||
public float stoneboundModifier()
|
||||
{
|
||||
return 72f;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_150897_b (Block block)
|
||||
|
||||
Reference in new issue
Block a user