/
shellfish.dm
182 lines (139 loc) · 5.16 KB
/
shellfish.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
/obj/item/shellfish
abstract_type = /obj/item/shellfish
name = "shellfish"
desc = "You shouldn't be seeing this."
icon = 'icons/obj/food/food_shellfish.dmi'
icon_state = "clam"
w_class = ITEM_SIZE_SMALL
throwforce = 0
throw_speed = 4
throw_range = 20
/// The /obj/item/reagent_containers/food/snacks/shellfish/* path this shellfish becomes when opened.
var/snack_path
/obj/item/shellfish/use_tool(obj/item/item, mob/living/user, list/click_params)
if (!item.sharp)
return ..()
to_chat(user, SPAN_NOTICE("You start to pry open \the [src]."))
if (!user.do_skilled((item.toolspeed * 2) SECONDS, SKILL_COOKING, user))
return TRUE
if (!prob(user.skill_fail_chance(SKILL_COOKING, 80, SKILL_TRAINED)))
to_chat(user, SPAN_NOTICE("You carefully clean and open \the [src]."))
new snack_path (get_turf(src))
qdel(src)
return TRUE
if (isrobot(user))
to_chat(user, SPAN_WARNING("You slip, failing to open \the [src]."))
return TRUE
if (ishuman(user))
var/mob/living/carbon/human/human = user
if (human.gloves?.item_flags & ITEM_FLAG_THICKMATERIAL)
to_chat(human, SPAN_WARNING("You slip while trying to open \the [src] but your [human.gloves.name] protect you."))
return TRUE
user.visible_message(
SPAN_WARNING("\The [user] slips and is cut while trying to open \a [src]."),
SPAN_WARNING("You slip and are cut while trying to open \the [src].")
)
playsound(loc, 'sound/weapons/bladeslice.ogg', 50, TRUE)
user.apply_damage(2, DAMAGE_BRUTE, pick(BP_R_HAND, BP_L_HAND), damage_flags = DAMAGE_FLAG_SHARP)
return TRUE
/obj/item/shellfish/clam
name = "clam"
desc = "A fresh clam. Needs to be cracked open before eating."
icon_state = "clam"
snack_path = /obj/item/reagent_containers/food/snacks/shellfish/clam
/obj/item/shellfish/mussel
name = "mussel"
desc = "A fresh mussel. Needs to be cracked open before eating."
icon_state = "mussel"
snack_path = /obj/item/reagent_containers/food/snacks/shellfish/mussel
/obj/item/shellfish/oyster
name = "oyster"
desc = "A fresh oyster. Needs to be cracked open before eating."
icon_state = "oyster"
snack_path = /obj/item/reagent_containers/food/snacks/shellfish/oyster
/obj/item/shellfish/shrimp
name = "shrimp"
desc = "A fresh shrimp. Needs to be cracked open before eating."
icon_state = "shrimp"
snack_path = /obj/item/reagent_containers/food/snacks/shellfish/shrimp
/obj/item/shellfish/crab
name = "crab"
desc = "A fresh crab. Mind the pincers."
icon_state = "crab"
snack_path = /obj/item/reagent_containers/food/snacks/shellfish/crab
/obj/item/reagent_containers/food/snacks/shellfish
abstract_type = /obj/item/reagent_containers/food/snacks/shellfish
name = "raw shellfish"
desc = "You shouldn't be seeing this."
icon = 'icons/obj/food/food_shellfish.dmi'
icon_state = "clam_open"
filling_color = "#f6db93"
bitesize = 4
center_of_mass = "x=16;y=16"
sushi_overlay = "fish"
/obj/item/reagent_containers/food/snacks/shellfish/clam
name = "raw clam"
desc = "A tasty clam, ready to use. Slightly calamitous."
icon_state = "clam_open"
filling_color = "#f6db93"
trash = /obj/item/shell/clam
/obj/item/reagent_containers/food/snacks/shellfish/clam/Initialize()
. = ..()
reagents.add_reagent(/datum/reagent/nutriment/protein, 5)
/obj/item/reagent_containers/food/snacks/shellfish/mussel
name = "raw mussel"
desc = "A tasty mussel, ready to use. Goes nicely with white wine."
icon_state = "mussel_open"
filling_color = "#eea82d"
trash = /obj/item/shell/mussel
/obj/item/reagent_containers/food/snacks/shellfish/mussel/Initialize()
. = ..()
reagents.add_reagent(/datum/reagent/nutriment/protein, 3)
/obj/item/reagent_containers/food/snacks/shellfish/oyster
name = "raw oyster"
desc = "A tasty oyster, ready to use. Its shell is pretty sharp."
icon_state = "oyster_open"
filling_color = "#ffdec0"
trash = /obj/item/shell/oyster
/obj/item/reagent_containers/food/snacks/shellfish/oyster/Initialize()
. = ..()
reagents.add_reagent(/datum/reagent/nutriment/protein, 4)
/obj/item/reagent_containers/food/snacks/shellfish/shrimp
name = "raw shrimp"
desc = "A tasty shrimp, ready to use. Eat too much and you'll get sick."
icon_state = "shrimp_meat"
filling_color = "#ffdfc5"
sushi_overlay = "shrimp"
/obj/item/reagent_containers/food/snacks/shellfish/shrimp/Initialize()
. = ..()
reagents.add_reagent(/datum/reagent/nutriment/protein, 3)
/obj/item/reagent_containers/food/snacks/shellfish/crab
name = "raw crab legs"
desc = "Meat from a crustacean. Don't get crabby."
icon_state = "crab_meat"
filling_color = "#e8d9c8"
bitesize = 3
sushi_overlay = "crab"
/obj/item/reagent_containers/food/snacks/shellfish/crab/Initialize()
. = ..()
reagents.add_reagent(/datum/reagent/nutriment/protein, 6)
/obj/item/shell
abstract_type = /obj/item/shell
name = "shell"
desc = "An empty shell."
icon = 'icons/obj/food/food_shellfish.dmi'
icon_state = "clam_empty"
w_class = ITEM_SIZE_TINY
throw_speed = 4
/obj/item/shell/clam
name = "clam shell"
desc = "An empty clam shell."
icon_state = "clam_empty"
/obj/item/shell/mussel
name = "mussel shell"
desc = "An empty mussel shell."
icon_state = "mussel_empty"
/obj/item/shell/oyster
name = "oyster shell"
desc = "An empty oyster shell."
icon_state = "oyster_empty"