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
+6
View File
@@ -101,3 +101,9 @@
return GLOB.chemical_reagents_list[input]
else
return null
//Checks for if the given reagent R is invalid to process for its passed owner.
/proc/is_reagent_processing_invalid(datum/reagent/R, mob/living/owner)
if(!R || !owner)
return TRUE
return ((HAS_TRAIT(owner, TRAIT_ROBOTIC_ORGANISM) && !(R.chemical_flags & REAGENT_ROBOTIC_PROCESS)) || (!HAS_TRAIT(owner, TRAIT_ROBOTIC_ORGANISM) && !(R.chemical_flags & REAGENT_ORGANIC_PROCESS)))