Allows ashtrays to go in the trash.

This commit is contained in:
Anewbe
2016-11-15 19:12:19 -06:00
parent 8bba88cd66
commit 06fa3927a1

View File

@@ -108,16 +108,13 @@
if(istype(I, /obj/item/weapon/material/ashtray))
var/obj/item/weapon/material/ashtray/A = I
if(A.contents.len == 0)
user.visible_message("<span class='notice'>\The [user] places \the [A.name] into [src].</span>")
I.forceMove(src)
else
if(A.contents.len > 0)
user.visible_message("<span class='notice'>\The [user] empties \the [A.name] into [src].</span>")
for(var/obj/item/O in A.contents)
O.forceMove(src)
A.update_icon()
update()
return
A.update_icon()
update()
return
var/obj/item/weapon/grab/G = I
if(istype(G)) // handle grabbed mob