mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
Fix gas meters to display properly (#60433)
This commit is contained in:
@@ -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 |
Reference in New Issue
Block a user