diff --git a/code/game/machinery/doppler_array.dm b/code/game/machinery/doppler_array.dm index 51823ba7e72..2a295520fdf 100644 --- a/code/game/machinery/doppler_array.dm +++ b/code/game/machinery/doppler_array.dm @@ -4,7 +4,7 @@ var/list/doppler_arrays = list() name = "tachyon-doppler array" desc = "A highly precise directional sensor array which measures the release of quants from decaying tachyons. The doppler shifting of the mirror-image formed by these quants can reveal the size, location and temporal affects of energetic disturbances within a large radius ahead of the array." icon = 'icons/obj/computer.dmi' - icon_state = "old_cons" + icon_state = "computer" anchored = 1 density = 1 @@ -13,11 +13,23 @@ var/list/doppler_arrays = list() /obj/machinery/doppler_array/Initialize() . = ..() doppler_arrays += src + update_icon() /obj/machinery/doppler_array/Destroy() doppler_arrays -= src return ..() +/obj/machinery/doppler_array/update_icon() + icon_state = initial(icon_state) + set_light(0) + if(stat & BROKEN) + icon_state = "broken" + else + cut_overlays() + if(!(stat & NOPOWER)) + set_light(2, 1, COLOR_CYAN) + add_overlay(image(icon, src, "teleport")) + /obj/machinery/doppler_array/proc/sense_explosion(var/x0,var/y0,var/z0,var/devastation_range,var/heavy_impact_range,var/light_impact_range) if(stat & NOPOWER) return if(z != z0) return @@ -47,10 +59,4 @@ var/list/doppler_arrays = list() /obj/machinery/doppler_array/power_change() ..() - if(stat & BROKEN) - icon_state = "[initial(icon_state)]-broken" - else - if( !(stat & NOPOWER) ) - icon_state = initial(icon_state) - else - icon_state = "[initial(icon_state)]-off" + update_icon() \ No newline at end of file diff --git a/html/changelogs/geeves-doppler_fix.yml b/html/changelogs/geeves-doppler_fix.yml new file mode 100644 index 00000000000..dc8720f9926 --- /dev/null +++ b/html/changelogs/geeves-doppler_fix.yml @@ -0,0 +1,6 @@ +author: Geeves + +delete-after: True + +changes: + - bugfix: "Fixes the tachyon doppler-array not having a sprite." \ No newline at end of file