mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 20:15:47 +01:00
Adds a trashbag check to janicart (#22443)
* Adds a trashbag check * Gotta close strings properly
This commit is contained in:
@@ -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>"
|
||||
|
||||
Reference in New Issue
Block a user