From 07982121ec13e237d8fa5724cd6d366e7660d083 Mon Sep 17 00:00:00 2001 From: Jike Date: Sat, 4 Mar 2017 23:13:04 -0430 Subject: [PATCH] Carrots can be sharpened again, carrot shivs can be cut into wedges --- code/modules/hydroponics/grown/root.dm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/code/modules/hydroponics/grown/root.dm b/code/modules/hydroponics/grown/root.dm index 21e7690c085..c15346e2c5c 100644 --- a/code/modules/hydroponics/grown/root.dm +++ b/code/modules/hydroponics/grown/root.dm @@ -29,8 +29,18 @@ filling_color = "#FFA500" bitesize_mod = 2 +/obj/item/weapon/reagent_containers/food/snacks/grown/carrot/attackby(obj/item/I, mob/user, params) + if(is_sharp(I)) + to_chat(user, "You sharpen the carrot into a shiv with [I].") + var/obj/item/weapon/kitchen/knife/carrotshiv/Shiv = new /obj/item/weapon/kitchen/knife/carrotshiv + if(!remove_item_from_storage(user)) + user.unEquip(src) + user.put_in_hands(Shiv) + qdel(src) + else + return ..() -/obj/item/weapon/reagent_containers/food/snacks/grown/carrot/attackby(obj/item/weapon/W, mob/user, params) +/obj/item/weapon/kitchen/knife/carrotshiv/attackby(obj/item/weapon/W, mob/user, params) if(is_sharp(W)) to_chat(user, "You cut the carrot into wedges with [W].") var/obj/item/weapon/reagent_containers/food/snacks/grown/carrot/wedges/Wedges = new /obj/item/weapon/reagent_containers/food/snacks/grown/carrot/wedges