Skip to content

Commit

Permalink
Merge pull request #24418 from BrianLefler/lab_json_finale
Browse files Browse the repository at this point in the history
Automatically balance hardcoded & json lab & lab finales against each…
  • Loading branch information
ZhilkinSerg authored Jul 22, 2018
2 parents 88c72b1 + a53391c commit eb1924e
Show file tree
Hide file tree
Showing 3 changed files with 543 additions and 375 deletions.
88 changes: 88 additions & 0 deletions data/json/mapgen/lab/lab_floorplans_finale1level.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
[
{
"//": "autodoc operating theatre",
"type": "mapgen",
"method": "json",
"om_terrain": [ "lab_finale_1level" ],
"weight": 2500,
"object": {
"rotation": [ 0, 3 ],
"fill_ter": "t_rock_floor",
"rows": [
"..cccccc.|...|,,,|..|,,,",
"c........|...|,,,|.6|,,,",
"c..Ccxc..|...|,,,g..g,,,",
"c........g...|,,,g..g,,,",
"c........g...|,,,D..D,,,",
"......llS|...|---|..|---",
"--gg-+---|...|,,,|..|,,,",
".............|,,,g..g,,,",
".............|,,,g..g,,,",
".............|,,,D..D,,,",
"........|-ggg----|..|---",
"........|r,,,r|t--+-|...",
"........g,,/,,D.....+...",
"........g,,?,,|-ggg-|...",
"........|r,,,r|.........",
"........|-ggg-|.........",
"........................",
"........................",
"..........dd7dd.........",
"..........d.h.d.........",
"...ddxdd.........ddxdd..",
"...d.h.d.........d.h.d..",
"........................",
"........................"
],
"palettes": [
"lab_palette", "lab_loot_generic"
],
"furniture": {
"?": "f_autodoc",
"/": "f_autodoc_couch"
},
"terrain": {
"C": "t_centrifuge",
"?": "t_floor_blue",
"/": "t_floor_blue",
"7": "t_console",
"r": "t_floor_blue"
},
"place_loot": [
{ "item": "anesthesia", "x": 15, "y": 11, "repeat": [4,9] }
],
"mapping": {
"r": {
"items": [
{ "item": "bionics_common", "chance": 40 },
{ "item": "bionics", "chance": 20 },
{ "item": "hospital_medical_items", "chance": 80 },
{ "item": "dissection", "chance": 60 }
]
}
},
"computers": {
"6": {
"name": "Operating Theatre Access Control", "security": 0, "options": [ { "name": "EMERGENCY EVAC - OPEN ALL DOORS", "action": "open", "security": 0 } ], "failures": [
{ "action": "damage" },
{ "action": "shutdown" }
]
},
"7": {
"name": "Operating Theatre Access Control", "security": 2, "options": [ { "name": "UNLOCK AUTODOC DOOR", "action": "unlock", "security": 6 } ], "failures": [
{ "action": "damage" },
{ "action": "shutdown" }
]
}
},
"place_monster": [
{ "monster": [ "mon_broken_cyborg", "mon_zombie_electric" ], "x": [ 14, 16 ], "y": [ 1, 4 ], "chance": 90 },
{ "monster": "mon_broken_cyborg", "x": [ 14, 16 ], "y": [ 6, 9 ], "chance": 90 },
{ "monster": "mon_broken_cyborg", "x": [ 21, 22 ], "y": [ 1, 4 ], "chance": 90 },
{ "monster": "mon_broken_cyborg", "x": [ 21, 22 ], "y": [ 6, 9 ], "chance": 90 },
{ "monster": "mon_zombie_scientist", "x": [15, 19], "y": 12, "chance": 90, "repeat": [1,2] },
{ "monster": "mon_zombie_brute_shocker", "x": [ 9, 10 ], "y": [ 12, 13 ]}
]
}
}
]
1 change: 1 addition & 0 deletions json_blacklist
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ data/json/mapgen/house/house_rv.json
data/json/mapgen/house/house_suicide.json
data/json/mapgen/lab/lab_common.json
data/json/mapgen/lab/lab_floorplan_cross.json
data/json/mapgen/lab/lab_floorplans_finale1level.json
data/json/mapgen/lab/lab_floorplans.json
data/json/mapgen/lab/lab_rooms.json
data/json/mapgen/laundromat.json
Expand Down
Loading

0 comments on commit eb1924e

Please sign in to comment.