mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-09 08:52:29 +00:00
Weed nodes now light up when planted, so the weeds can grow around them.
You can't place more than one egg in a tile anymore. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2382 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -54,8 +54,8 @@
|
||||
density = 0
|
||||
var/health = 50
|
||||
|
||||
bush
|
||||
icon_state = "weedbush"
|
||||
node
|
||||
icon_state = "weednode"
|
||||
name = "purple sac"
|
||||
desc = "Weird purple octopus-like thing."
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#define BUSHRANGE 3
|
||||
#define NODERANGE 3
|
||||
|
||||
/obj/effect/alien/weeds/New()
|
||||
..()
|
||||
@@ -11,6 +11,11 @@
|
||||
Life()
|
||||
return
|
||||
|
||||
/obj/effect/alien/weeds/node/New()
|
||||
..()
|
||||
sd_SetLuminosity(NODERANGE)
|
||||
return
|
||||
|
||||
/obj/effect/alien/weeds/proc/Life()
|
||||
set background = 1
|
||||
var/turf/U = get_turf(src)
|
||||
@@ -38,7 +43,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(!(locate(/obj/effect/alien/weeds/bush) in view(BUSHRANGE,T)))
|
||||
if(!(locate(/obj/effect/alien/weeds/node) in view(NODERANGE,T)))
|
||||
continue
|
||||
|
||||
// if (locate(/obj/movable, T)) // don't propogate into movables
|
||||
@@ -97,4 +102,4 @@ Alien plants should do something if theres a lot of poison
|
||||
return 1
|
||||
*/
|
||||
|
||||
#undef BUSHRANGE
|
||||
#undef NODRANGE
|
||||
@@ -27,7 +27,7 @@ Doesn't work on other aliens/AI.*/
|
||||
toxloss -= 50
|
||||
for(var/mob/O in viewers(src, null))
|
||||
O.show_message(text("\green <B>[src] has planted some alien weeds!</B>"), 1)
|
||||
new /obj/effect/alien/weeds/bush(loc)
|
||||
new /obj/effect/alien/weeds/node(loc)
|
||||
return
|
||||
|
||||
/mob/living/carbon/alien/humanoid/verb/call_to()
|
||||
|
||||
@@ -167,6 +167,10 @@
|
||||
set desc = "Plants an egg"
|
||||
set category = "Alien"
|
||||
|
||||
if(locate(/obj/effect/alien/egg) in get_turf(src))
|
||||
src << "There's already an egg here."
|
||||
return
|
||||
|
||||
if(powerc(50,1))//Can't plant eggs on spess tiles. That's silly.
|
||||
toxloss -= 200
|
||||
for(var/mob/O in viewers(src, null))
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Reference in New Issue
Block a user