mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-18 11:30:50 +01:00
ashtrays added
Can now put out cigs in ashtrays.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
/obj/item/ashtray
|
||||
name = "ashtray"
|
||||
icon = 'hyperstation/icons/obj/objects.dmi'
|
||||
icon_state = "ashtray"
|
||||
|
||||
/obj/item/ashtray/attackby(obj/item/I, mob/user, params)
|
||||
if (istype(I,/obj/item/clothing/mask/cigarette/))
|
||||
var/obj/item/clothing/mask/cigarette/cig = I
|
||||
if (cig.lit == 1)
|
||||
src.visible_message("[user] crushes [cig] in \the [src], putting it out.")
|
||||
else if (cig.lit == 0)
|
||||
to_chat(user, "You place [cig] in [src].")
|
||||
qdel(cig) //drop it in.
|
||||
|
||||
Reference in New Issue
Block a user