Skip to content

Commit

Permalink
Adds microlabs (#33727)
Browse files Browse the repository at this point in the history
* Adds microlabs

Microlabs are small 4x4 labs that open only to the subway network. They dont have finales

* Allow opening depot doors

* Update data/json/mapgen/microlab/microlab_generic.json

Co-Authored-By: Matthew Taylor <[email protected]>

* Update data/json/mapgen/microlab/microlab_special_tiles.json

Co-Authored-By: Matthew Taylor <[email protected]>

* Adds surface connected microlab

* Slight mapgen adjustments, new monster spawn lists.
  • Loading branch information
John-Candlebury authored and ZhilkinSerg committed Sep 4, 2019
1 parent 9acf92b commit 1b34f54
Show file tree
Hide file tree
Showing 11 changed files with 1,812 additions and 0 deletions.
41 changes: 41 additions & 0 deletions data/json/itemgroups/item_groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -5164,6 +5164,47 @@
[ "chem_nitric_acid", 5 ]
]
},
{
"type": "item_group",
"id": "mutagens",
"items": [
[ "mutagen", 8 ],
[ "mutagen_plant", 2 ],
[ "mutagen_insect", 2 ],
[ "mutagen_spider", 2 ],
[ "mutagen_fish", 2 ],
[ "mutagen_slime", 2 ],
[ "mutagen_rat", 2 ],
[ "mutagen_beast", 2 ],
[ "mutagen_cattle", 2 ],
[ "mutagen_cephalopod", 2 ],
[ "mutagen_bird", 2 ],
[ "mutagen_lizard", 2 ],
[ "mutagen_troglobite", 2 ],
[ "mutagen_ursine", 2 ],
[ "mutagen_feline", 2 ],
[ "mutagen_lupine", 2 ],
[ "iv_mutagen", 6 ],
[ "iv_mutagen_plant", 2 ],
[ "iv_mutagen_insect", 2 ],
[ "iv_mutagen_spider", 2 ],
[ "iv_mutagen_fish", 2 ],
[ "iv_mutagen_slime", 2 ],
[ "iv_mutagen_rat", 2 ],
[ "iv_mutagen_beast", 2 ],
[ "iv_mutagen_cattle", 2 ],
[ "iv_mutagen_cephalopod", 2 ],
[ "iv_mutagen_bird", 2 ],
[ "iv_mutagen_lizard", 2 ],
[ "iv_mutagen_troglobite", 2 ],
[ "iv_mutagen_ursine", 2 ],
[ "iv_mutagen_feline", 2 ],
[ "iv_mutagen_lupine", 2 ],
[ "purifier", 10 ],
[ "iv_purifier", 8 ],
[ "syringe", 8 ]
]
},
{
"type": "item_group",
"id": "mut_iv",
Expand Down
39 changes: 39 additions & 0 deletions data/json/itemgroups/tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,45 @@
[ "acetylene_machine", 1 ]
]
},
{
"type": "item_group",
"id": "tools_robotics",
"//": "tools and equipment you might find on robotics laboratories.",
"items": [
[ "recipe_lab_elec", 4 ],
[ "UPS_off", 6 ],
[ "file", 10 ],
[ "atomic_lamp", 1 ],
[ "control_laptop", 1 ],
[ "bot_manhack", 2 ],
[ "teleporter", 1 ],
[ "laptop", 4 ],
[ "plut_cell", 4 ],
[ "superglue", 30 ],
[ "pliers", 10 ],
[ "matches", 10 ],
[ "glasses_safety", 20 ],
[ "duct_tape", 8 ],
[ "misc_repairkit", 15 ],
[ "welder", 10 ],
[ "soldering_iron", 8 ],
[ "extinguisher", 10 ],
[ "magnifying_glass", 10 ],
[ "multitool", 20 ],
[ "screwdriver_set", 20 ],
[ "flashlight", 20 ],
[ "mobile_memory_card_science", 40 ],
[ "camera_pro", 2 ],
[ "element", 5 ],
[ "battery", 10 ],
[ "goggles_welding", 20 ],
[ "sm_extinguisher", 10 ],
[ "toolbox", 5 ],
[ "tool_belt", 10 ],
[ "hand_vice", 10 ],
[ "wrench", 10 ]
]
},
{
"id": "hand_tools",
"type": "item_group",
Expand Down
274 changes: 274 additions & 0 deletions data/json/mapgen/microlab/microlab_connector.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,274 @@
[
{
"type": "mapgen",
"method": "json",
"om_terrain": [ "microlab_sub_connector" ],
"weight": 1000,
"object": {
"fill_ter": "t_concrete",
"rows": [
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################"
],
"palettes": [ "microlab" ]
}
},
{
"type": "mapgen",
"method": "json",
"om_terrain": [ "microlab_rock_border" ],
"weight": 1000,
"object": {
"fill_ter": "t_concrete",
"rows": [
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################"
],
"palettes": [ "microlab" ]
}
},
{
"type": "mapgen",
"method": "json",
"om_terrain": [ "microlab_sub_station" ],
"weight": 1000,
"object": {
"fill_ter": "t_concrete",
"rows": [
"##| |##",
"##|^ |##",
"##|^ hhhh YY hhhh |##",
"##|^ |##",
"##|^ hhhh hhhh |##",
"##|^ |##",
"##|^ |^^^^^^|##",
"##||(((((| ||||||||##",
"###|l h ( YY |#########",
"###|l ( YY |#########",
"###|l ( |#########",
"###||2|||| |#########",
"###| | |#########",
"###| hd|G55||#########",
"###| ddd| ^|#########",
"###||5(((| ^|||||||###",
"###|B VV ^^|###",
"###|B YY ?|###",
"###|B dddd YY t ?|###",
"###|B d hd ?|###",
"###|B t? ^^|###",
"###|||||||| ||||||||###",
"##########|22|##########",
"##########| |##########"
],
"palettes": [ "microlab" ],
"terrain": { "G": "t_card_science" },
"items": {
"l": [ { "item": "guns_milspec", "chance": 10 }, { "item": "ammo_milspec", "chance": 70 } ],
"t": { "item": "magazines", "chance": 90 }
}
}
},
{
"type": "mapgen",
"method": "json",
"om_terrain": [ "microlab_generic_sub_entry" ],
"weight": 1000,
"object": {
"fill_ter": "t_concrete",
"rows": [
"||||||||||| |||||||||||",
" cc c | |^BBB| ",
" cc c c| | h|r i ",
" c| | dd|r c ",
" FFFFccccc| | h|r c ",
"|||||||||||YY|[===|| ",
" FF c|^???^ v| c ",
" c|? V| c ",
" c|? tt | i ",
" c| | ",
"|5|||| dddd |==2|",
" Y2 d hd 2Y ",
" Y2 ^^^^ 2Y ",
"|2|||| |||| ^|((2|",
" r| ^| ",
"cc r|n^^^ ^|^ ",
"cc hc||||||YY|[====| h ",
" c|FFFF| | h ^B|6tt ",
"|||||||22||22|dd B|||||",
" | |h nB|FFF ",
" c6 6c | ||||||| ",
" cc cc | |6h ",
" cc cc 2 |c ccccc ",
" | | "
],
"palettes": [ "microlab" ],
"terrain": { "G": "t_card_science" },
"items": {
"l": [ { "item": "guns_milspec", "chance": 10 }, { "item": "ammo_milspec", "chance": 70 } ],
"t": { "item": "magazines", "chance": 90 }
}
}
},
{
"type": "mapgen",
"om_terrain": [ [ "microlab_generic_surface_connector" ] ],
"method": "json",
"object": {
"fill_ter": "t_concrete",
"rows": [
" | | |cccc| ",
" |=[==| |||||| ",
" ((2| | 2 2 i ",
" ( | cci| 2 2 c ",
" (@@| | |||||| c ",
"|||||| cci| |rrrr| ",
" F|F ( | | 2 c ",
" F|F ( cci| |||||| c ",
" F|F 2 | |rrrr| i ",
" |F |rrrr| | 2 ",
"|5|||||||||22|||||||||||",
" 2 YY 5TYY ",
" 2 YY 5 YY ",
"|2||||^??? yyyyy|(((|",
" r|t y 5 dd|",
"cc r|V tt yyyyy| hl|",
"cc hc|t y |||||",
" c|^??? yyyyy|###|",
"||||||||||| ^|((22|||#|",
" rrcc| hd^= ^|eeeeee|#|",
" c| dd = ^|eeeeee|#|",
" c6 6|B = ^|EeeeeE|#|",
" cc r|B [ ^|eeeeee|#|",
" | |22|||||||||||"
],
"palettes": [ "microlab" ],
"terrain": { "e": "t_elevator", "E": "t_elevator_control" },
"items": {
"l": [ { "item": "guns_milspec", "chance": 10 }, { "item": "ammo_milspec", "chance": 70 } ],
"t": { "item": "magazines", "chance": 90 }
}
}
},
{
"type": "mapgen",
"om_terrain": [ [ "microlab_generic_surface" ] ],
"method": "json",
"object": {
"fill_ter": "t_concrete",
"rows": [
" yyyyyyyyyyyyyyyyyyyyyy ",
" yyyyyyyyyyyyyyyyyyyyyy ",
" y____________________y ",
" y____________________y ",
" y____________________y ",
" ||||||||||22|yyyyyyyyy ",
" | SS|________y ",
" | SS|________y ",
" | SS|________y ",
" | SS|________y ",
" | |((((|22||555555|y ",
" | |........|yyyyyy|. ",
" | |..dddd..|......|. ",
" | |^.d.hd..5yyyyyy| ",
" | |||||||..5......| ",
" | (V.??....Gyyyyyy| ",
" | (t.......|......| ",
" | (^???....|yyyyyy| ",
" | ||||||..^|yyyyyy| ",
" | |.hd^=..^|eeeeee| ",
" | |.dd.=..^|eeeeee| ",
" | |B...=..^|EeeeeE| ",
" | |B...[..^|eeeeee| ",
" ||||||||||||||||||||| "
],
"palettes": [ "microlab" ],
"terrain": {
"e": "t_elevator",
"E": "t_elevator_control",
" ": "t_grass",
"_": "t_pavement",
".": "t_thconc_floor",
"G": "t_card_science"
}
}
},
{
"type": "mapgen",
"om_terrain": [ [ "microlab_generic_surface_roof" ] ],
"method": "json",
"object": {
"fill_ter": "t_concrete",
"rows": [
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ................. ",
" ................. ",
" ................. ",
" ................. ",
" ................. ",
" ................. ",
" ................. ",
" ................. ",
" ................. ",
" ................. ",
" ................. ",
" ................. ",
" ................. ",
" ................. "
],
"terrain": { " ": "t_open_air", ".": "t_concrete" }
}
}
]
Loading

0 comments on commit 1b34f54

Please sign in to comment.