Skip to content

Commit

Permalink
Update _ranged.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitsunemitsu committed Dec 5, 2024
1 parent ae9e8a9 commit bb3bab8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ModularTegustation/ego_weapons/ranged/_ranged.dm
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@
playsound(src, 'sound/weapons/gun/general/slide_lock_1.ogg', 50, TRUE)

//Get a bonus of up to 40% reload speed to fortitude
var/passreload = min((get_attribute_level(user, FORTITUDE_ATTRIBUTE)-20)/110, 1)
var/passreload = clamp((get_attribute_level(user, FORTITUDE_ATTRIBUTE)-20)/110, 0.01, 1)

passreload = reloadtime - reloadtime/passreload*0.3

if(do_after(user, passreload, src)) //gotta reload
Expand Down

0 comments on commit bb3bab8

Please sign in to comment.