10% crit chance for crossbows!

This commit is contained in:
Bernhard Bonigl committed 2014-11-16 21:58:25 +01:00
1 parent c5dff65efa
commit 16138a8cf3
1 file changed
+5
@@ -1,5 +1,6 @@
package tconstruct.weaponry.weapons;
import tconstruct.TConstruct;
import tconstruct.library.TConstructRegistry;
import tconstruct.weaponry.TinkerWeaponry;
import tconstruct.weaponry.ammo.BoltAmmo;
@@ -267,6 +268,10 @@ public class Crossbow extends ProjectileWeapon {
if(player.capabilities.isCreativeMode)
arrow.canBePickedUp = 2;
// 10% crit hit chance!
if(!world.isRemote && TConstruct.random.nextFloat() < 0.1f)
arrow.setIsCritical(true);
return arrow;
}