mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-30 12:03:11 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user