Modifed faction system to use a list instead. Mobs can belong to multiple factions at once.

This commit is contained in:
ZomgPonies
2014-07-19 13:26:55 -04:00
parent f4e629e9b6
commit 64554340f4
45 changed files with 71 additions and 92 deletions
+2 -2
View File
@@ -426,7 +426,7 @@
icon_living = "mining_drone"
status_flags = CANSTUN|CANWEAKEN|CANPUSH
mouse_opacity = 1
faction = "neutral"
faction = list("neutral")
a_intent = "harm"
min_oxy = 0
max_oxy = 0
@@ -569,7 +569,7 @@
if(istype(target, /mob/living/simple_animal))
var/mob/living/simple_animal/M = target
if(M.stat == DEAD)
M.faction = "lazarus"
M.faction = list("lazarus")
M.revive()
if(istype(target, /mob/living/simple_animal/hostile))
var/mob/living/simple_animal/hostile/H = M