Spiders inject fewer spiderlings

This commit is contained in:
Anewbe
2017-01-31 21:57:39 -06:00
parent 867c0ba2f4
commit fd1ade9982
2 changed files with 16 additions and 5 deletions
+7 -1
View File
@@ -77,6 +77,8 @@
desc = "They seem to pulse slightly with an inner life"
icon_state = "eggs"
var/amount_grown = 0
var/spiders_min = 6
var/spiders_max = 24
New()
pixel_x = rand(3,-3)
pixel_y = rand(3,-3)
@@ -97,7 +99,7 @@
/obj/effect/spider/eggcluster/process()
amount_grown += rand(0,2)
if(amount_grown >= 100)
var/num = rand(6,24)
var/num = rand(spiders_min, spiders_max)
var/obj/item/organ/external/O = null
if(istype(loc, /obj/item/organ/external))
O = loc
@@ -108,6 +110,10 @@
O.implants += spiderling
qdel(src)
/obj/effect/spider/eggcluster/small
spiders_min = 1
spiders_max = 3
/obj/effect/spider/spiderling
name = "spiderling"
desc = "It never stays still for long."