[NONMODULAR] Nanites can now infect all MOB_HUMANOIDs. (#3334)

* HATRED

* Update nanites.dm
This commit is contained in:
Yawet330
2021-02-13 23:28:29 +00:00
committed by GitHub
parent 9caf1fd056
commit e676cd060a
+6 -6
View File
@@ -29,10 +29,10 @@
//Nanites without hosts are non-interactive through normal means
if(isliving(parent))
host_mob = parent
if(!(host_mob.mob_biotypes & (MOB_ORGANIC|MOB_UNDEAD))) //Shouldn't happen, but this avoids HUD runtimes in case a silicon gets them somehow.
//SKYRAT EDIT START - FIXING THIS
if(!(host_mob.mob_biotypes & (MOB_ORGANIC|MOB_UNDEAD|MOB_HUMANOID))) //Shouldn't happen, but this avoids HUD runtimes in case a silicon gets them somehow.
return COMPONENT_INCOMPATIBLE
//SKYRAT EDIT END
start_time = world.time
host_mob.hud_set_nanite_indicator()
@@ -319,10 +319,10 @@
/datum/component/nanites/proc/check_viable_biotype()
SIGNAL_HANDLER
if(!(host_mob.mob_biotypes & (MOB_ORGANIC|MOB_UNDEAD)))
//SKYRAT EDIT START - FIXING THIS
if(!(host_mob.mob_biotypes & (MOB_ORGANIC|MOB_UNDEAD|MOB_HUMANOID)))
qdel(src) //bodytype no longer sustains nanites
//SKYRAT EDIT END
/datum/component/nanites/proc/check_access(datum/source, obj/O)
SIGNAL_HANDLER