-
Notifications
You must be signed in to change notification settings - Fork 103
/
Copy pathstorage.dm
190 lines (174 loc) · 6.47 KB
/
storage.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
/obj/item/storage/ms13/Initialize()
. = ..()
reset_grid_inventory()
// Storage code
/obj/item/storage/firstaid/ms13
name = "first aid kit"
desc = "A first aid kit, can be used for easy storage and access of critical medical supplies."
w_class = WEIGHT_CLASS_NORMAL
slot_flags = ITEM_SLOT_BELT
icon = 'mojave/icons/objects/medical/medical_world.dmi'
lefthand_file = 'mojave/icons/mob/inhands/items_lefthand.dmi'
righthand_file = 'mojave/icons/mob/inhands/items_righthand.dmi'
worn_icon = 'mojave/icons/mob/worn_misc.dmi'
worn_icon_state = "empty_placeholder"
icon_state = "medicalkit"
component_type = /datum/component/storage/concrete/ms13/firstaid
grid_height = 64
grid_width = 64
ms13_flags_1 = LOCKABLE_1
/obj/item/storage/firstaid/ms13/Initialize()
. = ..()
AddElement(/datum/element/world_icon, null, icon, 'mojave/icons/objects/medical/medical_inventory.dmi')
/obj/item/storage/firstaid/ms13/ComponentInitialize()
. = ..()
var/datum/component/storage/STR = GetComponent(/datum/component/storage)
STR.max_w_class = WEIGHT_CLASS_SMALL
STR.max_items = 12
STR.max_combined_w_class = 100
STR.set_holdable(list(
/obj/item/reagent_containers/hypospray,
/obj/item/stack/medical,
/obj/item/stack/sticky_tape/surgical,
/obj/item/reagent_containers/blood/ms13
))
/obj/item/storage/firstaid/ms13/regular
/obj/item/storage/firstaid/ms13/regular/PopulateContents()
. = ..()
new /obj/item/stack/medical/gauze/ms13(src)
new /obj/item/stack/medical/suture/ms13/eight(src)
new /obj/item/stack/medical/ointment/ms13(src)
new /obj/item/reagent_containers/hypospray/medipen/ms13/stimpak(src)
new /obj/item/stack/medical/splint/ms13/wooden(src)
new /obj/item/stack/medical/splint/ms13/wooden(src)
/obj/item/storage/firstaid/ms13/quality
/obj/item/storage/firstaid/ms13/quality/PopulateContents()
. = ..()
new /obj/item/stack/medical/gauze/ms13/military(src)
new /obj/item/stack/medical/suture/ms13(src)
new /obj/item/stack/medical/ointment/ms13/dressing(src)
new /obj/item/reagent_containers/hypospray/medipen/ms13/stimpak/super(src)
new /obj/item/stack/medical/splint/ms13(src)
new /obj/item/stack/medical/splint/ms13(src)
/obj/item/storage/firstaid/ms13/bag
name = "doctors bag"
desc = "A bag used by doctors to hold medical supplies and tools in. Extremely handy to keep around."
icon_state = "doctorsbag"
slot_flags = 0
component_type = /datum/component/storage/concrete/ms13/d_bag
grid_height = 64
grid_width = 96
ms13_flags_1 = LOCKABLE_1
/obj/item/storage/firstaid/ms13/bag/ComponentInitialize()
. = ..()
var/datum/component/storage/STR = GetComponent(/datum/component/storage)
STR.max_w_class = WEIGHT_CLASS_NORMAL
STR.max_items = 16
STR.max_combined_w_class = 100
STR.set_holdable(list(
/obj/item/stack/medical,
/obj/item/surgical_drapes,
/obj/item/bonesetter,
/obj/item/retractor,
/obj/item/cautery,
/obj/item/hemostat,
/obj/item/scalpel,
/obj/item/stack/sticky_tape/surgical,
/obj/item/ms13/handsaw/bone
))
/obj/item/storage/firstaid/ms13/bag/filled
/obj/item/storage/firstaid/ms13/bag/filled/PopulateContents()
new /obj/item/scalpel/ms13(src)
new /obj/item/surgical_drapes/ms13(src)
new /obj/item/hemostat/ms13(src)
new /obj/item/cautery/ms13(src)
new /obj/item/bonesetter/ms13(src)
new /obj/item/retractor/ms13(src)
new /obj/item/ms13/handsaw/bone(src)
new /obj/item/stack/medical/splint/ms13/wooden(src)
new /obj/item/stack/medical/gauze/ms13/half(src)
new /obj/item/stack/medical/suture/ms13/four(src)
new /obj/item/stack/medical/ointment/ms13/half(src)
new /obj/item/stack/medical/bone_gel/ms13(src)
new /obj/item/stack/sticky_tape/surgical/ms13(src)
/obj/item/storage/ms13/toolbox
name = "toolbox"
desc = "A lightly worn red toolbox. A working man's best friend."
w_class = WEIGHT_CLASS_NORMAL
slot_flags = null
lefthand_file = 'mojave/icons/mob/inhands/items_lefthand.dmi'
righthand_file = 'mojave/icons/mob/inhands/items_righthand.dmi'
worn_icon = 'mojave/icons/mob/worn_misc.dmi'
worn_icon_state = "empty_placeholder"
icon_state = "toolbox"
component_type = /datum/component/storage/concrete/ms13/toolbox
force = 15 //funny toolbox
wound_bonus = 0
bare_wound_bonus = 0
sharpness = NONE
hitsound = 'mojave/sound/ms13weapons/meleesounds/genericblunt_hit.ogg'
grid_height = 64
grid_width = 160
ms13_flags_1 = LOCKABLE_1
/obj/item/storage/ms13/toolbox/ComponentInitialize()
. = ..()
var/datum/component/storage/STR = GetComponent(/datum/component/storage)
STR.max_w_class = WEIGHT_CLASS_NORMAL
STR.max_items = 24
STR.max_combined_w_class = 100
STR.set_holdable(list(
/obj/item/ms13/hammer,
/obj/item/ms13/handsaw,
/obj/item/ms13/handdrill,
/obj/item/crowbar/ms13,
/obj/item/weldingtool/ms13,
/obj/item/wrench/ms13,
/obj/item/wirecutters/ms13,
/obj/item/screwdriver/ms13,
/obj/item/shovel/ms13/spade,
/obj/item/knife/ms13/scissors,
/obj/item/flashlight/flare/ms13,
/obj/item/flashlight/ms13,
/obj/item/radio/ms13,
/obj/item/lighter/ms13/zippo,
/obj/item/stack/sheet/ms13/scrap_parts,
/obj/item/stack/sheet/ms13/scrap,
/obj/item/stack/sheet/ms13/scrap_steel,
/obj/item/stack/sheet/ms13/refined_steel,
/obj/item/stack/sheet/ms13/scrap_lead,
/obj/item/stack/sheet/ms13/scrap_brass,
/obj/item/stack/sheet/ms13/refined_brass,
/obj/item/stack/sheet/ms13/scrap_alu,
/obj/item/stack/sheet/ms13/refined_alu,
/obj/item/stack/sheet/ms13/scrap_silver,
/obj/item/stack/sheet/ms13/refined_silver,
/obj/item/stack/sheet/ms13/scrap_gold,
/obj/item/stack/sheet/ms13/refined_gold,
/obj/item/stack/sheet/ms13/scrap_copper,
/obj/item/stack/sheet/ms13/refined_copper,
/obj/item/stack/sheet/ms13/rubber,
/obj/item/stack/sheet/ms13/plastic,
/obj/item/stack/sheet/ms13/ceramic,
/obj/item/stack/sheet/ms13/glass,
/obj/item/stack/sheet/ms13/scrap_electronics,
/obj/item/stack/sheet/ms13/circuits,
/obj/item/stack/sheet/ms13/wood/scrap_wood,
/obj/item/stack/sheet/ms13/cloth,
/obj/item/stack/sheet/ms13/leather,
/obj/item/stack/sheet/ms13/thread,
/obj/item/clothing/glasses/ms13/welding,
/obj/item/clothing/head/welding/ms13,
/obj/item/hatchet/ms13
))
/obj/item/storage/ms13/toolbox/filled
/obj/item/storage/ms13/toolbox/filled/PopulateContents()
new /obj/item/ms13/hammer(src)
new /obj/item/ms13/handsaw(src)
new /obj/item/ms13/handdrill(src)
new /obj/item/crowbar/ms13(src)
new /obj/item/weldingtool/ms13(src)
new /obj/item/wrench/ms13(src)
new /obj/item/wirecutters/ms13(src)
new /obj/item/screwdriver/ms13(src)
new /obj/item/clothing/glasses/ms13/welding(src)
new /obj/item/stack/sheet/ms13/scrap_parts/five(src)