mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Allows ashtrays to go in the trash.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user