Skip to content

Commit

Permalink
Aftershock: Astrobiology lab (#45660)
Browse files Browse the repository at this point in the history
* Habitat Terrains

* Adjustments to alien terains

Lowered the move costs of most soils plus some color and symbol viariation for terrains.

* Astrobiology lab

* Delete duplicate region settings

* Style item group
  • Loading branch information
John-Candlebury authored Dec 2, 2020
1 parent 334d215 commit 2897495
Show file tree
Hide file tree
Showing 12 changed files with 335 additions and 48 deletions.
23 changes: 0 additions & 23 deletions data/mods/Aftershock/itemgroups/item_groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -419,29 +419,6 @@
"id": "beehive",
"entries": [ { "item": "honeycomb", "count": [ 2, 4 ] } ]
},
{
"type": "item_group",
"id": "afs_scrapgroup",
"items": [
[ "afs_biomaterial_1", 40 ],
[ "afs_biomaterial_2", 20 ],
[ "afs_biomaterial_3", 10 ],
[ "afs_biomaterial_4", 3 ],
[ "afs_circuitry_1", 25 ],
[ "afs_circuitry_2", 14 ],
[ "afs_circuitry_3", 6 ],
[ "afs_energy_storage_1", 30 ],
[ "afs_energy_storage_2", 19 ],
[ "afs_energy_storage_3", 2 ],
[ "afs_magnet_1", 18 ],
[ "afs_material_1", 100 ],
[ "afs_material_2", 40 ],
[ "afs_material_3", 20 ],
[ "afs_neural_io_1", 65 ],
[ "afs_neural_io_2", 10 ],
[ "plut_cell", 20 ]
]
},
{
"type": "item_group",
"id": "exoticplants",
Expand Down
7 changes: 7 additions & 0 deletions data/mods/Aftershock/itemgroups/science_groups.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"id": "supplies_xenoreagents_lab",
"type": "item_group",
"items": [ [ "yum_lichen", 10 ] ]
}
]
5 changes: 5 additions & 0 deletions data/mods/Aftershock/itemgroups/scrap_groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"type": "item_group",
"items": [ [ "bionic_maintenance_toolkit", 20 ], [ "afs_biomaterial_4", 10 ], [ "afs_neural_io_3", 5 ] ]
},
{
"type": "item_group",
"id": "afs_basic_biomedical_scrapgroup",
"items": [ [ "afs_biomaterial_1", 40 ], [ "afs_biomaterial_2", 20 ], [ "afs_neural_io_1", 40 ], [ "afs_neural_io_2", 20 ] ]
},
{
"type": "item_group",
"id": "afs_scrapgroup",
Expand Down
9 changes: 9 additions & 0 deletions data/mods/Aftershock/maps/city_buildings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,14 @@
{ "point": [ 1, 0, 2 ], "overmap": "afs_urban_aquaponicsw_n3_north" }
],
"locations": [ "land" ]
},
{
"type": "city_building",
"id": "afs_astrobiology_lab",
"overmaps": [
{ "point": [ 0, 0, 0 ], "overmap": "afs_astrobiology_lab_n1_north" },
{ "point": [ 0, 0, 1 ], "overmap": "afs_astrobiology_lab_n2_north" }
],
"locations": [ "land" ]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
[
{
"type": "terrain",
"id": "t_wall_prefab_metal",
"name": "habitat wall",
"description": "An industrially fabricated assembly of lightweight metallic framing and insulated cover sheets, used to quickly assemble standardized colonial infrastructure. Capable of resisting the merciless cold and not much else.",
"roof": "t_metal_flat_roof",
"symbol": "LINE_XOXO",
"looks_like": "t_wall_metal",
"color": "light_gray",
"connects_to": "WALL",
"move_cost": 0,
"coverage": 100,
"flags": [ "NOITEM", "SUPPORTS_ROOF", "WALL", "NO_SCENT", "AUTO_WALL_SYMBOL", "BLOCK_WIND" ],
"bash": {
"str_min": 20,
"str_max": 39,
"sound": "metal screeching!",
"sound_fail": "clang!",
"ter_set": "t_broken_prefab",
"items": [
{ "item": "steel_lump", "count": [ 1, 4 ] },
{ "item": "steel_chunk", "count": [ 3, 12 ] },
{ "item": "afs_material_1", "count": [ 0, 2 ] },
{ "item": "scrap", "count": [ 6, 24 ] }
]
}
},
{
"type": "terrain",
"id": "t_wall_prefab_glass",
"name": "habitat window",
"description": "A prefabricated porthole style window, equipped with metallic shutters for both protection and privacy purposes. It cannot be opened, but with its shutters are retracted, it could be smashed with no particular difficulty.",
"roof": "t_metal_flat_roof",
"symbol": "LINE_XOXO",
"color": "light_cyan",
"close": "t_wall_prefab_glass_shutters",
"move_cost": 0,
"coverage": 100,
"flags": [ "TRANSPARENT", "NOITEM", "WALL", "NO_SCENT", "AUTO_WALL_SYMBOL", "OPENCLOSE_INSIDE", "BLOCK_WIND" ],
"bash": {
"str_min": 4,
"str_max": 2,
"sound": "glass breaking!",
"sound_fail": "clang!",
"ter_set": "t_wall_prefab_bglass",
"items": [ { "item": "glass_shard", "count": [ 22, 33 ] }, { "item": "scrap", "count": [ 0, 4 ] } ]
}
},
{
"type": "terrain",
"id": "t_wall_prefab_glass_shutters",
"name": "habitat window (shutters)",
"description": "A porthole style window of standard design, completely covered by sturdy metallic shutters.",
"roof": "t_metal_flat_roof",
"looks_like": "t_reinforced_glass_shutter",
"symbol": "=",
"color": "light_gray",
"open": "t_wall_prefab_glass",
"move_cost": 0,
"coverage": 100,
"flags": [ "NOITEM", "WALL", "NO_SCENT", "AUTO_WALL_SYMBOL", "OPENCLOSE_INSIDE", "BLOCK_WIND" ],
"bash": {
"str_min": 20,
"str_max": 30,
"sound": "metal screeching!",
"sound_fail": "clang!",
"ter_set": "t_broken_prefab",
"items": [
{ "item": "steel_lump", "count": [ 1, 4 ] },
{ "item": "steel_chunk", "count": [ 3, 12 ] },
{ "item": "afs_material_1", "count": [ 0, 2 ] },
{ "item": "scrap", "count": [ 6, 24 ] }
]
}
},
{
"type": "terrain",
"id": "t_wall_prefab_bglass_shutters",
"name": "broken habitat window (shutters)",
"looks_like": "t_reinforced_glass_shutter",
"symbol": "=",
"color": "yellow",
"move_cost": 0,
"coverage": 100,
"description": "The shutters of this porthole are deployed, but the lack of a window between them allows the frozen air to leak into the room.",
"open": "t_wall_prefab_glass",
"flags": [ "NOITEM", "WALL", "PERMEABLE", "OPENCLOSE_INSIDE" ],
"roof": "t_metal_flat_roof",
"bash": {
"str_min": 20,
"str_max": 30,
"sound": "metal screeching!",
"sound_fail": "clang!",
"ter_set": "t_broken_prefab",
"items": [
{ "item": "steel_lump", "count": [ 1, 4 ] },
{ "item": "steel_chunk", "count": [ 3, 12 ] },
{ "item": "afs_material_1", "count": [ 0, 2 ] },
{ "item": "scrap", "count": [ 6, 24 ] }
]
}
},
{
"type": "terrain",
"id": "t_wall_prefab_bglass",
"name": "broken habitat window",
"looks_like": "t_window_empty",
"symbol": "0",
"move_cost": 8,
"coverage": 60,
"color": "yellow",
"description": "The glass panel that would have covered this porthole has been broken, allowing unfettered access to the rooms within.",
"flags": [ "TRANSPARENT", "FLAMMABLE", "NOITEM", "MOUNTABLE", "CONNECT_TO_WALL", "SMALL_PASSAGE", "WINDOW" ],
"roof": "t_metal_flat_roof",
"bash": {
"str_min": 20,
"str_max": 30,
"sound": "metal screeching!",
"sound_fail": "clang!",
"ter_set": "t_broken_prefab",
"items": [
{ "item": "steel_lump", "count": [ 1, 4 ] },
{ "item": "steel_chunk", "count": [ 3, 12 ] },
{ "item": "afs_material_1", "count": [ 0, 2 ] },
{ "item": "scrap", "count": [ 6, 24 ] }
]
}
},
{
"type": "terrain",
"id": "t_broken_prefab",
"name": "broken habitat segment",
"symbol": "#",
"move_cost": 8,
"color": "light_blue",
"looks_like": "dark_",
"description": "Exposed structural ribs and battered plate metal are all what remains of this habitat segment.",
"flags": [ "TRANSPARENT", "MOUNTABLE", "THIN_OBSTACLE", "SMALL_PASSAGE", "WINDOW" ],
"roof": "t_metal_flat_roof",
"bash": {
"str_min": 20,
"str_max": 30,
"sound": "metal screeching!",
"sound_fail": "clang!",
"ter_set": "t_ice",
"items": [
{ "item": "steel_lump", "count": [ 2, 2 ] },
{ "item": "steel_chunk", "count": [ 3, 6 ] },
{ "item": "afs_material_1", "count": [ 0, 1 ] },
{ "item": "scrap", "count": [ 6, 24 ] }
]
}
}
]
109 changes: 109 additions & 0 deletions data/mods/Aftershock/maps/mapgen/astrobiology_lab.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
[
{
"type": "mapgen",
"method": "json",
"om_terrain": [ "afs_astrobiology_lab_n1" ],
"weight": 200,
"object": {
"fill_ter": "t_metal_floor",
"rows": [
" ,, ",
" /44/ ",
" / / /../ ",
" //QQQQ//QQQ/33// ",
" //..hh../t???...// ",
" /..htt..3......../ ",
" //..htth./...dd5d.// ",
" /5...hh../...d.h..^/ ",
" ///////////33////3// ",
" /h..B/R...3.../&..S/ ",
" /dd.B/R.bb/:==////// ",
" /hh..//////...=d..E/ ",
" /===:/FFFS/==:=dh.E/ ",
" /................ö./ ",
" /.hccc..chccch..ch./ ",
" /.Tchc..ccchcc..cc./ ",
" ó..................ó ",
" /S..((((((((((((..O/ ",
" /S..(Iii____IIi(.hc/ ",
" //=:(I77_iA___i(:=// ",
" /..(____iii___(../ ",
" //.3__7I___II_3.// ",
" //------------// ",
" "
],
"palettes": [ "afs_generic_building" ],
"terrain": {
"A": "t_basaltfloor",
"R": "t_metal_floor",
",": "t_sidewalk",
"_": [ "t_deaddirt", "t_deaddirt", "t_ice" ],
"i": [ "t_lichenyum", "t_lichen", "t_lichendirt" ],
"I": [ "t_lichen", "t_lichendirt" ],
"7": [ "t_tree_worm", "t_tree_lichen" ]
},
"furniture": {
"A": "f_geo_vent",
"I": "f_shrub_moss",
"T": "f_crispr",
"F": "f_glass_fridge",
"E": "f_machinery_electronic",
"R": "f_locker",
"O": "f_monomolecularsaw"
},
"items": {
"c": [
{ "item": "tools_science", "chance": 80, "repeat": [ 1, 3 ] },
{ "item": "afs_basic_biomedical_scrapgroup", "chance": 20, "repeat": [ 1, 2 ] },
{ "item": "supplies_reagents_lab", "chance": 80, "repeat": [ 1, 3 ] }
],
"d": { "item": "office", "chance": 60 },
"B": [ { "item": "textbooks", "chance": 50 }, { "item": "manuals", "chance": 50 } ],
"F": [
{ "item": "supplies_reagents_lab", "chance": 70, "repeat": [ 2, 5 ] },
{ "item": "supplies_xenoreagents_lab", "chance": 70, "repeat": [ 2, 5 ] }
],
"R": [ { "item": "decontamination_room", "chance": 60 }, { "item": "clothing_work_set", "chance": 30 } ],
"t": [ { "item": "office_paper", "chance": 60 }, { "item": "tools_science", "chance": 10, "repeat": [ 1, 2 ] } ]
},
"item": { "c": { "item": "recipe_lichenlog", "chance": 6 } },
"monster": { "ö": { "monster": "mon_skitterbot" } }
}
},
{
"type": "mapgen",
"method": "json",
"om_terrain": "afs_astrobiology_lab_n2",
"object": {
"fill_ter": "t_metal_flat_roof",
"rows": [
" ",
" .... ",
" . . .... ",
" ................ ",
" ..........&....... ",
" ..X............X.. ",
" .................... ",
" .................... ",
" .................... ",
" .................... ",
" .................... ",
" .................... ",
" .................... ",
" .................... ",
" .................... ",
" .................... ",
" .................... ",
" .................... ",
" .................... ",
" ..........&=====.... ",
" ..............=... ",
" ..............&... ",
" ................ ",
" "
],
"terrain": { " ": "t_open_air" },
"furniture": { "&": "f_roof_turbine_vent", "=": "f_vent_pipe", "X": "f_small_satelitte_dish" }
}
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@
"!": "t_door_locked_interior",
"-": "t_wall_metal",
"|": "t_concrete_wall",
"/": "t_wall_prefab_metal",
"Q": "t_wall_prefab_glass_shutters",
"+": "t_door_c",
"9": "t_window_domestic",
":": "t_door_glass_c",
";": "t_door_locked",
"=": "t_wall_glass",
"o": "t_wall_prefab_glass",
"(": "t_reinforced_glass",
"X": "t_door_metal_locked",
"3": "t_door_metal_c",
Expand All @@ -32,6 +35,7 @@
"%": "f_console_broken",
"5": "f_console",
"B": "f_bed",
"?": "f_sofa",
"S": "f_sink",
"b": "f_bench",
"c": "f_counter",
Expand Down
11 changes: 11 additions & 0 deletions data/mods/Aftershock/maps/overmap_terrain.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,17 @@
"flags": [ "SIDEWALK", "SOURCE_FOOD" ],
"see_cost": 3
},
{
"type": "overmap_terrain",
"id": [ "afs_astrobiology_lab_n1", "afs_astrobiology_lab_n2" ],
"name": "astrobiology lab",
"spawns": { "group": "GROUP_ZOMBIE", "population": [ 2, 5 ], "chance": 80 },
"sym": "L",
"color": "light_green",
"flags": [ "SIDEWALK", "SOURCE_FOOD" ],
"see_cost": 3,
"mondensity": 3
},
{
"type": "overmap_terrain",
"id": "mortuary_2story",
Expand Down
6 changes: 0 additions & 6 deletions data/mods/Aftershock/maps/regional_map_settings.json

This file was deleted.

Loading

0 comments on commit 2897495

Please sign in to comment.