Adds a trashbag check to janicart (#22443)

* Adds a trashbag check

* Gotta close strings properly
This commit is contained in:
Leo
2016-12-25 23:40:37 -02:00
committed by oranges
parent 58e21ba5a8
commit d6799e2c37
+3
View File
@@ -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 << "<span class='warning'>[src] already has a trashbag hooked!</span>"
return
if(!user.drop_item())
return
user << "<span class='notice'>You hook the trashbag onto \the [name].</span>"