-
-
Notifications
You must be signed in to change notification settings - Fork 444
/
Copy pathkitchen.dm
302 lines (267 loc) · 11.2 KB
/
kitchen.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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
/* Kitchen tools
* Contains:
* Fork
* Kitchen knives
* Ritual Knife
* Holy Ritual Knife
* Bloodletter
* Butcher's cleaver
* Combat Knife
* Rolling Pins
* Shank
* Makeshift knives
*/
/obj/item/kitchen
icon = 'icons/obj/kitchen.dmi'
lefthand_file = 'icons/mob/inhands/equipment/kitchen_lefthand.dmi'
righthand_file = 'icons/mob/inhands/equipment/kitchen_righthand.dmi'
/obj/item/kitchen/fork
name = "fork"
desc = "Pointy."
icon_state = "fork"
force = 4
w_class = WEIGHT_CLASS_TINY
throwforce = 0
throw_speed = 3
throw_range = 5
materials = list(/datum/material/iron=80)
flags_1 = CONDUCT_1
attack_verb = list("attacked", "stabbed", "poked")
hitsound = 'sound/weapons/bladeslice.ogg'
armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 0, RAD = 0, FIRE = 50, ACID = 30)
sharpness = SHARP_POINTY
var/datum/reagent/forkload //used to eat omelette
var/loaded_food = "nothing" /// The name of the thing on the fork
/obj/item/kitchen/fork/suicide_act(mob/living/carbon/user)
user.visible_message(span_suicide("[user] stabs \the [src] into [user.p_their()] chest! It looks like [user.p_theyre()] trying to take a bite out of [user.p_them()]self!"))
playsound(src, 'sound/items/eatfood.ogg', 50, 1)
return BRUTELOSS
/obj/item/kitchen/fork/attack(mob/living/carbon/M, mob/living/carbon/user)
if(!istype(M))
return ..()
var/mob/living/carbon/human/H = M // For use in a later if, placed here so it can be used in the else-if chain
if(forkload)
if(M == user)
M.visible_message(span_notice("[user] eats a delicious forkful of [loaded_food]!"))
M.reagents.add_reagent(forkload.type, 1)
else
M.visible_message(span_notice("[user] is trying to feed [M] a delicious forkful of [loaded_food]!")) //yogs start
if(!do_after(user, 3 SECONDS, M))
return
log_combat(user, M, "fed [loaded_food]", forkload.type) //yogs end
M.visible_message(span_notice("[user] feeds [M] a delicious forkful of [loaded_food]!"))
M.reagents.add_reagent(forkload.type, 1)
icon_state = "fork"
forkload = null
loaded_food = "nothing"
else if(user.zone_selected == BODY_ZONE_HEAD && M == user && ishuman(M) && H.creamed)
if(HAS_TRAIT(user, TRAIT_CLUMSY) && prob(50))
return eyestab(M,user)
icon_state = "forkloaded_pie"
user.visible_message("[user] scoops up the pie with [user.p_their()] fork!", \
span_notice("You scoop up the pie with your fork."))
var/datum/reagent/R = new /datum/reagent/consumable/banana
forkload = R
loaded_food = "pie"
H.wash_cream()
else if(user.zone_selected == BODY_ZONE_PRECISE_EYES)
if(HAS_TRAIT(user, TRAIT_CLUMSY) && prob(50))
M = user
return eyestab(M,user)
else
return ..()
/obj/item/kitchen/knife
name = "kitchen knife"
desc = "A general purpose Chef's Knife made by SpaceCook Incorporated. Guaranteed to stay sharp for years to come."
icon = 'icons/obj/weapons/shortsword.dmi'
icon_state = "knife"
item_state = "knife"
flags_1 = CONDUCT_1
force = 10
w_class = WEIGHT_CLASS_SMALL
throwforce = 10
hitsound = 'sound/weapons/bladeslice.ogg'
throw_speed = 3
throw_range = 6
demolition_mod = 0.8
materials = list(/datum/material/iron=12000)
attack_verb = list("slashed", "stabbed", "sliced", "torn", "ripped", "diced", "cut")
sharpness = SHARP_EDGED
armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 0, RAD = 0, FIRE = 50, ACID = 50)
var/bayonet = TRUE //Can this be attached to a gun?
custom_price = 30
wound_bonus = 5
bare_wound_bonus = 15
/obj/item/kitchen/knife/Initialize(mapload)
. = ..()
AddComponent(/datum/component/butchering, 80 - force, 100, force - 10) //bonus chance increases depending on force
/obj/item/kitchen/knife/attack(mob/living/carbon/M, mob/living/carbon/user, params)
var/list/modifiers = params2list(params)
if(!user.combat_mode && attempt_initiate_surgery(src, M, user, modifiers))
return TRUE
else if(user.zone_selected == BODY_ZONE_PRECISE_EYES)
if(HAS_TRAIT(user, TRAIT_CLUMSY) && prob(50))
M = user
return eyestab(M,user)
else
return ..()
/obj/item/kitchen/knife/suicide_act(mob/user)
user.visible_message(pick(span_suicide("[user] is slitting [user.p_their()] wrists with the [name]! It looks like [user.p_theyre()] trying to commit suicide."), \
span_suicide("[user] is slitting [user.p_their()] throat with the [name]! It looks like [user.p_theyre()] trying to commit suicide."), \
span_suicide("[user] is slitting [user.p_their()] stomach open with the [name]! It looks like [user.p_theyre()] trying to commit seppuku.")))
return BRUTELOSS
/obj/item/kitchen/knife/ritual
name = "ritual knife"
desc = "The unearthly energies that once powered this blade are now dormant."
icon = 'icons/obj/weapons/khopesh.dmi'
icon_state = "render"
lefthand_file = 'icons/mob/inhands/equipment/kitchen_lefthand.dmi'
righthand_file = 'icons/mob/inhands/equipment/kitchen_righthand.dmi'
w_class = WEIGHT_CLASS_NORMAL
/obj/item/kitchen/knife/ritual/holy
name = "ruinous knife"
desc = "The runes inscribed on the knife radiate a strange power. It looks like it could have more runes inscribed upon it..."
/obj/item/kitchen/knife/ritual/holy/strong
name = "great ruinous knife"
desc = "A heavy knife inscribed with dozens of runes."
force = 15
/obj/item/kitchen/knife/ritual/holy/strong/blood
name = "blood-soaked ruinous knife"
desc = "Runes stretch across the surface of the knife, seemingly endless."
wound_bonus = 20 //a bit better than a butcher cleaver, you've earned it for finding blood cult metal and doing the previous steps
/obj/item/kitchen/knife/ritual/holy/Initialize(mapload)
. = ..()
AddComponent(/datum/component/butchering, 70, 110) //the old gods demandeth more flesh output
/obj/item/kitchen/knife/bloodletter
name = "bloodletter"
desc = "An occult looking dagger that is cold to the touch. Somehow, the flawless orb on the pommel is made entirely of liquid blood."
icon = 'icons/obj/ice_moon/artifacts.dmi'
icon_state = "bloodletter"
w_class = WEIGHT_CLASS_NORMAL
/obj/item/kitchen/knife/bloodletter/attack(mob/living/M, mob/living/carbon/user)
. =..()
if(istype(M) && (M.mob_biotypes & MOB_ORGANIC))
var/datum/status_effect/saw_bleed/bloodletting/B = M.has_status_effect(/datum/status_effect/saw_bleed/bloodletting)
if(!B)
M.apply_status_effect(STATUS_EFFECT_BLOODLETTING)
else
B.add_bleed(B.bleed_buildup)
/obj/item/kitchen/knife/butcher
name = "butcher's cleaver"
icon_state = "butch"
item_state = "butch"
desc = "A huge thing used for chopping and chopping up meat. This includes clowns and clown by-products."
flags_1 = CONDUCT_1
force = 15
throwforce = 10
materials = list(/datum/material/iron=18000)
attack_verb = list("cleaved", "slashed", "stabbed", "sliced", "torn", "ripped", "diced", "cut")
w_class = WEIGHT_CLASS_NORMAL
custom_price = 60
bayonet = TRUE
wound_bonus = 15
/obj/item/kitchen/knife/combat
name = "combat knife"
icon_state = "buckknife"
desc = "A military combat utility survival knife."
embedding = list("embedded_pain_multiplier" = 4, "embed_chance" = 65, "embedded_fall_chance" = 10, "embedded_ignore_throwspeed_threshold" = TRUE)
force = 20
throwforce = 20
attack_verb = list("slashed", "stabbed", "sliced", "torn", "ripped", "cut")
bayonet = TRUE
wound_bonus = 10
/obj/item/kitchen/knife/combat/survival
name = "survival knife"
icon_state = "survivalknife"
embedding = list("embedded_pain_multiplier" = 4, "embed_chance" = 35, "embedded_fall_chance" = 10)
desc = "A hunting grade survival knife."
force = 15
throwforce = 15
bayonet = TRUE
/obj/item/kitchen/knife/combat/bone
name = "bone dagger"
item_state = "bone_dagger"
icon_state = "bone_dagger"
lefthand_file = 'icons/mob/inhands/weapons/swords_lefthand.dmi'
righthand_file = 'icons/mob/inhands/weapons/swords_righthand.dmi'
desc = "A sharpened bone. The bare minimum in survival."
embedding = list("embedded_pain_multiplier" = 4, "embed_chance" = 35, "embedded_fall_chance" = 10)
force = 15
throwforce = 15
materials = list()
bayonet = TRUE
/obj/item/kitchen/knife/combat/cyborg
name = "cyborg knife"
icon_state = "cyborg_knife"
desc = "A cyborg-mounted plasteel knife. Extremely sharp and durable."
/obj/item/kitchen/knife/carrotshiv
name = "carrot shiv"
icon_state = "carrotshiv"
item_state = "carrotshiv"
lefthand_file = 'icons/mob/inhands/weapons/swords_lefthand.dmi'
righthand_file = 'icons/mob/inhands/weapons/swords_righthand.dmi'
desc = "Unlike other carrots, you should probably keep this far away from your eyes."
force = 8
throwforce = 12//fuck git
max_integrity = 100
weapon_stats = list(SWING_SPEED = 0.8, ENCUMBRANCE = 0, ENCUMBRANCE_TIME = 0, REACH = 1, DAMAGE_LOW = 5, DAMAGE_HIGH = 7)
break_message = "%SRC snaps into unusable carrot-bits"
materials = list()
attack_verb = list("shanked", "shivved")
armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 0, RAD = 0, FIRE = 0, ACID = 0)
/obj/item/kitchen/knife/carrotshiv/suicide_act(mob/living/carbon/user)
user.visible_message(span_suicide("[user] forcefully drives \the [src] into [user.p_their()] eye! It looks like [user.p_theyre()] trying to commit suicide!"))
return BRUTELOSS
// Shank - Makeshift weapon that can embed on throw
/obj/item/kitchen/knife/shank
name = "shank"
desc = "A crude knife fashioned by securing a glass shard and a rod together with cables, and welding them together."
icon_state = "shank"
item_state = "shank"
slot_flags = ITEM_SLOT_BELT | ITEM_SLOT_EARS
lefthand_file = 'icons/mob/inhands/weapons/swords_lefthand.dmi'
righthand_file = 'icons/mob/inhands/weapons/swords_righthand.dmi'
force = 6
throwforce = 8
throw_speed = 5 //yeets
armour_penetration = 5
max_integrity = 100
weapon_stats = list(SWING_SPEED = 0.8, ENCUMBRANCE = 0, ENCUMBRANCE_TIME = 0, REACH = 1, DAMAGE_LOW = 5, DAMAGE_HIGH = 7)
embedding = list("embedded_pain_multiplier" = 3, "embed_chance" = 20, "embedded_fall_chance" = 10) // Incentive to disengage/stop chasing when stuck
attack_verb = list("stuck", "shanked", "stabbed", "shivved")
materials = list(/datum/material/iron=1150, /datum/material/glass=2075)
/obj/item/kitchen/rollingpin
name = "rolling pin"
desc = "Used to knock out the Bartender."
icon_state = "rolling_pin"
force = 8
throwforce = 5
throw_speed = 3
throw_range = 7
w_class = WEIGHT_CLASS_NORMAL
attack_verb = list("bashed", "battered", "bludgeoned", "thrashed", "whacked")
custom_price = 20
/obj/item/kitchen/rollingpin/suicide_act(mob/living/carbon/user)
user.visible_message(span_suicide("[user] begins flattening [user.p_their()] head with \the [src]! It looks like [user.p_theyre()] trying to commit suicide!"))
return BRUTELOSS
/obj/item/kitchen/knife/makeshift
name = "makeshift knife"
desc = "A flimsy, poorly made replica of a classic cooking utensil."
icon_state = "knife_makeshift"
force = 8
throwforce = 8
/obj/item/kitchen/knife/makeshift/afterattack(atom/target, mob/user, proximity_flag, click_parameters)
..()
if(prob(5))
to_chat(user, span_danger("[src] crumbles apart in your hands!"))
qdel(src)
return
/obj/item/kitchen/knife/plug_bayonet
name = "plug bayonet"
desc = "A knife blade that has been pounded into some wood."
icon_state = "plug_bayonet"
bayonet = FALSE
/obj/item/kitchen/knife/plug_bayonet/examine(mob/user)
. = ..()
. += span_info("It can be used on a <b>maintenance musket</b> to plug its barrel.")
/* Trays moved to /obj/item/storage/bag */