Alien weeds now don't spread FUCKING EVERYWHERE, instead being limited to 3 tiles within the nearest weed node (which are now planted for 50 plasma instead of weeds for 100 plasma). Weed nodes spread weeds.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2326 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
uporotiy
2011-10-03 16:19:17 +00:00
parent 4cbdcb2395
commit 6288dc77f2
4 changed files with 20 additions and 7 deletions
+7
View File
@@ -54,6 +54,13 @@
density = 0
var/health = 50
bush
icon_state = "weedbush"
name = "purple sac"
desc = "Weird purple octopus-like thing."
density = 1
/obj/effect/alien/acid
name = "acid"
desc = "Burbling corrossive stuff. I wouldn't want to touch it."
+9 -2
View File
@@ -1,9 +1,11 @@
#define BUSHRANGE 3
/obj/effect/alien/weeds/New()
..()
if(istype(loc, /turf/space))
del(src)
return
icon_state = pick("weeds", "weeds1", "weeds2")
if(icon_state == "weeds")icon_state = pick("weeds", "weeds1", "weeds2")
spawn(rand(150,300))
if(src)
Life()
@@ -36,6 +38,9 @@ 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(!(locate(/obj/effect/alien/weeds/bush) in view(BUSHRANGE,T)))
continue
// if (locate(/obj/movable, T)) // don't propogate into movables
// continue
@@ -90,4 +95,6 @@ Alien plants should do something if theres a lot of poison
return
return 0
return 1
*/
*/
#undef BUSHRANGE