Skip to content

Commit

Permalink
removes min recoil to get this merged asap
Browse files Browse the repository at this point in the history
  • Loading branch information
rye-rice committed Aug 26, 2024
1 parent d05770a commit 85fd80a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions code/modules/projectiles/gun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,6 @@
///This prevents gun from firing until the coodown is done, affected by lag
var/current_cooldown = 0

var/min_recoil = 0

var/gunslinger_recoil_bonus = 0
var/gunslinger_spread_bonus = 0

Expand Down Expand Up @@ -810,7 +808,7 @@
/obj/item/gun/proc/calculate_recoil(mob/user, recoil_bonus = 0)
if(HAS_TRAIT(user, TRAIT_GUNSLINGER))
recoil_bonus += gunslinger_recoil_bonus
return clamp(recoil_bonus, min_recoil , INFINITY)
return clamp(recoil_bonus, 0 , INFINITY)

/obj/item/gun/proc/calculate_spread(mob/user, bonus_spread)
var/final_spread = 0
Expand Down
2 changes: 0 additions & 2 deletions code/modules/projectiles/guns/ballistic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
has_safety = TRUE
safety = TRUE

min_recoil = 0.25

valid_attachments = list(
/obj/item/attachment/silencer,
/obj/item/attachment/laser_sight,
Expand Down

0 comments on commit 85fd80a

Please sign in to comment.