From a5fc9ff979725e4c5bfbf709f42384ed191febed Mon Sep 17 00:00:00 2001 From: Heroman Date: Mon, 7 Nov 2022 14:55:48 +1000 Subject: [PATCH] Makes hedge trimmers instakill vines --- code/modules/hydroponics/trays/tray_tools.dm | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/code/modules/hydroponics/trays/tray_tools.dm b/code/modules/hydroponics/trays/tray_tools.dm index 3e5bd91b6ae..cf8fd8d5818 100644 --- a/code/modules/hydroponics/trays/tray_tools.dm +++ b/code/modules/hydroponics/trays/tray_tools.dm @@ -11,6 +11,13 @@ item_state = "hedget" force = 7 //One point extra than standard wire cutters. +/obj/item/weapon/tool/wirecutters/clippers/trimmers/afterattack(atom/A as mob|obj|turf|area, mob/user as mob, proximity) + if(!proximity) return + ..() + if(A && istype(A,/obj/effect/plant)) + var/obj/effect/plant/P = A + P.die_off() + /obj/item/device/analyzer/plant_analyzer name = "plant analyzer" icon = 'icons/obj/device.dmi' @@ -31,7 +38,7 @@ if(!ui) ui = new(user, src, "PlantAnalyzer", name) ui.open() - + /obj/item/device/analyzer/plant_analyzer/tgui_state(mob/user) return GLOB.tgui_inventory_state @@ -51,7 +58,7 @@ /obj/item/device/analyzer/plant_analyzer/tgui_act(action, list/params, datum/tgui/ui, datum/tgui_state/state) if(..()) return TRUE - + switch(action) if("print") print_report(usr) @@ -277,7 +284,7 @@ if(get_trait(TRAIT_SPORING)) data["trait_info"] += "It occasionally releases reagent carrying spores into the atmosphere." - + if(exude_gasses && exude_gasses.len) for(var/gas in exude_gasses) var/amount = "" @@ -296,4 +303,4 @@ amount = "small amounts of " data["trait_info"] += "It will consume [amount][gas_data.name[gas]] from the environment." - return data + return data \ No newline at end of file