From b279c82bb2fe76b7f84d5f1946fec7877ca7b3fe Mon Sep 17 00:00:00 2001 From: silicons <2003111+silicons@users.noreply.github.com> Date: Wed, 15 Jul 2020 17:10:08 -0700 Subject: [PATCH] whew --- code/modules/atmospherics/gasmixtures/gas_mixture.dm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/modules/atmospherics/gasmixtures/gas_mixture.dm b/code/modules/atmospherics/gasmixtures/gas_mixture.dm index bc8f8ba722..1c8cf0436e 100644 --- a/code/modules/atmospherics/gasmixtures/gas_mixture.dm +++ b/code/modules/atmospherics/gasmixtures/gas_mixture.dm @@ -40,7 +40,10 @@ GLOBAL_LIST_INIT(meta_gas_fusions, meta_gas_fusion_list()) /datum/gas_mixture/vv_get_var(var_name) . = ..() if(var_name == NAMEOF(src, gas_list_view_only)) - return debug_variable("gases (READ ONLY)", get_gases(), 0, src) + var/list/dummy = get_gases() + for(var/gas in dummy) + dummy[gas] = get_moles(gas) + return debug_variable("gases (READ ONLY)", dummy, 0, src) /datum/gas_mixture/vv_get_dropdown() . = ..() @@ -67,6 +70,8 @@ GLOBAL_LIST_INIT(meta_gas_fusions, meta_gas_fusion_list()) clear() if(href_list[VV_HK_SET_MOLES]) var/list/gases = get_gases() + for(var/gas in gases) + gases[gas] = get_moles(gas) var/gastype = input(usr, "What kind of gas?", "Set Gas") as null|anything in subtypesof(/datum/gas) if(!ispath(gastype, /datum/gas)) return