mirror of
https://github.com/KabKebab/GS13.git
synced 2026-08-23 04:56:23 +01:00
mob_biotypes are now flags instead of lists
This commit is contained in:
@@ -89,7 +89,7 @@
|
||||
|
||||
var/mob/living/L = chamber.occupant
|
||||
|
||||
if((MOB_SILICON in L.mob_biotypes))
|
||||
if((MOB_SILICON & L.mob_biotypes))
|
||||
data["status_msg"] = "Occupant not compatible with nanites."
|
||||
return data
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
if(!parts.len)
|
||||
return FALSE
|
||||
else
|
||||
if(!(MOB_ROBOTIC in host_mob.mob_biotypes))
|
||||
if(!(MOB_ROBOTIC & host_mob.mob_biotypes))
|
||||
return FALSE
|
||||
return ..()
|
||||
|
||||
|
||||
@@ -237,7 +237,7 @@
|
||||
if(prob(10))
|
||||
var/list/mob/living/target_hosts = list()
|
||||
for(var/mob/living/L in oview(5, host_mob))
|
||||
if((MOB_SILICON in L.mob_biotypes))
|
||||
if((MOB_SILICON & L.mob_biotypes))
|
||||
continue
|
||||
target_hosts += L
|
||||
if(!target_hosts.len)
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
var/mob/living/L = occupant
|
||||
if(SEND_SIGNAL(L, COMSIG_HAS_NANITES))
|
||||
return
|
||||
if((MOB_ORGANIC in L.mob_biotypes) || (MOB_UNDEAD in L.mob_biotypes) || (MOB_ROBOTIC in L.mob_biotypes))
|
||||
if((MOB_ORGANIC & L.mob_biotypes) || (MOB_UNDEAD & L.mob_biotypes) || (MOB_ROBOTIC & L.mob_biotypes))
|
||||
inject_nanites()
|
||||
|
||||
/obj/machinery/public_nanite_chamber/open_machine()
|
||||
|
||||
Reference in New Issue
Block a user