quick fix to prevent unreactable reactions.

This commit is contained in:
Fermi
2019-04-22 20:39:35 +01:00
parent 53a93c4108
commit 95ed826faf
+3 -2
View File
@@ -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