fix incorrect 'disable growth' logic in spiders

previous code made the assumption that negative numbers evaluated to false.
This commit is contained in:
ReddeyfishVor
2018-04-06 22:52:00 -07:00
committed by GitHub
parent 4ef644ffb8
commit c705d1b1a9
+2 -2
View File
@@ -213,7 +213,7 @@
skitter()
else if(isorgan(loc))
if(!amount_grown) amount_grown = 1
if(amount_grown < 0) amount_grown = 1
var/obj/item/organ/external/O = loc
if(!O.owner || O.owner.stat == DEAD || amount_grown > 80)
O.implants -= src
@@ -229,7 +229,7 @@
else if(prob(1))
src.visible_message("<span class='notice'>\The [src] skitters.</span>")
if(amount_grown)
if(amount_grown >= 0)
amount_grown += rand(0,2)
/obj/effect/spider/spiderling/proc/skitter()