This commit is contained in:
CrazyAmphibian
2025-05-12 05:47:56 -07:00
committed by GitHub
parent 23dfaa1645
commit 44c221fc2e
2 changed files with 13 additions and 0 deletions

View File

@@ -86,6 +86,12 @@
canister_color = "green"
can_label = 0
/obj/machinery/portable_atmospherics/canister/cryotheum // see above
name = "Canister \[O2<4F>\]"
icon_state = "cyan"
canister_color = "cyan"
can_label = 0
/obj/machinery/portable_atmospherics/canister/update_icon()
if(destroyed)
icon_state = "[canister_color]-1"
@@ -406,6 +412,7 @@
"\[Air\]" = "grey", \
"\[CAUTION\]" = "yellow", \
"\[Rn\]" = "green", \
"\[O2<4F>\]" = "cyan", \
)
var/label = input("Choose canister label", "Gas canister") as null|anything in colors
if (label)
@@ -459,6 +466,12 @@
air_contents.adjust_gas(GAS_RADON, (maximum_pressure * filled) * air_contents.volume / (R_IDEAL_GAS_EQUATION * air_contents.temperature))
update_icon()
/obj/machinery/portable_atmospherics/canister/cryotheum/New(loc)
..(loc)
air_contents.adjust_gas(GAS_CRYOTHEUM, (maximum_pressure * filled) * air_contents.volume / (R_IDEAL_GAS_EQUATION * air_contents.temperature))
update_icon()
/obj/machinery/portable_atmospherics/canister/proc/weld(var/obj/item/tool/weldingtool/WT, var/mob/user)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 36 KiB