mirror of
https://github.com/KabKebab/GS13.git
synced 2026-05-17 12:52:49 +01:00
b6f22b901a
Can now put out cigs in ashtrays.
15 lines
457 B
Plaintext
15 lines
457 B
Plaintext
/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.
|
|
|