-Fixed a funny bug where weed nodes wouldn't stop growing.

Which lead to this: http://i.imgur.com/8BFce.jpg

Added a node_range variable, which can be VVed to get the same result as the bug.



git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4813 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
giacomand@gmail.com
2012-10-05 13:58:08 +00:00
parent 758b7160dc
commit 3a0c239dfa
+3 -2
View File
@@ -177,6 +177,7 @@
name = "purple sac"
desc = "Weird purple octopus-like thing."
luminosity = NODERANGE
var/node_range = NODERANGE
/obj/effect/alien/weeds/node/New()
..(src.loc, src)
@@ -189,7 +190,7 @@
del(src)
return
if(icon_state == "weeds")icon_state = pick("weeds", "weeds1", "weeds2")
spawn(rand(50, 150))
spawn(rand(150, 200))
if(src)
Life()
return
@@ -221,7 +222,7 @@ Alien plants should do something if theres a lot of poison
if (!istype(T) || T.density || locate(/obj/effect/alien/weeds) in T || istype(T.loc, /area/arrival) || istype(T, /turf/space))
continue
if(!linked_node)
if(!linked_node || get_dist(linked_node, src) > linked_node.node_range)
return
// if (locate(/obj/movable, T)) // don't propogate into movables