-
Notifications
You must be signed in to change notification settings - Fork 220
/
cig_crafting.dm
75 lines (65 loc) · 2.13 KB
/
cig_crafting.dm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/obj/item/clothing/mask/smokable/cigarette/rolled
name = "rolled cigarette"
desc = "A hand rolled cigarette using dried plant matter."
icon = 'icons/clothing/mask/smokables/cigarette_rollup.dmi'
type_butt = /obj/item/trash/cigbutt
chem_volume = 50
brand = "handrolled"
var/filter = 0
/obj/item/clothing/mask/smokable/cigarette/rolled/populate_reagents()
return
/obj/item/clothing/mask/smokable/cigarette/rolled/examine(mob/user)
. = ..()
if(filter)
to_chat(user, "Capped off one end with a filter.")
/////////// //Ported Straight from TG. I am not sorry. - BloodyMan //YOU SHOULD BE
//ROLLING//
///////////
/obj/item/paper/cig
name = "rolling paper"
desc = "A thin piece of paper used to make smokeables."
icon = 'icons/obj/cigarettes.dmi'
icon_state = "cig_paper"
w_class = ITEM_SIZE_TINY
/obj/item/paper/cig/on_update_icon()
. = ..()
icon_state = initial(icon_state)
/obj/item/paper/cig/fancy
name = "\improper Trident rolling paper"
desc = "A thin piece of Trident-branded paper used to make fine smokeables."
icon_state = "cig_paperf"
/obj/item/paper/cig/filter
name = "cigarette filter"
desc = "A small nub like filter for cigarettes."
icon_state = "cig_filter"
w_class = ITEM_SIZE_TINY
//tobacco sold seperately if you're too snobby to grow it yourself.
/obj/item/chems/food/grown/dried_tobacco
seed = "tobacco"
w_class = ITEM_SIZE_TINY
/obj/item/chems/food/grown/dried_tobacco/Initialize()
. = ..()
dry = TRUE
SetName("dried [name]")
color = "#a38463"
/obj/item/chems/food/grown/dried_tobacco/bad
seed = "badtobacco"
/obj/item/chems/food/grown/dried_tobacco/fine
seed = "finetobacco"
/obj/item/clothing/mask/smokable/cigarette/rolled/attackby(obj/item/I, mob/user)
if(istype(I, /obj/item/paper/cig/filter))
if(filter)
to_chat(user, "<span class='warning'>[src] already has a filter!</span>")
return
if(lit)
to_chat(user, "<span class='warning'>[src] is lit already!</span>")
return
if(user.try_unequip(I))
to_chat(user, "<span class='notice'>You stick [I] into \the [src]</span>")
filter = 1
SetName("filtered [name]")
brand = "[brand] with a filter"
update_icon()
qdel(I)
return
..()