From dba5855929e74dc3436588a0167d27cd6cd9210e Mon Sep 17 00:00:00 2001 From: silicons <2003111+silicons@users.noreply.github.com> Date: Wed, 15 Jul 2020 17:01:22 -0700 Subject: [PATCH] epic --- code/modules/atmospherics/gasmixtures/gas_mixture.dm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/code/modules/atmospherics/gasmixtures/gas_mixture.dm b/code/modules/atmospherics/gasmixtures/gas_mixture.dm index e7f73d9e05..bc8f8ba722 100644 --- a/code/modules/atmospherics/gasmixtures/gas_mixture.dm +++ b/code/modules/atmospherics/gasmixtures/gas_mixture.dm @@ -40,8 +40,7 @@ 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)) - var/list/dummy = get_gases - return debug_variables("gases (READ ONLY)", dummy, 0, src) + return debug_variable("gases (READ ONLY)", get_gases(), 0, src) /datum/gas_mixture/vv_get_dropdown() . = ..() @@ -67,7 +66,7 @@ GLOBAL_LIST_INIT(meta_gas_fusions, meta_gas_fusion_list()) message_admins("[key_name(usr)] emptied gas mixture [REF(src)].") clear() if(href_list[VV_HK_SET_MOLES]) - var/list/gases = return_gases() + var/list/gases = get_gases() var/gastype = input(usr, "What kind of gas?", "Set Gas") as null|anything in subtypesof(/datum/gas) if(!ispath(gastype, /datum/gas)) return @@ -77,7 +76,7 @@ GLOBAL_LIST_INIT(meta_gas_fusions, meta_gas_fusion_list()) amount = max(0, amount) log_admin("[key_name(usr)] modified gas mixture [REF(src)]: Set gas type [gastype] to [amount] moles.") message_admins("[key_name(usr)] modified gas mixture [REF(src)]: Set gas type [gastype] to [amount] moles.") - set_moles(gas_type, amount) + set_moles(gastype, amount) if(href_list[VV_HK_SET_TEMPERATURE]) var/temp = input(usr, "Set the temperature of this mixture to?", "Set Temperature", return_temperature()) as num|null if(!isnum(temp))