Trace Chemicals and Mass Spectrometers (#11993)

This commit is contained in:
Geeves
2021-07-22 12:35:44 +02:00
committed by GitHub
parent 2fb1148c71
commit 720af36667
8 changed files with 84 additions and 24 deletions
@@ -696,6 +696,10 @@
// TODO: stomach and bloodstream organ.
if(!isSynthetic())
handle_trace_chems()
if(!(species.flags & NO_BLOOD))
// update the trace chems in our blood vessels
var/decl/reagent/blood/B = decls_repository.get_decl(/decl/reagent/blood)
B.handle_trace_chems(vessel)
for(var/_R in chem_doses)
if ((_R in bloodstr.reagent_volumes) || (_R in ingested.reagent_volumes) || (_R in breathing.reagent_volumes) || (_R in touching.reagent_volumes))