mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-26 06:52:58 +00:00
10% crit chance for crossbows!
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user