-
-
Notifications
You must be signed in to change notification settings - Fork 444
/
Copy pathsnacks_egg.dm
211 lines (176 loc) · 8.04 KB
/
snacks_egg.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
////////////////////////////////////////////EGGS////////////////////////////////////////////
/obj/item/reagent_containers/food/snacks/chocolateegg
name = "chocolate egg"
desc = "Such sweet, fattening food."
icon_state = "chocolateegg"
bonus_reagents = list(/datum/reagent/consumable/nutriment = 1, /datum/reagent/consumable/nutriment/vitamin = 1)
list_reagents = list(/datum/reagent/consumable/nutriment = 4, /datum/reagent/consumable/sugar = 2, /datum/reagent/consumable/coco = 2)
filling_color = "#A0522D"
tastes = list("chocolate" = 4, "sweetness" = 1)
foodtype = JUNKFOOD | SUGAR | EGG | CHOCOLATE
/obj/item/reagent_containers/food/snacks/egg
name = "egg"
desc = "An egg!"
icon_state = "egg"
list_reagents = list(/datum/reagent/consumable/eggyolk = 5, /datum/reagent/growthserum = 1)
cooked_type = /obj/item/reagent_containers/food/snacks/boiledegg
filling_color = "#F0E68C"
foodtype = EGG | RAW
grind_results = list()
var/mob/living/egg_rper
/obj/item/reagent_containers/food/snacks/egg/suicide_act(mob/living/carbon/user)
user.visible_message(span_suicide("[user] RPs as [src]!"))
if(istype(user) && user.mind)
egg_rper = new(src)
egg_rper.real_name = name
egg_rper.name = name
egg_rper.set_stat(CONSCIOUS)
user.mind.transfer_to(egg_rper)
return BRUTELOSS
/obj/item/reagent_containers/food/snacks/egg/Destroy()
qdel(egg_rper)
. = ..()
/obj/item/reagent_containers/food/snacks/egg/gland
desc = "An egg! It looks weird..."
/obj/item/reagent_containers/food/snacks/egg/gland/Initialize(mapload)
. = ..()
reagents.add_reagent(get_random_reagent_id(), 15)
var/color = mix_color_from_reagents(reagents.reagent_list)
add_atom_colour(color, FIXED_COLOUR_PRIORITY)
/obj/item/reagent_containers/food/snacks/egg/throw_impact(atom/hit_atom, datum/thrownthing/throwingdatum)
if(!..()) //was it caught by a mob?
var/turf/T = get_turf(hit_atom)
new/obj/effect/decal/cleanable/food/egg_smudge(T)
reagents.reaction(hit_atom, TOUCH)
qdel(src)
/obj/item/reagent_containers/food/snacks/egg/afterattack_secondary(atom/target, mob/user, proximity_flag, click_parameters)
. = ..()
if(. == SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN)
return
if(!istype(target, /obj/machinery/griddle))
return SECONDARY_ATTACK_CALL_NORMAL
var/atom/broken_egg = new /obj/item/reagent_containers/food/snacks/rawegg(target.loc)
broken_egg.pixel_x = pixel_x
broken_egg.pixel_y = pixel_y
reagents.copy_to(broken_egg,reagents.total_volume)
var/obj/machinery/griddle/hit_griddle = target
hit_griddle.AddToGrill(broken_egg, user)
qdel(src)
return SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN
/obj/item/reagent_containers/food/snacks/egg/attackby(obj/item/W, mob/user, params)
if(istype(W, /obj/item/toy/crayon))
var/obj/item/toy/crayon/C = W
var/clr = C.crayon_color
if(!(clr in list("blue", "green", "mime", "orange", "purple", "rainbow", "red", "yellow")))
to_chat(usr, span_notice("[src] refuses to take on this colour!"))
return
to_chat(usr, span_notice("You colour [src] with [W]."))
icon_state = "egg-[clr]"
else if(istype(W, /obj/item/stamp/clown))
var/clowntype = pick("grock", "grimaldi", "rainbow", "chaos", "joker", "sexy", "standard", "bobble", "krusty", "bozo", "pennywise", "ronald", "jacobs", "kelly", "popov", "cluwne")
icon_state = "egg-clown-[clowntype]"
desc = "An egg that has been decorated with the grotesque, robustable likeness of a clown's face. "
to_chat(usr, span_notice("You stamp [src] with [W], creating an artistic and not remotely horrifying likeness of clown makeup."))
else
..()
/obj/item/reagent_containers/food/snacks/egg/blue
icon_state = "egg-blue"
/obj/item/reagent_containers/food/snacks/egg/green
icon_state = "egg-green"
/obj/item/reagent_containers/food/snacks/egg/mime
icon_state = "egg-mime"
/obj/item/reagent_containers/food/snacks/egg/orange
icon_state = "egg-orange"
/obj/item/reagent_containers/food/snacks/egg/purple
icon_state = "egg-purple"
/obj/item/reagent_containers/food/snacks/egg/rainbow
icon_state = "egg-rainbow"
/obj/item/reagent_containers/food/snacks/egg/red
icon_state = "egg-red"
/obj/item/reagent_containers/food/snacks/egg/yellow
icon_state = "egg-yellow"
/obj/item/reagent_containers/food/snacks/rawegg
name = "raw egg"
desc = "Supposedly good for you, if you can stomach it. Better fried."
icon_state = "rawegg"
bitesize = 1
list_reagents = list(/datum/reagent/consumable/eggyolk = 5, /datum/reagent/growthserum = 1)
tastes = list("raw egg" = 6, "sliminess" = 1)
foodtype = EGG | RAW
/obj/item/reagent_containers/food/snacks/rawegg/MakeGrillable()
AddComponent(/datum/component/grillable, /obj/item/reagent_containers/food/snacks/friedegg, rand(20 SECONDS, 35 SECONDS), TRUE, FALSE)
/obj/item/reagent_containers/food/snacks/friedegg
name = "fried egg"
desc = "A fried egg. Would go well with a touch of salt and pepper."
icon_state = "friedegg"
bonus_reagents = list(/datum/reagent/consumable/nutriment = 1, /datum/reagent/consumable/nutriment/vitamin = 1)
bitesize = 1
filling_color = "#FFFFF0"
list_reagents = list(/datum/reagent/consumable/eggyolk = 2, /datum/reagent/consumable/nutriment = 3)
tastes = list("egg" = 4)
foodtype = FRIED | BREAKFAST | EGG
burns_on_grill = TRUE
/obj/item/reagent_containers/food/snacks/boiledegg
name = "boiled egg"
desc = "A hard boiled egg."
icon_state = "egg"
bonus_reagents = list(/datum/reagent/consumable/nutriment = 1, /datum/reagent/consumable/nutriment/vitamin = 1)
filling_color = "#FFFFF0"
list_reagents = list(/datum/reagent/consumable/nutriment = 2, /datum/reagent/consumable/nutriment/vitamin = 1)
tastes = list("egg" = 1)
foodtype = BREAKFAST | EGG
/obj/item/reagent_containers/food/snacks/omelette
name = "omelette du fromage"
desc = "That's all you can say!"
icon_state = "omelette"
bonus_reagents = list(/datum/reagent/consumable/nutriment = 1, /datum/reagent/consumable/nutriment/vitamin = 2)
list_reagents = list(/datum/reagent/consumable/nutriment = 8, /datum/reagent/consumable/nutriment/vitamin = 1)
bitesize = 1
w_class = WEIGHT_CLASS_NORMAL
tastes = list("egg" = 1, "cheese" = 1)
foodtype = BREAKFAST | EGG | DAIRY
/obj/item/reagent_containers/food/snacks/omelette/attackby(obj/item/W, mob/user, params)
if(istype(W, /obj/item/kitchen/fork))
var/obj/item/kitchen/fork/F = W
if(F.forkload)
to_chat(user, span_warning("You already have [F.loaded_food] on your fork!"))
else
F.icon_state = "forkloaded_egg"
user.visible_message("[user] takes a piece of omelette with [user.p_their()] fork!", \
span_notice("You take a piece of omelette with your fork."))
var/datum/reagent/R = pick(reagents.reagent_list)
reagents.remove_reagent(R.type, 1)
F.forkload = R
F.loaded_food = "omeletee"
if(reagents.total_volume <= 0)
qdel(src)
return
..()
/obj/item/reagent_containers/food/snacks/benedict
name = "eggs benedict"
desc = "There is only one egg on this, how rude."
icon_state = "benedict"
bonus_reagents = list(/datum/reagent/consumable/nutriment/vitamin = 4)
w_class = WEIGHT_CLASS_NORMAL
list_reagents = list(/datum/reagent/consumable/nutriment = 6, /datum/reagent/consumable/nutriment/vitamin = 4)
tastes = list("egg" = 1, "bacon" = 1, "bread" = 1)
foodtype = MEAT | BREAKFAST | EGG
/obj/item/reagent_containers/food/snacks/spidereggsham
name = "green eggs and ham"
desc = "Would you eat them on a train? Would you eat them on a plane? Would you eat them on a state of the art corporate deathtrap floating through space?"
icon_state = "spidereggsham"
bonus_reagents = list(/datum/reagent/consumable/nutriment = 1, /datum/reagent/consumable/nutriment/vitamin = 3)
list_reagents = list(/datum/reagent/consumable/nutriment = 6)
bitesize = 4
filling_color = "#7FFF00"
tastes = list("meat" = 1, "cobwebs" = 1, "salt" = 1)
foodtype = MEAT | EGG
/obj/item/reagent_containers/food/snacks/eggwrap
name = "egg wrap"
desc = "The precursor to pigs in a blanket."
icon_state = "eggwrap"
bonus_reagents = list(/datum/reagent/consumable/nutriment = 1, /datum/reagent/consumable/nutriment/vitamin = 3)
list_reagents = list(/datum/reagent/consumable/nutriment = 5)
filling_color = "#F0E68C"
tastes = list("egg" = 1)
foodtype = GRAIN | EGG | VEGETABLES