mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 13:07:46 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user