From 316113b52e3c6cd7f28989f716b68854cd05f4cf Mon Sep 17 00:00:00 2001 From: DZD Date: Sat, 31 Oct 2015 10:20:17 -0400 Subject: [PATCH] BS crystal and tomato fix No Z2 exploits for you. --- code/modules/hydroponics/seed.dm | 2 ++ code/modules/telesci/bscrystal.dm | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/code/modules/hydroponics/seed.dm b/code/modules/hydroponics/seed.dm index 15ee4a1d395..7586f415c0b 100644 --- a/code/modules/hydroponics/seed.dm +++ b/code/modules/hydroponics/seed.dm @@ -342,6 +342,8 @@ // Bluespace tomato code copied over from grown.dm. if(get_trait(TRAIT_TELEPORTING)) + if(target.z in config.admin_levels) + return 1 //Plant potency determines radius of teleport. var/outer_teleport_radius = get_trait(TRAIT_POTENCY)/5 diff --git a/code/modules/telesci/bscrystal.dm b/code/modules/telesci/bscrystal.dm index a5586cf2dcf..b554c244ba7 100644 --- a/code/modules/telesci/bscrystal.dm +++ b/code/modules/telesci/bscrystal.dm @@ -20,6 +20,10 @@ qdel(src) /obj/item/bluespace_crystal/proc/blink_mob(var/mob/living/L) + if(L.z in config.admin_levels) + src.visible_message("[src]'s fragments begin rapidly vibrating and blink out of existence.") + qdel(src) + return do_teleport(L, get_turf(L), blink_range, asoundin = 'sound/effects/phasein.ogg') /obj/item/bluespace_crystal/throw_impact(atom/hit_atom) @@ -33,4 +37,4 @@ name = "artificial bluespace crystal" desc = "An artificially made bluespace crystal, it looks delicate." origin_tech = "bluespace=2" - blink_range = 4 // Not as good as the organic stuff! \ No newline at end of file + blink_range = 4 // Not as good as the organic stuff! \ No newline at end of file