From d4dc10b29baaaef126a3a8d5c72dbf54911f998a Mon Sep 17 00:00:00 2001 From: Putnam3145 Date: Tue, 3 Aug 2021 16:29:08 -0700 Subject: [PATCH] error fixin' --- code/modules/power/supermatter/supermatter.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/power/supermatter/supermatter.dm b/code/modules/power/supermatter/supermatter.dm index aebe68a794..59e42c250a 100644 --- a/code/modules/power/supermatter/supermatter.dm +++ b/code/modules/power/supermatter/supermatter.dm @@ -446,7 +446,7 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal) //Prevents huge bursts of gas/heat when a large amount of something is introduced //They range between 0 and 1 for(var/gasID in gases_we_care_about) - if(!(gas_id in gas_comp)) + if(!(gasID in gas_comp)) gas_comp[gasID] = 0 gas_comp[gasID] += clamp(max(removed.get_moles(gasID)/combined_gas, 0) - gas_comp[gasID], -1, gas_change_rate) @@ -474,7 +474,7 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal) //Effects the damage heat does to the crystal. dynamic_heat_resistance = 0 //We multiply this with power to find the rads. - power_transmission_bonus = 0 + var/power_transmission_bonus = 0 var/powerloss_inhibition_gas = 0 var/radioactivity_modifier = 0 for(var/gasID in gas_comp)