From 5006e8160d85bbe62b185dc3d03ecf1f72edf732 Mon Sep 17 00:00:00 2001 From: PsiOmegaDelta Date: Thu, 4 Jun 2015 12:19:54 +0200 Subject: [PATCH] Spider eggs now also inherit color and light from their mother. --- .../mob/living/simple_animal/hostile/giant_spider.dm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/simple_animal/hostile/giant_spider.dm b/code/modules/mob/living/simple_animal/hostile/giant_spider.dm index 40247c75843..091bd200cd9 100644 --- a/code/modules/mob/living/simple_animal/hostile/giant_spider.dm +++ b/code/modules/mob/living/simple_animal/hostile/giant_spider.dm @@ -80,7 +80,10 @@ if(prob(poison_per_bite)) var/obj/item/organ/external/O = pick(H.organs) if(!(O.status & ORGAN_ROBOT)) - O.implants += new/obj/effect/spider/eggcluster(O) + var/obj/effect/spider/eggcluster/eggs = new(O) + eggs.color = color + eggs.set_light(light_range, light_power, light_color) + O.implants += eggs /mob/living/simple_animal/hostile/giant_spider/Life() ..() @@ -144,7 +147,9 @@ if(busy == LAYING_EGGS) E = locate() in get_turf(src) if(!E) - new /obj/effect/spider/eggcluster(src.loc) + var/obj/effect/spider/eggcluster/eggs = new(src.loc) + eggs.color = color + eggs.set_light(light_range, light_power, light_color) fed-- busy = 0 stop_automated_movement = 0