Added ashtrays

Breakable. Spill contents on breaking or hitting the solid stuff after being thrown.
Have limited capacity. Can be emptied in disposal outlet.
Change sprite when are half-filled and filled.
Also fiddled a bit with the cigs code, so you can put them out without dropping.
This commit is contained in:
comma
2012-03-02 21:56:08 +02:00
parent e066006f51
commit 2edd73627d
6 changed files with 206 additions and 17 deletions
+9
View File
@@ -61,6 +61,15 @@
update()
return
if(istype(I, /obj/item/ashtray))
user << "\blue You empty the ashtray."
for(var/obj/item/O in I.contents)
O.loc = src
I.contents -= O
I.icon_state = I:icon_empty
update()
return
if(istype(I, /obj/item/weapon/weldingtool) && I:welding)
var/obj/item/weapon/weldingtool/W = I
playsound(src.loc, 'Welder.ogg', 100, 1)