Skip to content

Commit c242dd3

Browse files
feat: add new hardware storage lab room, update prisoner containment room (#8556)
* add hardware storage room * add labsecurity gear group * update prisoner containment * style(autofix.ci): automated formatting --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 2fbb322 commit c242dd3

File tree

2 files changed

+92
-15
lines changed

2 files changed

+92
-15
lines changed

data/json/itemgroups/Clothing_Gear/gear.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,22 @@
3939
[ "shield_ballistic_large", 5 ]
4040
]
4141
},
42+
{
43+
"type": "item_group",
44+
"id": "gear_labsecurity",
45+
"//": "Used for the prisoner containment guard gear lockers",
46+
"items": [
47+
{ "group": "cop_weapons", "prob": 40 },
48+
[ "bootstrap", 15 ],
49+
[ "chestpouch", 15 ],
50+
[ "helmet_riot", 20 ],
51+
[ "armor_riot", 20 ],
52+
[ "holster", 15 ],
53+
[ "kevlar", 20 ],
54+
[ "mask_gas", 10 ],
55+
[ "shield_riot", 10 ]
56+
]
57+
},
4258
{
4359
"id": "gear_medical",
4460
"type": "item_group",

data/json/mapgen/lab/lab_floorplans_1side.json

Lines changed: 76 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,67 @@
104104
]
105105
}
106106
},
107+
{
108+
"//": "hardware storage (tools, batteries, electronics, etc) + two lab rooms (filled in with '.' in order to ensure a normal t_thconc_floor inside)",
109+
"type": "mapgen",
110+
"method": "json",
111+
"om_terrain": [ "lab_1side" ],
112+
"weight": 100,
113+
"object": {
114+
"fill_ter": "t_thconc_floor",
115+
"rows": [
116+
"|----------..----------|",
117+
"|.........|..|.........|",
118+
"|.........|..|.........|",
119+
"|.........|..|.........|",
120+
"|.........|..|.........|",
121+
"|.........+..+.........|",
122+
"|.........|..|.........|",
123+
"|.........|..|.........|",
124+
"|.........|..|.........|",
125+
"|.........|..|.........|",
126+
"|---------|..|---------|",
127+
"|CCCCCCCC|....|x,x,,x,x|",
128+
"|C,,,,,,C|....|,,,,,,,,|",
129+
"|C,,,,,,C|6...|x,x,,x,x|",
130+
"|C,,,,,,C--LL--,,,,,,,,|",
131+
"|---++---|%,,,|---++---|",
132+
"|,,,,,,,,,,,,,,,,,,,,,,|",
133+
"|,,,,,cccccccccccc,,,,,|",
134+
"|,,,,,,,,,,,,,,,,,,,,,,|",
135+
"|r,,rr,,rr,,,,rr,,rr,,r|",
136+
"|r,,rr,,rr,,,,rr,,rr,,r|",
137+
"|r,,rr,,rr,,,,rr,,rr,,r|",
138+
"|r,,rr,,rr,,,,rr,,rr,,r|",
139+
"|----------------------|"
140+
],
141+
"palettes": [ "lab_palette" ],
142+
"mapping": {
143+
"r": {
144+
"items": [
145+
{ "item": "robots", "chance": 20 },
146+
{ "item": "electronics", "chance": 20 },
147+
{ "item": "tools_cleaning_common", "chance": 10 },
148+
{ "item": "tools_common", "chance": 10 },
149+
{ "item": "tools_mechanic", "chance": 1 }
150+
]
151+
}
152+
},
153+
"computers": {
154+
"6": {
155+
"name": "Hardware Storage",
156+
"security": 2,
157+
"options": [ { "name": "UNLOCK ENTRANCE", "action": "unlock", "security": 3 } ],
158+
"failures": [ { "action": "damage" }, { "action": "shutdown" } ]
159+
}
160+
},
161+
"place_nested": [
162+
{ "chunks": [ "lab_spawn_9x9_crossdoors" ], "x": 1, "y": 1 },
163+
{ "chunks": [ "lab_spawn_9x9_crossdoors" ], "x": 14, "y": 1 },
164+
{ "chunks": [ "lab_1side_border_doors" ], "x": 0, "y": 0 }
165+
]
166+
}
167+
},
107168
{
108169
"//": "military bunker",
109170
"type": "mapgen",
@@ -212,38 +273,38 @@
212273
"|c,,,,,,l|6...|r,,,,ddd|",
213274
"|S,,,,,,l|-LL-|r,,,,,,,|",
214275
"|c,,,,,,,|x,,%|,,,,,,,,|",
215-
"|-ggggGg-|,,,,+,,,,,dh,|",
276+
"|-ggggGg-|,,,,M,,,,,dh,|",
216277
"|,,,,,,,,,,,,,|,,,,,ddd|",
217278
"|,,,,,,,,,,,,,|-ggGggg-|",
218279
"|,,,,,,,,,,,,,|,,,,,,,^|",
219280
"|,,,,,,,,,,,,,g,,,,,,,,|",
220-
"|-ggg-|-ggMgg-|,,c,hc,,|",
221-
"|,,,,,|,,,,,,,g,,c7cc,,|",
222-
"|T,,,,g,,,,,,,|-gggggg-|",
223-
"|,,,,,g,,,,,,,,,,,,,,,,|",
224-
"|bb,,,|,,,,,,,,,,,,,,,,|",
225-
"|--L--|,,,,,,,,,,,,,,,,|",
226-
"|,,,,,M,,,,,,,,,,,,,,,,|",
227-
"|-L-|,|-gg-|-gg-|M|-gg-|",
228-
"|,,l|,|,,,,|,,,,|,|,,,,|",
281+
"|,,,,,,,,,,,,,g,,c,hc,,|",
282+
"|,,,,,,,,,,,,,|,,c7cc,,|",
283+
"|-gg----ggGgg-|-gggggg-|",
284+
"|,,,,,,,,,,,,,,,,,,,,,,|",
285+
"|,,,,,,,,,,,,,,,,,,,,,,|",
286+
"|,,,,,,,,,,,,,,,,,,,,,,|",
287+
"|,,,,,,,,,,,,,,,,,,,,,,|",
288+
"|-gg|L|-gg-|-gg-|L|-gg-|",
289+
"|,,,|,|,,,,|,,,,|,|,,,,|",
229290
"|,,,|,|,,,,|,,,,|,|,,,,|",
230-
"|X,,|,L,,,b|b,,,L,L,,,b|",
231-
"|X,X|,|,T,b|b,T,|,|,T,b|",
291+
"|b,,L,L,,,b|b,,,L,L,,,b|",
292+
"|b,T|X|,T,b|b,T,|X|,T,b|",
232293
"|---|-|----|----|-|----|"
233294
],
234295
"palettes": [ "lab_palette" ],
235296
"place_monster": [
236297
{ "monster": "mon_zombie_shrieker", "x": [ 19, 22 ], "y": [ 20, 22 ] },
237298
{ "monster": "mon_zombie_brute", "x": [ 12, 15 ], "y": [ 20, 22 ] },
238299
{ "monster": "mon_zombie_child", "x": [ 7, 10 ], "y": [ 20, 22 ] },
239-
{ "monster": "mon_zombie_grabber", "x": [ 1, 5 ], "y": [ 12, 15 ] },
300+
{ "monster": "mon_zombie_grabber", "x": [ 1, 5 ], "y": [ 20, 22 ] },
240301
{ "monster": "mon_zombie_scientist", "x": [ 11, 12 ], "y": [ 5, 10 ], "pack_size": [ 1, 2 ], "chance": 50 }
241302
],
242303
"furniture": { "^": "f_indoor_plant", "C": "f_centrifuge" },
243304
"terrain": { "7": "t_console", "8": "t_console", "C": "t_strconc_floor" },
244305
"mapping": {
245-
"X": { "items": [ { "item": "softdrugs", "chance": 40 }, { "item": "harddrugs", "chance": 30 } ] },
246-
"r": { "items": [ { "item": "softdrugs", "chance": 40 }, { "item": "harddrugs", "chance": 30 } ] },
306+
"X": { "items": [ { "item": "softdrugs", "chance": 60 }, { "item": "harddrugs", "chance": 40 } ] },
307+
"r": { "items": [ { "item": "gear_labsecurity", "chance": 100 } ] },
247308
"b": { "items": [ { "item": "bed", "chance": 50 } ] },
248309
"l": { "items": [ { "item": "science", "chance": 60 } ] },
249310
"d": { "items": [ { "item": "office", "chance": 60 } ] },

0 commit comments

Comments
 (0)