forked from Aurorastation/Aurora.3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpill_bottle.dm
197 lines (164 loc) · 8.48 KB
/
pill_bottle.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
/obj/item/storage/pill_bottle
name = "pill bottle"
desc = "It's an airtight container for storing medication."
icon_state = "pill_canister"
icon = 'icons/obj/chemical.dmi'
contained_sprite = TRUE
item_state = "pill_canister"
center_of_mass = list("x" = 16,"y" = 12)
w_class = WEIGHT_CLASS_SMALL
can_hold = list(/obj/item/reagent_containers/pill,/obj/item/stack/dice,/obj/item/paper)
allow_quick_gather = 1
use_to_pickup = 1
use_sound = 'sound/items/storage/pillbottle.ogg'
drop_sound = 'sound/items/drop/pillbottle.ogg'
pickup_sound = 'sound/items/pickup/pillbottle.ogg'
max_storage_space = 16
/obj/item/storage/pill_bottle/attack_self(mob/living/user)
if(user.get_inactive_hand())
to_chat(user, SPAN_NOTICE("You need an empty hand to take something out."))
return
if(contents.len)
var/obj/item/I = contents[1]
if(!remove_from_storage(I,user))
return
if(user.put_in_inactive_hand(I))
to_chat(user, SPAN_NOTICE("You take \the [I] out of \the [src]."))
if(iscarbon(user))
var/mob/living/carbon/C = user
C.swap_hand()
else
I.dropInto(loc)
to_chat(user, SPAN_NOTICE("You fumble around with \the [src] and drop \the [I] on the floor."))
else
to_chat(user, SPAN_WARNING("\The [src] is empty."))
/obj/item/storage/pill_bottle/antitox
name = "bottle of 10u Dylovene pills"
desc = "Contains pills used to remove toxic substances from the blood."
starts_with = list(/obj/item/reagent_containers/pill/antitox = 7)
/obj/item/storage/pill_bottle/bicaridine
name = "bottle of 10u Bicaridine pills"
desc = "Contains pills used to treat minor injuries and bleeding."
starts_with = list(/obj/item/reagent_containers/pill/bicaridine = 7)
/obj/item/storage/pill_bottle/dexalin
name = "bottle of 15u Dexalin pills"
desc = "Contains pills used to treat minor cases of oxygen deprivation."
starts_with = list(/obj/item/reagent_containers/pill/dexalin = 7)
/obj/item/storage/pill_bottle/dexalin_plus
name = "bottle of 15u Dexalin Plus pills"
desc = "Contains pills used to treat extreme cases of oxygen deprivation."
starts_with = list(/obj/item/reagent_containers/pill/dexalin_plus = 7)
/obj/item/storage/pill_bottle/dermaline
name = "bottle of 10u Dermaline pills"
desc = "Contains pills used to treat severe burn wounds."
starts_with = list(/obj/item/reagent_containers/pill/dermaline = 7)
/obj/item/storage/pill_bottle/dylovene
name = "bottle of 15u Dylovene pills"
desc = "Contains pills used to remove toxic substances from the blood."
starts_with = list(/obj/item/reagent_containers/pill/dylovene = 7)
/obj/item/storage/pill_bottle/inaprovaline
name = "bottle of 10u Inaprovaline pills"
desc = "Contains pills used to stabilize a patient's heart activity."
starts_with = list(/obj/item/reagent_containers/pill/inaprovaline = 7)
/obj/item/storage/pill_bottle/kelotane
name = "bottle of 10u Kelotane pills"
desc = "Contains pills used to treat minor burns."
starts_with = list(/obj/item/reagent_containers/pill/kelotane = 7)
/obj/item/storage/pill_bottle/butazoline
name = "bottle of 10u Butazoline pills"
desc = "Contains pills used to severe injuries and bleeding."
starts_with = list(/obj/item/reagent_containers/pill/butazoline = 7)
/obj/item/storage/pill_bottle/cetahydramine
name = "bottle of 5u Cetahydramine pills"
desc = "Contains pills used to treat coughing, sneezing and itching."
starts_with = list(/obj/item/reagent_containers/pill/cetahydramine = 7)
/obj/item/storage/pill_bottle/mortaphenyl
name = "bottle of 10u Mortaphenyl pills"
desc = "Contains pills used to relieve severe pain in a trauma setting."
starts_with = list(/obj/item/reagent_containers/pill/mortaphenyl = 7)
/obj/item/storage/pill_bottle/perconol
name = "bottle of 10u Perconol pills"
desc = "Contains pills used to relieve minor-moderate pain and reduce fevers."
starts_with = list(/obj/item/reagent_containers/pill/perconol = 7)
/obj/item/storage/pill_bottle/minaphobin
name = "bottle of 2u Minaphobin pills"
desc = "Contains pills used to treat anxiety disorders and depression."
starts_with = list(/obj/item/reagent_containers/pill/minaphobin = 7)
/obj/item/storage/pill_bottle/rmt
name = "bottle of 15u RMT pills"
desc = "Contains pills used to remedy the effects of prolonged zero-gravity adaptations. Do not exceed 30u dosage."
starts_with = list(/obj/item/reagent_containers/pill/rmt = 10) // 10x 15u RMT pills will last 4 hours.
/obj/item/storage/pill_bottle/corophenidate
name = "bottle of 2u Corophenidate pills"
desc = "Contains pills used to improve the ability to concentrate."
starts_with = list(/obj/item/reagent_containers/pill/corophenidate = 3)
/obj/item/storage/pill_bottle/emoxanyl
name = "bottle of 2u Emoxanyl pills"
desc = "Contains pills used to treat anxiety disorders, depression and epilepsy."
starts_with = list(/obj/item/reagent_containers/pill/emoxanyl = 3)
/obj/item/storage/pill_bottle/minaphobin/small
starts_with = list(/obj/item/reagent_containers/pill/minaphobin = 3)
/obj/item/storage/pill_bottle/nerospectan
name = "bottle of 2u Nerospectan pills"
desc = "Contains pills used to treat a large variety of disorders including tourette, depression, anxiety and psychoses."
starts_with = list(/obj/item/reagent_containers/pill/nerospectan = 3)
/obj/item/storage/pill_bottle/neurapan
name = "bottle of 2u Neurapan pills"
desc = "Contains pills used to treat large variety of disorders including tourette, depression, anxiety and psychoses."
starts_with = list(/obj/item/reagent_containers/pill/neurapan= 3)
/obj/item/storage/pill_bottle/neurostabin
name = "bottle of 2u Neurostabin pills"
desc = "Contains pills used to treat psychoses and muscle weakness."
starts_with = list(/obj/item/reagent_containers/pill/neurostabin = 3)
/obj/item/storage/pill_bottle/orastabin
name = "bottle of 2u Orastabin pills"
desc = "Contains pills used to treat anxiety disorders and speech impediments."
starts_with = list(/obj/item/reagent_containers/pill/orastabin = 3)
/obj/item/storage/pill_bottle/parvosil
name = "bottle of 2u Parvosil pills"
desc = "Contains pills used to treat anxiety disorders such as phobias and social anxiety."
starts_with = list(/obj/item/reagent_containers/pill/parvosil = 3)
/obj/item/storage/pill_bottle/assorted
name = "bottle of assorted pills"
desc = "Commonly found on paramedics, these assorted pill bottles contain all the basics."
starts_with = list(
/obj/item/reagent_containers/pill/inaprovaline = 6,
/obj/item/reagent_containers/pill/dylovene = 6,
/obj/item/reagent_containers/pill/sugariron = 2,
/obj/item/reagent_containers/pill/mortaphenyl = 2,
/obj/item/reagent_containers/pill/dexalin = 2,
/obj/item/reagent_containers/pill/kelotane = 2,
/obj/item/reagent_containers/pill/hyronalin = 1
)
/obj/item/storage/pill_bottle/antidexafen
name = "bottle of 15u Antidexafen pills"
desc = "All-in-one cold medicine. 15u dose per pill. Safe for babies like you!"
starts_with = list(/obj/item/reagent_containers/pill/antidexafen = 21)
/obj/item/storage/pill_bottle/antiparasitic
name = "bottle of 5u Helmizole pills"
desc = "Contains pills used to treat parasitic infections caused by worms."
starts_with = list(/obj/item/reagent_containers/pill/antiparasitic = 8)
/obj/item/storage/pill_bottle/asinodryl
name = "bottle of 10u Asinodryl pills"
desc = "Contains pills used to treat nausea and vomiting."
starts_with = list(/obj/item/reagent_containers/pill/asinodryl = 8)
/obj/item/storage/pill_bottle/steramycin
name = "bottle of 5u Steramycin pills"
desc = "Contains prophylactic antibiotic pills."
starts_with = list(/obj/item/reagent_containers/pill/steramycin = 3)
/obj/item/storage/pill_bottle/ryetalyn
name = "bottle of 10u Ryetalyn pills"
desc = "Contains pills used to treat genetic and immune diseases."
starts_with = list(/obj/item/reagent_containers/pill/ryetalyn = 4)
/obj/item/storage/pill_bottle/caffeine
name = "bottle of 5u Caffeine pills"
desc = "Contains pills used to help with alertness and fatigue. The label warns against taking more than 2 in a 6-hour period. Possible side effects include jitteriness, heart palpitations, difficulty with concentrating, and even death."
starts_with = list(/obj/item/reagent_containers/pill/caffeine = 7)
/obj/item/storage/pill_bottle/nicotine
name = "bottle of 10u Nicotine pills"
desc = "Contains pills used to treat nicotine addiction."
starts_with = list(/obj/item/reagent_containers/pill/nicotine = 7)
/obj/item/storage/pill_bottle/vitamin
name = "bottle of 10u Vitamin supplements"
desc = "Contains pills used to treat vitamin deficiency."
starts_with = list(/obj/item/reagent_containers/pill/bio_vitamin/cheap = 7)