Adds a species flag for preventing infections, akin to IS_PLANT, without its other traits.

This commit is contained in:
Mechoid
2018-01-09 12:42:20 -08:00
parent 8114e4050a
commit 91be171f62
4 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ var/list/organ_cache = list()
if(preserved)
return
//Process infections
if ((robotic >= ORGAN_ROBOT) || (owner && owner.species && (owner.species.flags & IS_PLANT)))
if(robotic >= ORGAN_ROBOT || (owner && owner.species && (owner.species.flags & IS_PLANT || (owner.species.flags & NO_INFECT))))
germ_level = 0
return
+1 -1
View File
@@ -603,7 +603,7 @@ Note that amputating the affected organ does in fact remove the infection from t
*/
/obj/item/organ/external/proc/update_germs()
if(robotic >= ORGAN_ROBOT || (owner.species && owner.species.flags & IS_PLANT)) //Robotic limbs shouldn't be infected, nor should nonexistant limbs.
if(robotic >= ORGAN_ROBOT || (owner.species && (owner.species.flags & IS_PLANT || (owner.species.flags & NO_INFECT)))) //Robotic limbs shouldn't be infected, nor should nonexistant limbs.
germ_level = 0
return