Cryo will now show occupant inside on sprite.

This commit is contained in:
Chinsky
2015-03-12 15:48:17 +03:00
parent 6e0a39ec63
commit a51f776f4d
2 changed files with 9 additions and 8 deletions

View File

@@ -3,7 +3,7 @@
/obj/machinery/atmospherics/unary/cryo_cell
name = "cryo cell"
icon = 'icons/obj/cryogenics.dmi'
icon_state = "cell-off"
icon_state = "pod0"
density = 1
anchored = 1.0
layer = 2.8
@@ -194,13 +194,14 @@
return
/obj/machinery/atmospherics/unary/cryo_cell/update_icon()
if(on)
if(occupant)
icon_state = "cell-occupied"
return
icon_state = "cell-on"
return
icon_state = "cell-off"
overlays.Cut()
icon_state = "pod[on]"
if(occupant)
var/image/pickle = image(occupant.icon, occupant.icon_state)
pickle.overlays = occupant.overlays
pickle.pixel_y = 20
overlays += pickle
overlays += "lid[on]"
/obj/machinery/atmospherics/unary/cryo_cell/proc/process_occupant()
if(air_contents.total_moles < 10)