Skip to content

Commit

Permalink
Fix gas proc
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorDinamit committed Feb 14, 2024
1 parent 02b4062 commit 56ccd13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion code/_helpers/atmospherics.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion code/controllers/subsystems/supply.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 56ccd13

Please sign in to comment.