From d6799e2c37697102484506bb8e9dadaeedd23dfd Mon Sep 17 00:00:00 2001 From: Leo Date: Sun, 25 Dec 2016 23:40:37 -0200 Subject: [PATCH] Adds a trashbag check to janicart (#22443) * Adds a trashbag check * Gotta close strings properly --- code/modules/vehicles/pimpin_ride.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/vehicles/pimpin_ride.dm b/code/modules/vehicles/pimpin_ride.dm index 4058a763519..625440b7d90 100644 --- a/code/modules/vehicles/pimpin_ride.dm +++ b/code/modules/vehicles/pimpin_ride.dm @@ -65,6 +65,9 @@ /obj/vehicle/janicart/attackby(obj/item/I, mob/user, params) if(istype(I, /obj/item/weapon/storage/bag/trash)) + if(mybag) + user << "[src] already has a trashbag hooked!" + return if(!user.drop_item()) return user << "You hook the trashbag onto \the [name]."