mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-24 22:14:31 +00:00
Add vanilla critical behaviour to the tinker bows (critical if fully drawn)
This commit is contained in:
1 parent
c42f99cba7
commit
f3f31bc045
5 files changed
+12
-9
No files matched your search
@@ -110,7 +110,7 @@ public abstract class BowBaseAmmo extends ProjectileWeapon {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Entity createProjectile(ItemStack arrows, World world, EntityPlayer player, float speed, float accuracy) {
|
||||
protected Entity createProjectile(ItemStack arrows, World world, EntityPlayer player, float speed, float accuracy, float windup) {
|
||||
EntityArrow arrow;
|
||||
|
||||
if(arrows.getItem() == Items.arrow) {
|
||||
@@ -126,6 +126,9 @@ public abstract class BowBaseAmmo extends ProjectileWeapon {
|
||||
if(player.capabilities.isCreativeMode)
|
||||
arrow.canBePickedUp = 2;
|
||||
|
||||
if(windup >= 1f)
|
||||
arrow.setIsCritical(true);
|
||||
|
||||
return arrow;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user