From 56ccd1358ac575012cca78132a3c252f5f626f3f Mon Sep 17 00:00:00 2001 From: EgorDinamit Date: Thu, 15 Feb 2024 01:53:56 +0300 Subject: [PATCH] Fix gas proc --- code/_helpers/atmospherics.dm | 7 ++++++- code/controllers/subsystems/supply.dm | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/code/_helpers/atmospherics.dm b/code/_helpers/atmospherics.dm index 1d050f4dea..45a3acc802 100644 --- a/code/_helpers/atmospherics.dm +++ b/code/_helpers/atmospherics.dm @@ -18,4 +18,9 @@ /proc/GetGasDatum(gas_id) if(!(gas_id in gas_data.gases)) return null - return gas_data.gases[gas_id] + var/list/all_gases = decls_repository.get_decls_of_subtype(/decl/xgm_gas) + for(var/decl/xgm_gas/gas in all_gases) + if(gas_id != gas.id) + continue + return gas + return null diff --git a/code/controllers/subsystems/supply.dm b/code/controllers/subsystems/supply.dm index 85d4e71c49..9e83068f2f 100644 --- a/code/controllers/subsystems/supply.dm +++ b/code/controllers/subsystems/supply.dm @@ -404,7 +404,7 @@ SUBSYSTEM_DEF(supply) if(!(item.type in export_counter)) export_counter[item.type] = 0 if(export_counter[item.type] < 30) - export_counter[item.type] += 1 + export_counter[item.type] += 1 //SEND_SIGNAL(src, COMSIG_TRADE_BEACON, item) qdel(item) ++export_count