Update life.dm

This commit is contained in:
LetterJay
2018-01-21 23:09:22 -06:00
committed by GitHub
parent c408f37b4c
commit 84b9c4bb2b
@@ -9,8 +9,6 @@
/mob/living/simple_animal/slime/Life()
set invisibility = 0
set background = BACKGROUND_ENABLED
if (notransform)
return
if(..())
@@ -339,15 +337,16 @@
if(L in Friends) // No eating friends!
continue
var/ally = FALSE
for(var/F in faction)
var/ally = FALSE
for(var/F in faction)
if(F == "neutral") //slimes are neutral so other mobs not target them, but they can target neutral mobs
continue
if(F in L.faction)
ally = TRUE
break
if(F in L.faction)
ally = TRUE
break
if(ally)
continue
if(issilicon(L) && (rabid || attacked)) // They can't eat silicons, but they can glomp them in defence
targets += L // Possible target found!