working ricochets

This commit is contained in:
Timothy Teakettle
2020-08-03 14:46:24 +01:00
parent 0bf9553eca
commit 2bbe4631d6
7 changed files with 25 additions and 51 deletions
@@ -37,9 +37,11 @@
var/obj/item/gun/G = fired_from
BB.damage *= G.projectile_damage_multiplier
if(HAS_TRAIT(user, TRAIT_INSANE_AIM))
BB.ricochets_max = max(BB.ricochets_max, 20) //bouncy!
BB.ricochets_max = max(BB.ricochets_max, 10) //bouncy!
BB.ricochet_chance = max(BB.ricochet_chance, 200) //it decays
BB.ricochet_auto_aim_range = max(BB.ricochet_auto_aim_range, 3)
BB.ricochet_auto_aim_angle = max(BB.ricochet_auto_aim_angle, 30)
BB.ricochet_decay_chance = min(BB.ricochet_decay_chance, 1)
BB.ricochet_incidence_leeway = 0
if(reagents && BB.reagents)