From 3ed1917c3a3b9a16ebaa25a2a141e2ce12af6073 Mon Sep 17 00:00:00 2001 From: Zuhayr Date: Mon, 18 May 2015 13:21:34 +0930 Subject: [PATCH] Vine tweaks. Fireaxes one-shot vines, vines are mouse opaque. --- code/game/objects/items/weapons/twohanded.dm | 19 ++++++++----------- .../hydroponics/spreading/spreading.dm | 5 +++-- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/code/game/objects/items/weapons/twohanded.dm b/code/game/objects/items/weapons/twohanded.dm index 2ccd78d3616..9a40f301804 100644 --- a/code/game/objects/items/weapons/twohanded.dm +++ b/code/game/objects/items/weapons/twohanded.dm @@ -134,18 +134,15 @@ /obj/item/weapon/twohanded/fireaxe/afterattack(atom/A as mob|obj|turf|area, mob/user as mob, proximity) if(!proximity) return ..() - if(A && wielded && (istype(A,/obj/structure/window) || istype(A,/obj/structure/grille))) //destroys windows and grilles in one hit - if(istype(A,/obj/structure/window)) //should just make a window.Break() proc but couldn't bother with it + if(A && wielded) + if(istype(A,/obj/structure/window)) var/obj/structure/window/W = A - - new /obj/item/weapon/shard( W.loc ) - if(W.reinf) new /obj/item/stack/rods( W.loc) - - if (W.dir == SOUTHWEST) - new /obj/item/weapon/shard( W.loc ) - if(W.reinf) new /obj/item/stack/rods( W.loc) - del(A) - + W.shatter() + else if(istype(A,/obj/structure/grille)) + del(A) + else if(istype(A,/obj/effect/plant)) + var/obj/effect/plant/P = A + P.die_off() /* * Double-Bladed Energy Swords - Cheridan diff --git a/code/modules/hydroponics/spreading/spreading.dm b/code/modules/hydroponics/spreading/spreading.dm index d333d5c794a..968e8227834 100644 --- a/code/modules/hydroponics/spreading/spreading.dm +++ b/code/modules/hydroponics/spreading/spreading.dm @@ -17,13 +17,13 @@ seed.set_trait(TRAIT_SPREAD,2) // So it will function properly as vines. seed.set_trait(TRAIT_POTENCY,rand(potency_min, potency_max)) // 70-100 potency will help guarantee a wide spread and powerful effects. seed.set_trait(TRAIT_MATURATION,rand(maturation_min, maturation_max)) - + //make vine zero start off fully matured var/obj/effect/plant/vine = new(T,seed) vine.health = vine.max_health vine.mature_time = 0 vine.process() - + message_admins("Event: Spacevines spawned at [T.loc] ([T.x],[T.y],[T.z])") /obj/effect/dead_plant @@ -50,6 +50,7 @@ icon_state = "bush4-1" layer = 3 pass_flags = PASSTABLE + mouse_opacity = 1 var/health = 10 var/max_health = 100