Skip to content

Commit

Permalink
add start scenarios and ID spawns for lab
Browse files Browse the repository at this point in the history
  • Loading branch information
curstwist committed Aug 28, 2021
1 parent f209f18 commit 0de650c
Show file tree
Hide file tree
Showing 16 changed files with 255 additions and 58 deletions.
7 changes: 5 additions & 2 deletions data/json/itemgroups/Clothing_Gear/wallets.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,13 @@
"items": [
{ "item": "cash_card", "prob": 100, "charges-min": 0, "charges-max": 50000 },
{ "item": "id_science", "prob": 100 },
{ "item": "money_ten", "prob": 100, "count": [ 5, 10 ] },
{ "item": "id_science_visitor_1", "prob": 100 },
{ "item": "money_ten", "prob": 30, "count": [ 5, 10 ] },
{ "item": "coin_quarter", "prob": 10, "count": [ 1, 2 ] },
{ "item": "coin_nickel", "prob": 10, "count": [ 1, 2 ] },
{ "group": "discount_cards", "prob": 40, "count": [ 1, 3 ] },
{ "item": "condom", "prob": 10 },
{ "item": "labmap", "prob": 20 },
{ "item": "labmap", "prob": 30 },
[ "scorecard", 20 ]
]
},
Expand All @@ -168,6 +169,7 @@
"items": [
{ "item": "cash_card", "prob": 100, "charges-min": 0, "charges-max": 50000 },
{ "item": "id_science", "prob": 100 },
{ "item": "id_science_visitor_1", "prob": 100 },
{ "item": "money_ten", "prob": 100, "count": [ 5, 10 ] },
{ "item": "coin_quarter", "prob": 10, "count": [ 1, 2 ] },
{ "item": "coin_nickel", "prob": 10, "count": [ 1, 2 ] },
Expand All @@ -185,6 +187,7 @@
"container-item": "wallet_stylish",
"items": [
{ "item": "id_science", "prob": 100 },
{ "item": "id_science_visitor_1", "prob": 100 },
{ "item": "cash_card", "prob": 100, "charges-min": 10000, "charges-max": 50000 },
{ "item": "money_one", "prob": 100, "count": [ 10, 20 ] },
{ "item": "money_ten", "prob": 100, "count": [ 5, 10 ] },
Expand Down
2 changes: 0 additions & 2 deletions data/json/itemgroups/Labs/labs_common.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
{ "item": "id_science_maintenance_blue", "prob": 1 },
{ "item": "id_science_security_yellow", "prob": 3 },
{ "item": "id_science_security_magenta", "prob": 2 },
{ "item": "id_science_security_black", "prob": 1 },
{ "item": "id_science_mutagen_green", "prob": 3 },
{ "item": "id_science_mutagen_pink", "prob": 2 },
{ "item": "id_science_mutagen_cyan", "prob": 1 },
{ "item": "id_science_medical_red", "prob": 7 },
Expand Down
8 changes: 7 additions & 1 deletion data/json/itemgroups/Labs/labs_mutagen.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,14 @@
{ "item": "id_science_maintenance_green", "prob": 150 },
{ "item": "id_science_transport_1", "prob": 200 },
{ "item": "id_science_security_yellow", "prob": 25 },
{ "item": "id_science_mutagen_green", "prob": 5 },
{ "item": "id_science_medical_red", "prob": 50 }
]
},
{
"type": "item_group",
"id": "lanyard_YS_badge",
"subtype": "collection",
"container-item": "lanyard",
"items": [ { "item": "id_science_security_yellow", "prob": 100 } ]
}
]
28 changes: 26 additions & 2 deletions data/json/items/generic.json
Original file line number Diff line number Diff line change
Expand Up @@ -3310,7 +3310,19 @@
"scorecard",
"robofac_test_data",
"icon",
"labmap"
"labmap",
"id_science_visitor_1",
"id_science_transport_1",
"id_science_maintenance_green",
"id_science_maintenance_yellow",
"id_science_maintenance_blue",
"id_science_security_yellow",
"id_science_security_magenta",
"id_science_security_black",
"id_science_mutagen_green",
"id_science_mutagen_pink",
"id_science_mutagen_cyan",
"id_science_medical_red"
]
},
{
Expand Down Expand Up @@ -3379,7 +3391,19 @@
"scorecard",
"robofac_test_data",
"icon",
"labmap"
"labmap",
"id_science_visitor_1",
"id_science_transport_1",
"id_science_maintenance_green",
"id_science_maintenance_yellow",
"id_science_maintenance_blue",
"id_science_security_yellow",
"id_science_security_magenta",
"id_science_security_black",
"id_science_mutagen_green",
"id_science_mutagen_pink",
"id_science_mutagen_cyan",
"id_science_medical_red"
]
},
{
Expand Down
78 changes: 74 additions & 4 deletions data/json/items/id_cards.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"price_postapoc": 250,
"material": [ "plastic" ],
"weight": "6 g",
"volume": "15 ml",
"volume": "5 ml",
"to_hit": -3
},
{
Expand Down Expand Up @@ -57,8 +57,43 @@
"price_postapoc": 250,
"material": [ "plastic" ],
"weight": "6 g",
"volume": "15 ml",
"to_hit": -3
"volume": "5 ml",
"to_hit": -3,
"use_action": {
"type": "reveal_map",
"radius": 90,
"message": "You add the facilities to your map",
"terrain": [
"hiway",
"road",
"bridge",
"lab_res_8_SWD_ground",
"lab_res_8_SED_ground",
"lab_res_8_SWU_ground",
"lab_res_8_SEU_ground",
"lab_CORE_2x1_SED_ground",
"lab_CORE_2x1_SWD_ground",
"lab_CORE_2x1_NED_ground",
"lab_CORE_2x1_NWD_ground",
"lab_CORE_2x1_WC_ground",
"lab_CORE_2x1_EC_ground",
"lab_security_z0",
"lab_security_z0N",
"lab_security_z0S",
"lab_surface_parking_blockA2",
"lab_surface_parking_blockE2",
"lab_surface_parking_blockA0",
"lab_surface_parking_blockB0",
"lab_surface_parking_blockC0",
"lab_surface_parking_blockD0",
"lab_surface_parking_blockE0",
"lab_surface_parking_blockA1",
"lab_surface_parking_blockB1",
"lab_surface_parking_blockC1",
"lab_surface_parking_blockD1",
"lab_surface_parking_blockE1"
]
}
},
{
"type": "GENERIC",
Expand Down Expand Up @@ -94,7 +129,42 @@
"copy-from": "id_science",
"name": { "str": "transport freight employee badge" },
"description": "This is an employee badge for a freight hauler. The reverse side describes protocol for using it; this could grant one-time access to a transport freight card reader.",
"flags": [ "SCIENCE_CARD_TRANSPORT_1" ]
"flags": [ "SCIENCE_CARD_TRANSPORT_1" ],
"use_action": {
"type": "reveal_map",
"radius": 90,
"message": "You add the facilities to your map",
"terrain": [
"hiway",
"road",
"bridge",
"lab_res_8_SWD_ground",
"lab_res_8_SED_ground",
"lab_res_8_SWU_ground",
"lab_res_8_SEU_ground",
"lab_CORE_2x1_SED_ground",
"lab_CORE_2x1_SWD_ground",
"lab_CORE_2x1_NED_ground",
"lab_CORE_2x1_NWD_ground",
"lab_CORE_2x1_WC_ground",
"lab_CORE_2x1_EC_ground",
"lab_security_z0",
"lab_security_z0N",
"lab_security_z0S",
"lab_surface_parking_blockA2",
"lab_surface_parking_blockE2",
"lab_surface_parking_blockA0",
"lab_surface_parking_blockB0",
"lab_surface_parking_blockC0",
"lab_surface_parking_blockD0",
"lab_surface_parking_blockE0",
"lab_surface_parking_blockA1",
"lab_surface_parking_blockB1",
"lab_surface_parking_blockC1",
"lab_surface_parking_blockD1",
"lab_surface_parking_blockE1"
]
}
},
{
"type": "GENERIC",
Expand Down
4 changes: 4 additions & 0 deletions data/json/mapgen/fema/FEMA_le_03.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
"L": { "item": "surgery", "chance": 30 },
"X": { "item": "hospital_lab", "chance": 80 }
},
"place_loot": [
{ "item": "id_science_visitor_1", "x": 7, "y": [ 12, 17 ], "chance": 100 },
{ "item": "id_science_visitor_1", "x": 14, "y": [ 14, 17 ], "chance": 30 }
],
"item": { "B": { "item": "rag", "amount": [ 0, 5 ], "custom-flags": [ "FILTHY" ] } },
"monster": { "Z": { "monster": "mon_zombie_brute" }, "z": { "monster": "mon_zombie_scientist" } }
}
Expand Down
20 changes: 9 additions & 11 deletions data/json/mapgen/lab/lab_modular/lab_1x1_security.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@
"computers": {
"6": {
"name": "Security Public Relations Zone",
"security": 3,
"options": [ { "name": "UNLOCK ENTRANCE", "action": "unlock_disarm", "security": 3 } ],
"security": 5,
"options": [ { "name": "UNLOCK ENTRANCE", "action": "unlock_disarm", "security": 5 } ],
"failures": [ { "action": "damage" }, { "action": "manhacks" } ]
}
}
Expand Down Expand Up @@ -214,10 +214,8 @@
"terrain": { "¥": "t_card_science_security_yellow", "ƶ": "t_card_science_security_magenta" },
"place_loot": [
{ "item": "id_science_maintenance_yellow", "x": 11, "y": 11, "chance": 30 },
{ "item": "id_science_mutagen_green", "x": 11, "y": 11, "chance": 30 },
{ "item": "id_science_medical_red", "x": 11, "y": 11, "chance": 30 },
{ "item": "id_science_maintenance_yellow", "x": 11, "y": 12, "chance": 30 },
{ "item": "id_science_mutagen_green", "x": 11, "y": 12, "chance": 30 },
{ "item": "id_science_medical_red", "x": 11, "y": 12, "chance": 30 }
],
"place_signs": [
Expand Down Expand Up @@ -461,28 +459,28 @@
"fill_ter": "t_linoleum_gray",
"rows": [
"||||||||||||||||||||||||",
"|@@∞|,|∞@@|`````¥```````",
"|r,,+,+,hr|`````=```````",
"|@@∞|,|∞@@|`````|```````",
"|r,,+,+,hr|`````#```````",
"|rh,|,|,,r|``|##|```î```",
"|||||ê|||||``|><|``````|",
"|||||ê|||||``|`<|``````|",
"|@@∞|,|∞@@|``|||||||||||",
"|r,,+,+,hr|``|||||||||||",
"|rh,|,|,,r|``||qqqqqqq||",
"|||||,|||||``||,,,,,,,||",
"|9,S|ê,,,,|``||,,≠≠≠≠≠||",
"|9,,|,hfh,|``||,,,ê,,,||",
"|||+|,hfh,#``=,,,≠≠≠≠≠||",
"|t+,#,hfh,#``=,,,,,,,,||",
"|t+,#,hfh,#``=,,,,,ɜ,,||",
"|||,|,hfh,|`6||qqq,,qq||",
"|t+,|ê,,,,|``|||||=¥||||",
"|||||,|||||``||,$,êA,Q||",
"|@@∞|,|∞@@|``||,$,NN,Q||",
"|r,,+,+,,r|``|||||||||||",
"|rh,|,|,hr|``|||||||||||",
"|||||ê|||||``|><|``````|",
"|||||ê|||||``|`<|``````|",
"|@@∞|,|∞@@|``|##|``î````",
"|r,,+,+,,r|`````=```````",
"|rh,|,|,hr|`````¥```````",
"|r,,+,+,,r|`````#```````",
"|rh,|,|,hr|`````|```````",
"||||||||||||||||||||||||"
],
"palettes": [ "lab_common_palette", "lab_security_palette" ],
Expand Down
8 changes: 8 additions & 0 deletions data/json/mapgen/map_extras/lab_extras.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"type": "mapgen",
"method": "json",
"update_mapgen_id": "mx_lab_concourse_area_spawn",
"object": { "place_loot": [ { "group": "lanyard_YS_badge", "x": 4, "y": [ 5, 18 ], "chance": 100 } ] }
}
]
1 change: 1 addition & 0 deletions data/json/mapgen/nested/fema_nested.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@
],
"C": { "item": "dissection", "chance": 90, "repeat": [ 0, 3 ] }
},
"place_loot": [ { "item": "id_science_visitor_1", "x": 8, "y": [ 8, 15 ], "chance": 100 } ],
"monsters": { ",": { "monster": "GROUP_LAB_FEMA", "chance": 1, "density": 0.001 } }
}
}
Expand Down
10 changes: 10 additions & 0 deletions data/json/overmap/map_extras.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,16 @@
"color": "light_gray",
"autonote": true
},
{
"id": "mx_lab_concourse_area",
"type": "map_extra",
"name": { "str": "Start location concourse area" },
"description": "There is a lanyard with an ID badge nearby.",
"generator": { "generator_method": "update_mapgen", "generator_id": "mx_lab_concourse_area_spawn" },
"sym": "F",
"color": "light_gray",
"autonote": true
},
{
"id": "mx_house_spider",
"type": "map_extra",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,6 @@
"connections": [ { "point": [ -4, 0, 0 ], "connection": "local_road", "terrain": "road", "existing": false } ],
"city_distance": [ 3, -1 ],
"city_sizes": [ 1, 16 ],
"occurrences": [ 0, 0 ]
"occurrences": [ 1, 3 ]
}
]
2 changes: 1 addition & 1 deletion data/json/professions.json
Original file line number Diff line number Diff line change
Expand Up @@ -1798,7 +1798,7 @@
"description": "You once ruled the road in your big rig. When the riots hit, you hopped in and drove it to safety. Now it's just you and your truck against the world.",
"points": 5,
"skills": [ { "level": 1, "name": "mechanics" }, { "level": 4, "name": "driving" } ],
"vehicle": "semi_truck",
"vehicle": "semi_truck_scenario",
"items": {
"both": {
"items": [ "tank_top", "socks", "boots_steel", "pants", "multitool", "wristwatch", "gloves_work", "hat_ball" ],
Expand Down
46 changes: 12 additions & 34 deletions data/json/scenarios.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,40 +137,6 @@
],
"missions": [ "MISSION_INFECTED_START_FIND_ANTIBIOTICS" ]
},
{
"type": "scenario",
"id": "hunted_start",
"name": "Challenge - Hunted",
"points": -2,
"forced_traits": [ "HAS_NEMESIS" ],
"description": "Since the start of the Cataclysm, something has been hunting you relentlessly. You can outrun it, but it always seems to find you eventually. The only escape is for one of you to die.",
"allowed_locs": [
"sloc_house",
"sloc_house_boarded",
"sloc_school",
"sloc_grocery_store",
"sloc_gun_store",
"sloc_garage",
"sloc_pawn_shop",
"sloc_bank",
"sloc_military_surplus",
"sloc_furniture_store",
"sloc_library",
"sloc_bookstore",
"sloc_zoo_giftshop",
"sloc_zoo_cages",
"sloc_golfcourse_mid_course",
"sloc_golfcourse_clubhouse",
"sloc_church",
"sloc_cemetery",
"sloc_apartments_rooftop",
"sloc_apartments_rooftop2",
"sloc_hospital"
],
"start_name": "In Town",
"flags": [ "CHALLENGE", "LONE_START" ],
"missions": [ "MISSION_KILL_NEMESIS" ]
},
{
"type": "scenario",
"id": "fungal_start",
Expand Down Expand Up @@ -328,6 +294,18 @@
"allowed_locs": [ "sloc_lab_random", "sloc_lab_escape_cells", "sloc_lab_finale", "sloc_ice_lab_stairs", "sloc_ice_lab_finale" ],
"flags": [ "CHALLENGE", "CITY_START", "LONE_START" ]
},
{
"type": "scenario",
"id": "lab_cargo_staff_1",
"name": "Challenge - Trans-Coast Logistics Concourse",
"points": -6,
"description": "You were deemed essential and required stay behind during the facility's evacuation. Find a way to escape and you better find that lanyard you misplaced before the automated defenses notice you don't have one.",
"start_name": "Locked Lab",
"professions": [ "security" ],
"allowed_locs": [ "sloc_lab_concourse_area" ],
"map_extra": "mx_lab_concourse_area",
"flags": [ "CHALLENGE", "LONE_START" ]
},
{
"type": "scenario",
"id": "bordered",
Expand Down
6 changes: 6 additions & 0 deletions data/json/start_locations.json
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,12 @@
"name": "Deep-frozen science lab",
"terrain": [ "ice_lab_finale" ]
},
{
"type": "start_location",
"id": "sloc_lab_concourse_area",
"name": "Cargo area Trans-Coast Logistics",
"terrain": [ { "om_terrain": "lab_CORE_2x1_1DN", "om_terrain_match_type": "TYPE" } ]
},
{
"type": "start_location",
"id": "sloc_mall_loading_area",
Expand Down
Loading

0 comments on commit 0de650c

Please sign in to comment.