Add vanilla critical behaviour to the tinker bows (critical if fully drawn)

This commit is contained in:
Bernhard Bonigl committed 2014-11-16 19:10:53 +01:00
1 parent c42f99cba7
commit f3f31bc045
5 files changed
+12 -9

No files matched your search

@@ -67,7 +67,7 @@ public abstract class ProjectileWeapon extends ToolCore implements IAccuracy, IW
* @param accuracy the accuracy calculated for the projectile
* @return A banana.
*/
protected abstract Entity createProjectile(ItemStack ammo, World world, EntityPlayer player, float speed, float accuracy);
protected abstract Entity createProjectile(ItemStack ammo, World world, EntityPlayer player, float speed, float accuracy, float windup);
/* Accuracy */
@@ -177,7 +177,7 @@ public abstract class ProjectileWeapon extends ToolCore implements IAccuracy, IW
// take windup time into account
projectileSpeed *= windup;
Entity projectile = createProjectile(ammo, world, player, projectileSpeed, accuracy);
Entity projectile = createProjectile(ammo, world, player, projectileSpeed, accuracy, windup);
int reinforced = 0;