Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Describe vehicle parts Part 1a #24281

Merged
merged 5 commits into from
Jul 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 120 additions & 3 deletions data/json/vehicle_parts.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions data/json/vehicleparts/alternator.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"symbol": "*",
"color": "yellow",
"broken_color": "red",
"description": "An alternator. When mounted on a gasoline or diesel engine and the engine is on, will produce electrical power that can be stored in a battery.",
"flags": [ "ALTERNATOR" ]
},
{
Expand Down
13 changes: 3 additions & 10 deletions data/json/vehicleparts/battery.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,14 @@
"color": "yellow",
"broken_color": "red",
"durability": 120,
"description": "A battery for storing electrical power, and discharing it to power electrical devices built into the vehicle.",
"folded_volume": 25,
"breaks_into": [
{ "item": "steel_lump", "count": [ 6, 9 ] },
{ "item": "steel_chunk", "count": [ 6, 9 ] },
{ "item": "scrap", "count": [ 6, 9 ] }
],
"requirements": {
"install": {
"time": 5000,
"qualities": [ { "id": "WRENCH", "level": 1 } ]
}
},
"requirements": { "install": { "time": 5000, "qualities": [ { "id": "WRENCH", "level": 1 } ] } },
"flags": [ "FOLDABLE", "REVERSIBLE" ]
},
{
Expand All @@ -46,10 +42,7 @@
"difficulty": 1,
"durability": 250,
"folded_volume": 10,
"breaks_into": [
{ "item": "scrap", "count": [ 1, 4 ] },
{ "item": "small_storage_battery", "count": [ 0, 4 ] }
],
"breaks_into": [ { "item": "scrap", "count": [ 1, 4 ] }, { "item": "small_storage_battery", "count": [ 0, 4 ] } ],
"requirements": { "install": { "time": 20000 } },
"extend": { "flags": [ "TOOL_SCREWDRIVER", "FOLDABLE" ] }
},
Expand Down
10 changes: 10 additions & 0 deletions data/json/vehicleparts/boards.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"location": "center",
"difficulty": 1,
"durability": 240,
"description": "A metal wall. Keeps zombies outside the vehicle and prevents people from seeing through it.",
"breaks_into": "ig_vp_sheet_metal",
"flags": [ "OPAQUE", "OBSTACLE" ]
},
Expand All @@ -19,6 +20,7 @@
"broken_color": "dark_gray",
"difficulty": 1,
"durability": 15,
"description": "A cloth wall. Keeps zombies outside the vehicle and prevents people from seeing through it.",
"folded_volume": 15,
"breaks_into": "ig_vp_cloth",
"flags": [ "OPAQUE", "OBSTACLE", "FOLDABLE", "NAILABLE" ]
Expand All @@ -28,6 +30,7 @@
"copy-from": "clothboard",
"type": "vehicle_part",
"name": "cloth quarterpanel",
"description": "A half-height cloth wall. Keeps zombies outside the vehiclebut allows people to see over it.",
"proportional": { "durability": 0.8 },
"delete": { "flags": [ "OPAQUE" ] }
},
Expand All @@ -36,6 +39,7 @@
"copy-from": "board",
"type": "vehicle_part",
"name": "quarterpanel",
"description": "A half-height metal wall. Keeps zombies outside the vehiclebut allows people to see over it.",
"proportional": { "durability": 0.8 },
"delete": { "flags": [ "OPAQUE" ] }
},
Expand All @@ -50,6 +54,7 @@
"broken_color": "light_gray",
"difficulty": 2,
"durability": 200,
"description": "A metal wall with a storage locker. Keeps zombies outside the vehicle and prevents people from seeing through it. Can also be used to store items.",
"size": 250,
"flags": [ "OBSTACLE", "OPAQUE", "CARGO", "COVERED" ]
},
Expand All @@ -73,6 +78,7 @@
"color": "dark_gray",
"difficulty": 1,
"durability": 1000,
"description": "A strong metal wall. Keeps zombies outside the vehicle and prevents people from seeing through it.",
"breaks_into": "ig_vp_steel_plate",
"flags": [ "OPAQUE", "OBSTACLE" ]
},
Expand All @@ -81,6 +87,7 @@
"copy-from": "hdboard",
"type": "vehicle_part",
"name": "heavy duty quarterpanel",
"description": "A half-height strong metal wall. Keeps zombies outside the vehiclebut allows people to see over it.",
"proportional": { "durability": 0.8 },
"delete": { "flags": [ "OPAQUE" ] }
},
Expand All @@ -94,6 +101,7 @@
"broken_color": "brown",
"difficulty": 1,
"durability": 300,
"description": "A wooden wall. Keeps zombies outside the vehicle and prevents people from seeing through it.",
"breaks_into": "ig_vp_wood_plate",
"flags": [ "OPAQUE", "OBSTACLE", "NAILABLE" ]
},
Expand All @@ -102,6 +110,7 @@
"copy-from": "woodboard",
"type": "vehicle_part",
"name": "wooden quarterpanel",
"description": "A half-height wooden wall. Keeps zombies outside the vehiclebut allows people to see over it.",
"proportional": { "durability": 0.8 },
"delete": { "flags": [ "OPAQUE" ] }
},
Expand All @@ -113,6 +122,7 @@
"location": "center",
"difficulty": 1,
"durability": 100,
"description": "A half-height thin metal wall. Keeps zombies outside the vehiclebut allows people to see over it.",
"breaks_into": [ { "item": "pipe", "prob": 50 } ],
"flags": [ "OBSTACLE" ]
},
Expand Down
2 changes: 2 additions & 0 deletions data/json/vehicleparts/combustion.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"symbol": "*",
"difficulty": 4,
"durability": 400,
"description": "A diesel engine. Burns diesel from a tank in the vehicle to move the vehicle if the vehicle has sufficient wheels. Requires controls to turn on. Requires a charged battery to start. An alternator attached to the engine will generate electrical power while the engine is on.",
"epower": -350,
"damage_modifier": 80,
"breaks_into": [
Expand Down Expand Up @@ -65,6 +66,7 @@
"fuel_type": "gasoline",
"difficulty": 2,
"durability": 150,
"description": "A gasoline engine. Burns gasoline from a tank in the vehicle to move the vehicle if the vehicle has sufficient wheels. Requires controls to turn on. Requires a charged battery to start. An alternator attached to the engine will generate electrical power while the engine is on.",
"epower": 0,
"damage_modifier": 80,
"breaks_into": [
Expand Down
4 changes: 4 additions & 0 deletions data/json/vehicleparts/engineering.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"broken_color": "light_blue",
"difficulty": 5,
"durability": 200,
"description": "A rigid steel boom crane. Can be used to jack up another vehicle to change the other vehicle's wheels, or lift a heavy component like an engine from another vehicle.",
"breaks_into": [ { "item": "pipe", "count": [ 8, 32 ] }, { "item": "scrap", "count": [ 8, 24 ] } ],
"qualities": [ [ "LIFT", 4 ], [ "JACK", 40 ] ],
"flags": [ "TOOL_WRENCH", "PROTRUSION" ]
Expand All @@ -27,6 +28,7 @@
"broken_color": "light_blue",
"difficulty": 2,
"durability": 100,
"description": "An extendable, cantilever crane. Can be used to jack up another vehicle to change the other vehicle's wheels, or lift a heavy component like an engine from another vehicle.",
"folded_volume": 12,
"breaks_into": [ { "item": "pipe", "count": [ 2, 8 ] }, { "item": "scrap", "count": [ 2, 6 ] } ],
"qualities": [ [ "LIFT", 1 ], [ "JACK", 7 ] ],
Expand All @@ -44,6 +46,7 @@
"broken_color": "light_blue",
"difficulty": 2,
"durability": 100,
"description": "A small pallet lifter. Can be used to jack up another vehicle to change the other vehicle's wheels, or lift a heavy component like an engine from another vehicle.",
"folded_volume": 12,
"breaks_into": [ { "item": "pipe", "count": [ 1, 4 ] }, { "item": "scrap", "count": [ 2, 6 ] } ],
"qualities": [ [ "LIFT", 1 ], [ "JACK", 1 ] ],
Expand All @@ -62,6 +65,7 @@
"difficulty": 2,
"damage_modifier": 200,
"durability": 300,
"description": "A pair of forklift arms. Can be used to jack up another vehicle to change the other vehicle's wheels, or lift a heavy component like an engine from another vehicle.",
"size": 50,
"breaks_into": [
{ "item": "steel_lump", "count": [ 4, 6 ] },
Expand Down
71 changes: 19 additions & 52 deletions data/json/vehicleparts/frames.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
"symbol": "h",
"difficulty": 2,
"durability": 50,
"description": "A light metal framework, designed to fold. Other vehicle components can be mounted on it. If all the frames and components of a vehicle are foldable, the vehicle can be folding into a small package and picked up as a normal item.",
"folded_volume": 10,
"breaks_into": [
{ "item": "steel_chunk", "count": [ 0, 2 ] },
{ "item": "scrap", "count": [ 1, 2 ] }
],
"breaks_into": [ { "item": "steel_chunk", "count": [ 0, 2 ] }, { "item": "scrap", "count": [ 1, 2 ] } ],
"flags": [ "INITIAL_PART", "MOUNTABLE", "FOLDABLE" ]
},
{
Expand All @@ -26,11 +24,9 @@
"broken_color": "brown",
"difficulty": 2,
"durability": 15,
"description": "A light wooden framework, designed to fold. Other vehicle components can be mounted on it. If all the frames and components of a vehicle are foldable, the vehicle can be folding into a small package and picked up as a normal item.",
"folded_volume": 15,
"breaks_into": [
{ "item": "splinter", "count": [ 0, 6 ] },
{ "item": "nail", "charges": [ 1, 15 ] }
],
"breaks_into": [ { "item": "splinter", "count": [ 0, 6 ] }, { "item": "nail", "charges": [ 1, 15 ] } ],
"flags": [ "INITIAL_PART", "MOUNTABLE", "FOLDABLE", "NAILABLE" ]
},
{
Expand All @@ -41,22 +37,12 @@
"location": "structure",
"difficulty": 1,
"durability": 400,
"description": "A metal framework. Other vehicle components can be mounted on it, and it can be attached to other frames to increase the vehicle's size.",
"breaks_into": "ig_vp_frame",
"requirements": {
"install": {
"skills": [ [ "mechanics", 1 ] ],
"time": 120000,
"using": [ [ "welding_standard", 10 ] ]
},
"removal": {
"skills": [ [ "mechanics", 1 ] ],
"using": "vehicle_weld_removal"
},
"repair": {
"skills": [ [ "mechanics", 1 ] ],
"time": 30000,
"using": [ [ "welding_standard", 5 ] ]
}
"install": { "skills": [ [ "mechanics", 1 ] ], "time": 120000, "using": [ [ "welding_standard", 10 ] ] },
"removal": { "skills": [ [ "mechanics", 1 ] ], "using": "vehicle_weld_removal" },
"repair": { "skills": [ [ "mechanics", 1 ] ], "time": 30000, "using": [ [ "welding_standard", 5 ] ] }
},
"flags": [ "MOUNTABLE" ]
},
Expand All @@ -70,10 +56,8 @@
"broken_color": "brown",
"difficulty": 1,
"durability": 150,
"breaks_into": [
{ "item": "splinter", "count": [ 7, 9 ] },
{ "item": "nail", "charges": [ 5, 10 ] }
],
"description": "A wooden framework. Other vehicle components can be mounted on it, and it can be attached to other frames to increase the vehicle's size. Wood and nail construction means it can be constructed and added to the vehicle without welding tools.",
"breaks_into": [ { "item": "splinter", "count": [ 7, 9 ] }, { "item": "nail", "charges": [ 5, 10 ] } ],
"flags": [ "NAILABLE" ]
},
{
Expand All @@ -86,19 +70,11 @@
"broken_color": "brown",
"difficulty": 0,
"durability": 100,
"breaks_into": [
{ "item": "splinter", "count": [ 3, 5 ] },
{ "item": "string_36", "count": [ 10, 15 ] }
],
"description": "A light wooden framework. Other vehicle components can be mounted on it, and it can be attached to other frames to increase the vehicle's size. Wood and rope constructions means it can be constructed and added to the vehicle without welding tools or nails.",
"breaks_into": [ { "item": "splinter", "count": [ 3, 5 ] }, { "item": "string_36", "count": [ 10, 15 ] } ],
"requirements": {
"install": {
"time": 60000,
"using": [ [ "rope_natural_short", 1 ] ]
},
"repair": {
"time": 30000,
"using": [ [ "adhesive", 1 ] ]
}
"install": { "time": 60000, "using": [ [ "rope_natural_short", 1 ] ] },
"repair": { "time": 30000, "using": [ [ "adhesive", 1 ] ] }
}
},
{
Expand All @@ -110,22 +86,12 @@
"color": "dark_gray",
"difficulty": 3,
"durability": 1600,
"description": "A heavy metal framework. Other vehicle components can be mounted on it, and it can be attached to other frames to increase the vehicle's size. Increased mass makes it more resistant to damage in collisions.",
"breaks_into": "ig_vp_hdframe",
"requirements": {
"install": {
"skills": [ [ "mechanics", 3 ] ],
"time": 240000,
"using": [ [ "welding_standard", 20 ] ]
},
"removal": {
"skills": [ [ "mechanics", 1 ] ],
"using": "vehicle_weld_removal"
},
"repair": {
"skills": [ [ "mechanics", 3 ] ],
"time": 60000,
"using": [ [ "welding_standard", 10 ] ]
}
"install": { "skills": [ [ "mechanics", 3 ] ], "time": 240000, "using": [ [ "welding_standard", 20 ] ] },
"removal": { "skills": [ [ "mechanics", 1 ] ], "using": "vehicle_weld_removal" },
"repair": { "skills": [ [ "mechanics", 3 ] ], "time": 60000, "using": [ [ "welding_standard", 10 ] ] }
},
"flags": [ "MOUNTABLE" ]
},
Expand All @@ -138,6 +104,7 @@
"color": "light_gray",
"difficulty": 1,
"durability": 150,
"description": "A light metal framework. Other vehicle components can be mounted on it, and it can be attached to other frames to increase the vehicle's size.",
"breaks_into": "ig_vp_xlframe",
"flags": [ "MOUNTABLE" ]
},
Expand Down
Loading