mob_biotypes are now flags instead of lists

This commit is contained in:
DragonTrance
2021-03-03 11:08:36 -07:00
parent 08e55a3f4f
commit 4b931c5e92
101 changed files with 133 additions and 138 deletions
+2 -2
View File
@@ -24,7 +24,7 @@
if(isliving(parent))
host_mob = parent
if(MOB_SILICON in host_mob.mob_biotypes) //Shouldn't happen, but this avoids HUD runtimes in case a silicon gets them somehow.
if(MOB_SILICON & host_mob.mob_biotypes) //Shouldn't happen, but this avoids HUD runtimes in case a silicon gets them somehow.
return COMPONENT_INCOMPATIBLE
host_mob.hud_set_nanite_indicator()
@@ -196,7 +196,7 @@
NP.receive_signal(code, source)
/datum/component/nanites/proc/check_viable_biotype()
if((MOB_SILICON in host_mob.mob_biotypes))
if((MOB_SILICON & host_mob.mob_biotypes))
qdel(src) //bodytype no longer sustains nanites
/datum/component/nanites/proc/check_access(datum/source, obj/O)