stupid bitflags

This commit is contained in:
Thalpy
2019-10-13 23:50:08 +01:00
parent 6a74bf7093
commit 1621c4c7d4
@@ -72,7 +72,11 @@
on_death() //Kinda hate doing it like this, but I really don't want to call process directly.
/obj/item/organ/proc/on_death() //runs decay when outside of a person
if(organ_flags & (ORGAN_SYNTHETIC | ORGAN_FROZEN | ORGAN_NO_SPOIL))
if(organ_flags & ORGAN_SYNTHETIC)
return
if(organ_flags & ORGAN_FROZEN)
return
if(organ_flags & ORGAN_NO_SPOIL)
return
applyOrganDamage(maxHealth * decay_factor)