Hydroponics bug fix: Plants were almost always mutating into other plants.

Plant-B-Gone is now effective against the blob.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@79 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
Skiedrake
2010-09-08 01:53:37 +00:00
parent eb5394d3e7
commit 505665db80
4 changed files with 41 additions and 29 deletions
@@ -20,14 +20,18 @@ Deathnettle
/obj/item/weapon/plantbgone/afterattack(atom/A as mob|obj, mob/user as mob)
if (src.reagents.total_volume < 1)
src.empty = 1
user << "\blue Add more Plant-B-Gone mixture!"
return
else if (istype(A, /obj/item/weapon/storage/backpack ))
return
else if (istype(A, /obj/machinery/hydroponics)) // We are targeting hydrotray
return
else if (istype(A, /obj/blob)) // blob damage in blob code
return
else
var/obj/decal/D = new/obj/decal/(get_turf(src)) // Targeting elsewhere
if (locate (/obj/table, src.loc))