mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +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))
|
if(istype(I, /obj/item/weapon/material/ashtray))
|
||||||
var/obj/item/weapon/material/ashtray/A = I
|
var/obj/item/weapon/material/ashtray/A = I
|
||||||
if(A.contents.len == 0)
|
if(A.contents.len > 0)
|
||||||
user.visible_message("<span class='notice'>\The [user] places \the [A.name] into [src].</span>")
|
|
||||||
I.forceMove(src)
|
|
||||||
else
|
|
||||||
user.visible_message("<span class='notice'>\The [user] empties \the [A.name] into [src].</span>")
|
user.visible_message("<span class='notice'>\The [user] empties \the [A.name] into [src].</span>")
|
||||||
for(var/obj/item/O in A.contents)
|
for(var/obj/item/O in A.contents)
|
||||||
O.forceMove(src)
|
O.forceMove(src)
|
||||||
A.update_icon()
|
A.update_icon()
|
||||||
update()
|
update()
|
||||||
return
|
return
|
||||||
|
|
||||||
var/obj/item/weapon/grab/G = I
|
var/obj/item/weapon/grab/G = I
|
||||||
if(istype(G)) // handle grabbed mob
|
if(istype(G)) // handle grabbed mob
|
||||||
|
|||||||
Reference in New Issue
Block a user