mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +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
@@ -99,6 +99,7 @@ public class ModRedstone extends ItemModTypeFilter
|
||||
if (toolcore.durabilityTypeExtra() == 2)
|
||||
boost += 2;
|
||||
}
|
||||
System.out.println("Boost: "+boost);
|
||||
miningSpeed += (increase * boost);
|
||||
tags.setInteger("MiningSpeed", miningSpeed);
|
||||
|
||||
|
||||
@@ -80,11 +80,11 @@ public class ModRepair extends ItemModifier
|
||||
int modifiers = tags.getInteger("Modifiers");
|
||||
float mods = 1.0f;
|
||||
if (modifiers == 2)
|
||||
mods = 0.8f;
|
||||
mods = 0.9f;
|
||||
else if (modifiers == 1)
|
||||
mods = 0.6f;
|
||||
mods = 0.8f;
|
||||
else if (modifiers == 0)
|
||||
mods = 0.4f;
|
||||
mods = 0.7f;
|
||||
|
||||
increase *= mods;
|
||||
|
||||
|
||||
Reference in new issue
Block a user