fix porrta turrets not working and runtiming every time they try to shoot (#29375)

This commit is contained in:
Qwertytoforty
2025-05-19 14:08:52 +00:00
committed by GitHub
parent 30e1a5d04f
commit e8acea384e
+4 -1
View File
@@ -788,7 +788,10 @@ GLOBAL_LIST_EMPTY(turret_icons)
return
if(!emagged) //if it hasn't been emagged, cooldown before shooting again
if((last_fired + (shot_delay / fitted_lens.fire_rate_mult) > world.time) || !raised)
var/delay_modifier = 1
if(fitted_lens)
delay_modifier = fitted_lens.fire_rate_mult
if((last_fired + (shot_delay / delay_modifier) > world.time) || !raised)
return
last_fired = world.time