Fix gas meters to display properly (#60433)

This commit is contained in:
Tim
2021-07-29 04:21:44 -05:00
committed by GitHub
parent 87ddc1c72f
commit 2ec9596d38
3 changed files with 4 additions and 9 deletions
@@ -2,9 +2,8 @@
"meter": [
{
"type": "icon_state",
"icon_state": "pressure0",
"blend_mode": "overlay",
"color_ids": [ 1 ]
"icon_state": "pressure_off",
"blend_mode": "overlay"
},
{
"type": "icon_state",
@@ -2,7 +2,7 @@
name = "gas flow meter"
desc = "It measures something."
icon = 'icons/obj/atmospherics/pipes/meter.dmi'
icon_state = "meter_base"
icon_state = "meter"
layer = HIGH_PIPE_LAYER
power_channel = AREA_USAGE_ENVIRON
use_power = IDLE_POWER_USE
@@ -61,15 +61,11 @@
/obj/machinery/meter/process_atmos()
if(!(target?.flags_1 & INITIALIZED_1))
icon_state = "meter0"
greyscale_colors = COLOR_GRAY
set_greyscale(colors=greyscale_colors)
icon_state = "meter"
return FALSE
if(machine_stat & (BROKEN|NOPOWER))
icon_state = "meter"
greyscale_colors = COLOR_GRAY
set_greyscale(colors=greyscale_colors)
return FALSE
use_power(5)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB