Firemode Runtime Fix (#10675)

This commit is contained in:
Geeves
2020-12-01 08:52:24 +01:00
committed by GitHub
parent 2107cc92e0
commit 1d11b74f7c
+3 -1
View File
@@ -509,7 +509,9 @@
//As opposed to no-delay pew pew
P.accuracy += 2
var/datum/firemode/F = firemodes[sel_mode]
var/datum/firemode/F
if(length(firemodes))
F = firemodes[sel_mode]
if(one_hand_fa_penalty > 2 && !wielded && F?.name == "full auto") // todo: make firemode names defines
P.accuracy -= one_hand_fa_penalty/2
P.dispersion -= one_hand_fa_penalty * 0.5