Skip to content

Commit

Permalink
vehicle_parts: collapse frame/board variants into one entry
Browse files Browse the repository at this point in the history
instead of having 8-9 different vehicle part JSON definitions for
boards, quarterpanels, and frames that differ only by id and symbol,
have a single vehicle part JSON definition that has multiple symbols.

Make this transparent for mods by parsing the vehicle part id for the
standard variants (cover, cross, horizontal, etc).
  • Loading branch information
mlangsdorf committed Aug 15, 2020
1 parent c0b18ef commit 5dbcf8e
Show file tree
Hide file tree
Showing 28 changed files with 736 additions and 1,561 deletions.
48 changes: 48 additions & 0 deletions data/json/obsolete.json
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,54 @@
"removal": { "skills": [ [ "mechanics", 3 ] ] }
}
},
{
"abstract": "door_abstract",
"breaks_into": "ig_vp_frame",
"broken_color": "cyan",
"broken_symbol": "&",
"color": "cyan",
"damage_modifier": 80,
"damage_reduction": { "all": 21 },
"description": "A door. Has a window so you can see out of it, even when closed.",
"durability": 225,
"flags": [ "CARGO", "OBSTACLE", "OPENABLE", "BOARDABLE", "WINDOW" ],
"item": "frame",
"location": "center",
"looks_like": "t_door_metal_c",
"name": { "str": "door" },
"requirements": {
"install": { "skills": [ [ "mechanics", 2 ] ], "time": "60 m", "using": [ [ "vehicle_bolt", 1 ] ] },
"removal": { "skills": [ [ "mechanics", 2 ] ], "time": "30 m", "using": [ [ "vehicle_bolt", 1 ] ] },
"repair": { "skills": [ [ "mechanics", 3 ] ], "time": "60 m", "using": [ [ "welding_standard", 5 ] ] }
},
"size": 10,
"symbol": "+",
"type": "vehicle_part"
},
{
"copy-from": "door_abstract",
"id": "door_front_left",
"symbol": "y",
"type": "vehicle_part"
},
{
"copy-from": "door_abstract",
"id": "door_front_right",
"symbol": "u",
"type": "vehicle_part"
},
{
"copy-from": "door_abstract",
"id": "door_rear_left",
"symbol": "b",
"type": "vehicle_part"
},
{
"copy-from": "door_abstract",
"id": "door_rear_right",
"symbol": "n",
"type": "vehicle_part"
},
{
"type": "terrain",
"id": "t_gas_tank",
Expand Down
Loading

0 comments on commit 5dbcf8e

Please sign in to comment.