Ashtray Emptying + Tweaks (#10798)

This commit is contained in:
MarinaGryphon
2020-12-17 14:07:14 +01:00
committed by GitHub
parent 7d84318e14
commit aaa067e237
3 changed files with 78 additions and 7 deletions
+6
View File
@@ -163,6 +163,12 @@
update()
return
else if (istype (I, /obj/item/material/ashtray) && user.a_intent != I_HURT)
var/obj/item/material/ashtray/A = I
if(A.emptyout(get_turf(src)))
user.visible_message("<b>[user]</b> pours [I] out into [src].", SPAN_NOTICE("You pour [I] out into [src]."))
return
else if (istype (I, /obj/item/device/lightreplacer))
var/count = 0
var/obj/item/device/lightreplacer/R = I