epic
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user