Atmos icon tweaks (#2874)

changes:

Airlock vents now use icon_states instead of atmos icon manager overlays.
Omni vents now use SSoverlay caching instead of atmos icon manager caching.
Added missing icon_states from #2812.
This commit is contained in:
Lohikar
2017-06-30 05:09:41 -05:00
committed by skull132
parent 84f2ec8105
commit cf7359e03e
5 changed files with 34 additions and 54 deletions
@@ -59,23 +59,21 @@
if(!check_icon_cache())
return
overlays.Cut()
var/vent_icon = "vent"
var/istate = ""
var/turf/T = get_turf(src)
if(!istype(T))
return
if(!T.is_plating() && node1 && node2 && node1.level == 1 && node2.level == 1 && istype(node1, /obj/machinery/atmospherics/pipe) && istype(node2, /obj/machinery/atmospherics/pipe))
vent_icon += "h"
istate += "h"
if(!powered())
vent_icon += "off"
istate += "off"
else
vent_icon += "[use_power ? "[pump_direction ? "out" : "in"]" : "off"]"
istate += "[use_power ? "[pump_direction ? "out" : "in"]" : "off"]"
overlays += icon_manager.get_atmos_icon("device", , , vent_icon)
icon_state = istate
/obj/machinery/atmospherics/binary/dp_vent_pump/update_underlays()
if(..())