mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
Weapon Test
This commit is contained in:
1 parent
a4d318f059
commit
bdfb8d5c21
50 files changed
+1384
-924
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package mods.tinker.tconstruct.modifiers;
|
||||
|
||||
import mods.tinker.common.ToolMod;
|
||||
import mods.tinker.tconstruct.library.ToolCore;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
@@ -45,9 +46,13 @@ public class ModAttack extends ToolMod
|
||||
NBTTagCompound tags = tool.getTagCompound().getCompoundTag("InfiTool");
|
||||
if (tags.hasKey(key))
|
||||
{
|
||||
int amount = 24;
|
||||
if (((ToolCore) tool.getItem()).pierceArmor())
|
||||
amount = 36;
|
||||
|
||||
int[] keyPair = tags.getIntArray(key);
|
||||
|
||||
int leftToBoost = 36 - (keyPair[0] % 36);
|
||||
int leftToBoost = amount - (keyPair[0] % amount);
|
||||
if (increase >= leftToBoost)
|
||||
{
|
||||
int attack = tags.getInteger("Attack");
|
||||
|
||||
Reference in new issue
Block a user