From 95ed826faf17ebec220920d2262d603639ae3ce4 Mon Sep 17 00:00:00 2001 From: Fermi Date: Mon, 22 Apr 2019 20:39:35 +0100 Subject: [PATCH] quick fix to prevent unreactable reactions. --- code/modules/reagents/chemistry/holder.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/reagents/chemistry/holder.dm b/code/modules/reagents/chemistry/holder.dm index 839c67eff9..6abb41cc79 100644 --- a/code/modules/reagents/chemistry/holder.dm +++ b/code/modules/reagents/chemistry/holder.dm @@ -457,8 +457,9 @@ for(var/P in selected_reaction.results) targetVol = cached_results[P]*multiplier - while (reactedVol < targetVol) - reactedVol = FermiReact(selected_reaction, chem_temp, pH, multiplier, reactedVol, targetVol, cached_required_reagents, cached_results) + if (chem_temp > C.C.OptimalTempMin)//To prevent pointless reactions + while (reactedVol < targetVol) + reactedVol = FermiReact(selected_reaction, chem_temp, pH, multiplier, reactedVol, targetVol, cached_required_reagents, cached_results) SSblackbox.record_feedback("tally", "Fermi_chemical_reaction", reactedVol, C.id)//log