mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
Allows emptying of ashtrays into disposals
This commit is contained in:
@@ -106,6 +106,15 @@
|
|||||||
update()
|
update()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if(istype(I, /obj/item/weapon/material/ashtray))
|
||||||
|
var/obj/item/weapon/material/ashtray/A = I
|
||||||
|
user << "\blue You empty the [A.name]."
|
||||||
|
for(var/obj/item/O in A.contents)
|
||||||
|
O.loc = src
|
||||||
|
A.update_icon()
|
||||||
|
update()
|
||||||
|
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
|
||||||
if(ismob(G.affecting))
|
if(ismob(G.affecting))
|
||||||
|
|||||||
Reference in New Issue
Block a user