clamps decon_mod between 0 and 1 (#8133)

* when the decon_mod is above 1 :sus:

* when the operator is mixed
This commit is contained in:
Hatterhat
2021-06-14 02:33:03 -05:00
committed by GitHub
parent ab1ff7034e
commit 185d7a1c81

View File

@@ -25,7 +25,8 @@ Note: Must be placed within 3 tiles of the R&D Console
var/T = 0
for(var/obj/item/weapon/stock_parts/S in component_parts)
T += S.rating
decon_mod = T * 0.1
T *= 0.1
decon_mod = clamp(T, 0, 1)
/obj/machinery/r_n_d/destructive_analyzer/update_icon()
if(panel_open)
@@ -117,4 +118,4 @@ Note: Must be placed within 3 tiles of the R&D Console
/obj/machinery/r_n_d/destructive_analyzer/proc/rped_ready()
rped_recycler_ready = TRUE
playsound(get_turf(src), 'sound/machines/chime.ogg', 50, 1)
playsound(get_turf(src), 'sound/machines/chime.ogg', 50, 1)