mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 05:02:39 +00:00
Throwing knives windup is shorter and they nearly don't slow you down while doing so.
Also minimal javelin buff.
This commit is contained in:
1 parent
a44919a2f2
commit
d57f8b64a8
2 files changed
+21
-2
No files matched your search
@@ -108,7 +108,7 @@ public class Javelin extends AmmoWeapon {
|
||||
|
||||
@Override
|
||||
public int getWindupTime(ItemStack itemStack) {
|
||||
return 20;
|
||||
return 17;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package tconstruct.weaponry.weapons;
|
||||
|
||||
import net.minecraft.client.entity.EntityPlayerSP;
|
||||
import tconstruct.weaponry.client.CrosshairType;
|
||||
import tconstruct.weaponry.entity.ThrowingKnifeEntity;
|
||||
import tconstruct.library.weaponry.AmmoWeapon;
|
||||
@@ -58,7 +59,7 @@ public class ThrowingKnife extends AmmoWeapon {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getWindupTime(ItemStack itemStack) { return 30; } // 1 1/2 seconds
|
||||
public int getWindupTime(ItemStack itemStack) { return 15; } // 1 1/2 seconds
|
||||
|
||||
@Override
|
||||
public float getMinWindupProgress(ItemStack itemStack) {
|
||||
@@ -90,4 +91,22 @@ public class ThrowingKnife extends AmmoWeapon {
|
||||
public CrosshairType getCrosshairType() {
|
||||
return CrosshairType.SPIKE;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void onUpdate (ItemStack stack, World world, Entity entity, int par4, boolean par5)
|
||||
{
|
||||
// aiming with throwing knives slows down much less than with a bow
|
||||
super.onUpdate(stack, world, entity, par4, par5);
|
||||
if (entity instanceof EntityPlayerSP)
|
||||
{
|
||||
EntityPlayerSP player = (EntityPlayerSP) entity;
|
||||
ItemStack usingItem = player.getItemInUse();
|
||||
if (usingItem != null && usingItem.getItem() == this)
|
||||
{
|
||||
player.movementInput.moveForward *= 3.0F;
|
||||
player.movementInput.moveStrafe *= 3.0F;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user