Merge pull request #10096 from Citadel-Station-13/kevinz000-patch-123
nanites can no longer spread through atmospherics-blocking objects
This commit is contained in:
@@ -236,10 +236,14 @@
|
|||||||
/datum/nanite_program/spreading/active_effect()
|
/datum/nanite_program/spreading/active_effect()
|
||||||
if(prob(10))
|
if(prob(10))
|
||||||
var/list/mob/living/target_hosts = list()
|
var/list/mob/living/target_hosts = list()
|
||||||
for(var/mob/living/L in oview(5, host_mob))
|
var/turf/T = get_turf(host_mob)
|
||||||
|
for(var/mob/living/L in range(5, host_mob))
|
||||||
if(!(MOB_ORGANIC in L.mob_biotypes) && !(MOB_UNDEAD in L.mob_biotypes))
|
if(!(MOB_ORGANIC in L.mob_biotypes) && !(MOB_UNDEAD in L.mob_biotypes))
|
||||||
continue
|
continue
|
||||||
|
if(!disease_air_spread_walk(T, get_turf(L)))
|
||||||
|
continue
|
||||||
target_hosts += L
|
target_hosts += L
|
||||||
|
target_hosts -= host_mob
|
||||||
if(!target_hosts.len)
|
if(!target_hosts.len)
|
||||||
return
|
return
|
||||||
var/mob/living/infectee = pick(target_hosts)
|
var/mob/living/infectee = pick(target_hosts)
|
||||||
|
|||||||
Reference in New Issue
Block a user