chemscanning (reads: health analyzers mostly) show reagents in grey if not processable due to being invalid
This commit is contained in:
DeltaFire
2021-11-12 19:38:10 +01:00
parent 4f8848cfb8
commit b4e6b0785d
4 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -345,7 +345,7 @@
if(owner && reagent)
if(!owner.reagent_check(reagent, delta_time, times_fired) != TRUE)
return
if((HAS_TRAIT(owner, TRAIT_ROBOTIC_ORGANISM) && !(reagent.chemical_flags & REAGENT_ROBOTIC_PROCESS)) || (!HAS_TRAIT(owner, TRAIT_ROBOTIC_ORGANISM) && !(reagent.chemical_flags & REAGENT_ORGANIC_PROCESS)))
if(is_reagent_processing_invalid(reagent, owner))
return reagent.on_invalid_process(owner, delta_time, times_fired)
if(liverless && !reagent.self_consuming) //need to be metabolized
return