mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-24 05:54:34 +00:00
Add display and calculation stuff for maximum damage with thrown weapons
This commit is contained in:
1 parent
92fd2cc222
commit
525baf8aad
6 files changed
+51
-7
No files matched your search
@@ -163,14 +163,24 @@ public class Javelin extends AmmoWeapon {
|
||||
return TinkerTools.toughRod;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getTraits() {
|
||||
return new String[] {"weapon", "thrown", "ammo", "windup"};
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Entity createProjectile(ItemStack reference, World world, EntityPlayer player, float accuracy) {
|
||||
reference.getTagCompound().getCompoundTag("InfiTool").removeTag("Throwing"); // needed so the NBTs are equal
|
||||
JavelinEntity entity = new JavelinEntity(world, player, 2.0f, accuracy, reference);
|
||||
JavelinEntity entity = new JavelinEntity(world, player, getProjectileSpeed(), accuracy, reference);
|
||||
|
||||
return entity;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getProjectileSpeed() {
|
||||
return 2.0f;
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@Override
|
||||
public CrosshairType getCrosshairType() { return CrosshairType.WEIRD; }
|
||||
|
||||
Reference in new issue
Block a user