Spiderling and Factions

This commit is contained in:
Fox-McCloud
2015-11-18 14:51:04 -05:00
parent d07bce4a66
commit bdd45eacdc
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -77,6 +77,7 @@
icon_state = "eggs"
var/amount_grown = 0
var/player_spiders = 0
var/faction = list()
/obj/effect/spider/eggcluster/New()
pixel_x = rand(3,-3)
@@ -89,6 +90,7 @@
var/num = rand(3,12)
for(var/i=0, i<num, i++)
var/obj/effect/spider/spiderling/S = new /obj/effect/spider/spiderling(src.loc)
S.faction = faction
if(player_spiders)
S.player_spiders = 1
qdel(src)
@@ -105,6 +107,7 @@
var/obj/machinery/atmospherics/unary/vent_pump/entry_vent
var/travelling_in_vent = 0
var/player_spiders = 0
var/faction = list()
/obj/effect/spider/spiderling/New()
pixel_x = rand(6,-6)
@@ -189,6 +192,7 @@
if(!grow_as)
grow_as = pick(typesof(/mob/living/simple_animal/hostile/poison/giant_spider))
var/mob/living/simple_animal/hostile/poison/giant_spider/S = new grow_as(src.loc)
S.faction = faction
if(player_spiders)
var/list/candidates = get_candidates(BE_ALIEN, ALIEN_AFK_BRACKET)
var/client/C = null