-
-
Notifications
You must be signed in to change notification settings - Fork 444
/
Copy pathsnacks_vend.dm
221 lines (202 loc) · 8.75 KB
/
snacks_vend.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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
////////////////////////////////////////////SNACKS FROM VENDING MACHINES////////////////////////////////////////////
//in other words: junk food
//don't even bother looking for recipes for these
/obj/item/reagent_containers/food/snacks/candy
name = "candy"
desc = "Nougat love it or hate it."
icon_state = "candy"
trash = /obj/item/trash/candy
list_reagents = list(/datum/reagent/consumable/nutriment = 1, /datum/reagent/consumable/sugar = 3)
junkiness = 25
filling_color = "#D2691E"
tastes = list("candy" = 1)
foodtype = JUNKFOOD | SUGAR
/obj/item/reagent_containers/food/snacks/sosjerky
name = "\improper Scaredy's Private Reserve Beef Jerky"
desc = "Beef jerky made from the finest space cows."
lefthand_file = 'yogstation/icons/mob/inhands/lefthand.dmi'
righthand_file = 'yogstation/icons/mob/inhands/righthand.dmi'
icon_state = "sosjerky"
item_state = "sosjerky"
trash = /obj/item/trash/sosjerky
list_reagents = list(/datum/reagent/consumable/nutriment = 1, /datum/reagent/consumable/sugar = 3, /datum/reagent/consumable/sodiumchloride = 2)
junkiness = 25
filling_color = "#8B0000"
tastes = list("dried meat" = 1)
foodtype = JUNKFOOD | MEAT | SUGAR
/obj/item/reagent_containers/food/snacks/sosjerky/healthy
name = "homemade beef jerky"
desc = "Homemade beef jerky made from the finest space cows."
list_reagents = list(/datum/reagent/consumable/nutriment = 3, /datum/reagent/consumable/nutriment/vitamin = 1)
junkiness = 0
foodtype = JUNKFOOD | MEAT
/obj/item/reagent_containers/food/snacks/chips
name = "chips"
desc = "Commander Riker's What-The-Crisps."
lefthand_file = 'yogstation/icons/mob/inhands/lefthand.dmi'
righthand_file = 'yogstation/icons/mob/inhands/righthand.dmi'
icon_state = "chips"
item_state = "chips"
trash = /obj/item/trash/chips
bitesize = 1
list_reagents = list(/datum/reagent/consumable/nutriment = 1, /datum/reagent/consumable/sugar = 3, /datum/reagent/consumable/sodiumchloride = 1)
junkiness = 20
filling_color = "#FFD700"
tastes = list("salt" = 1, "crisps" = 1)
foodtype = JUNKFOOD | FRIED
/obj/item/reagent_containers/food/snacks/no_raisin
name = "4no raisins"
desc = "Best raisins in the universe. Not sure why."
lefthand_file = 'yogstation/icons/mob/inhands/lefthand.dmi'
righthand_file = 'yogstation/icons/mob/inhands/righthand.dmi'
icon_state = "4no_raisins"
item_state = "4no_raisins"
trash = /obj/item/trash/raisins
list_reagents = list(/datum/reagent/consumable/nutriment = 2, /datum/reagent/consumable/sugar = 4)
junkiness = 25
filling_color = "#8B0000"
tastes = list("dried raisins" = 1)
foodtype = JUNKFOOD | FRUIT | SUGAR
custom_price = 30
/obj/item/reagent_containers/food/snacks/no_raisin/healthy
name = "homemade raisins"
desc = "Homemade raisins, the best in all of spess."
list_reagents = list(/datum/reagent/consumable/nutriment = 3, /datum/reagent/consumable/nutriment/vitamin = 2)
junkiness = 0
foodtype = FRUIT
/obj/item/reagent_containers/food/snacks/spacetwinkie
name = "space twinkie"
desc = "Guaranteed to survive longer than you will."
lefthand_file = 'yogstation/icons/mob/inhands/lefthand.dmi'
righthand_file = 'yogstation/icons/mob/inhands/righthand.dmi'
icon_state = "space_twinkie"
item_state = "space_twinkie"
list_reagents = list(/datum/reagent/consumable/sugar = 4)
junkiness = 25
filling_color = "#FFD700"
foodtype = JUNKFOOD | GRAIN | SUGAR
custom_price = 11
/obj/item/reagent_containers/food/snacks/cheesiehonkers
name = "cheesie honkers"
desc = "Bite sized cheesie snacks that will honk all over your mouth."
lefthand_file = 'yogstation/icons/mob/inhands/lefthand.dmi'
righthand_file = 'yogstation/icons/mob/inhands/righthand.dmi'
icon_state = "cheesie_honkers"
item_state = "cheesie_honkers"
trash = /obj/item/trash/cheesie
list_reagents = list(/datum/reagent/consumable/nutriment = 1, /datum/reagent/consumable/sugar = 3)
junkiness = 25
filling_color = "#FFD700"
tastes = list("cheese" = 5, "crisps" = 2)
foodtype = JUNKFOOD | DAIRY | SUGAR
custom_price = 16
/obj/item/reagent_containers/food/snacks/syndicake
name = "syndi-cakes"
desc = "An extremely moist snack cake that tastes just as good after being nuked."
lefthand_file = 'yogstation/icons/mob/inhands/lefthand.dmi'
righthand_file = 'yogstation/icons/mob/inhands/righthand.dmi'
icon_state = "syndi_cakes"
item_state = "syndi_cakes"
trash = /obj/item/trash/syndi_cakes
list_reagents = list(/datum/reagent/consumable/nutriment = 4, /datum/reagent/consumable/doctor_delight = 5)
filling_color = "#F5F5DC"
tastes = list("sweetness" = 3, "cake" = 1)
foodtype = GRAIN | FRUIT | VEGETABLES
/obj/item/reagent_containers/food/snacks/energybar
name = "High-power energy bars"
desc = "An energy bar with a lot of punch, you probably shouldn't eat this if you don't run on electricity.."
icon_state = "energybar"
trash = /obj/item/trash/energybar
list_reagents = list(/datum/reagent/consumable/nutriment = 3, /datum/reagent/consumable/liquidelectricity = 4)
filling_color = "#97ee63"
tastes = list("pure electricity" = 3, "fitness" = 2)
foodtype = TOXIC
/obj/item/reagent_containers/food/snacks/toritose
name = "toritose"
desc = "An excellent snack when you need it, however they become salty real fast. Hopefully stands on its own in the market."
icon_state = "toritose"
trash = /obj/item/trash/toritose
list_reagents = list(/datum/reagent/consumable/nutriment = 1, /datum/reagent/consumable/sugar = 1, /datum/reagent/consumable/sodiumchloride = 5)
junkiness = 21
filling_color = "#FF0000"
tastes = list("salt" = 3, "crunchiness" = 1)
foodtype = JUNKFOOD | GRAIN | FRIED
custom_price = 15
/obj/item/reagent_containers/food/snacks/borer
name = "borer yummies"
desc = "So good they'll squeeze your brains out!"
icon_state = "blueyum"
bitesize = 2
list_reagents = list(/datum/reagent/consumable/nutriment = 1, /datum/reagent/consumable/sugar = 2)
junkiness = 12
tastes = list("a squirming sensation down your throat" = 3, "sweetness" = 1)
foodtype = JUNKFOOD | FRUIT | SUGAR
custom_price = 5
/obj/item/reagent_containers/food/snacks/kakes
name = "top kakes"
desc = "Sugary bitesized cake delights guaranteed to keep you up all night!"
trash = /obj/item/trash/topkakes
icon_state = "topkakes"
list_reagents = list(/datum/reagent/consumable/nutriment = 3, /datum/reagent/consumable/sugar = 6)
filling_color = "#F5F5DC"
tastes = list("sweetness" = 3, "cake" = 1)
foodtype = JUNKFOOD | GRAIN | SUGAR
custom_price = 20
/obj/item/reagent_containers/food/snacks/tatorling
name = "tatorling branded cereal"
desc = "The most consumed brand of cereal! 8+ Only. (WARNING: CHOKING HAZARD.)"
icon_state = "tatorling"
list_reagents = list(/datum/reagent/consumable/nutriment = 5, /datum/reagent/consumable/nutriment/vitamin = 3, /datum/reagent/consumable/sodiumchloride = 1, /datum/reagent/consumable/sugar = 6)
tastes = list("murderbone" = 1, "lime" = 3, "strawberry" = 3)
foodtype = GRAIN | FRUIT | BREAKFAST
var/opened = FALSE
var/searched = FALSE
/obj/item/reagent_containers/food/snacks/tatorling/attack_self(mob/living/user)
if(!opened)
playsound(src.loc, 'sound/items/poster_ripped.ogg', 50, 1)
if(HAS_TRAIT(user, TRAIT_CLUMSY))
to_chat(user, span_warning("You rip open the [src]!"))
else
to_chat(user, span_notice("You open the [src]."))
icon_state += "_open"
opened = TRUE
else
if(!searched)
if(DOING_INTERACTION(user, src))
return
to_chat(user, span_warning("You start searching for the toy..."))
if(!do_after(user, 1.5 SECONDS, src))
return
if(prob(50))
switch(rand(1,2))
if(1)
new /obj/item/toy/figure/ling(get_turf(src))
if(2)
new /obj/item/toy/figure/traitor(get_turf(src))
to_chat(user, span_notice("You found a toy! Yay!"))
else
to_chat(user, span_warning("You didn't find anything..."))
user.emote("cry")
return searched = TRUE
. = ..()
/obj/item/reagent_containers/food/snacks/tatorling/attack(mob/living/M, mob/user, def_zone)
if(!opened)
to_chat(user, span_warning("[src]'s lid hasn't been opened!"))
return FALSE
return ..()
/obj/item/reagent_containers/food/snacks/vermin
name = "vermin bites"
desc = "A small can with a cartoon mouse on the label. A noise that sounds suspiciously like squeaking can be heard coming from inside."
icon_state = "verminbites"
trash = /obj/item/trash/vermin
/// What animal does the snack contain?
var/mob/living/simple_animal/mouse/fat/contained_animal
/obj/item/reagent_containers/food/snacks/vermin/attack_self(mob/user)
. = ..()
contained_animal = new /mob/living/simple_animal/mouse/fat(get_turf(src))
to_chat(user, span_warning("You pry open the [src]. A [contained_animal.name] falls out from inside!"))
qdel(src)
user.put_in_hands(new /obj/item/trash/vermin) //give trash
/obj/item/reagent_containers/food/snacks/vermin/attack(mob/living/M, mob/user, def_zone)
to_chat(user, span_warning("You need to open [src]' lid first."))
return FALSE