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

Dumpster and vehicle storage #70184

Merged
merged 31 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
15f18ad
seat and storage stuff
worm-girl Dec 13, 2023
6d11135
Seats hold bodies
worm-girl Dec 13, 2023
8dae6d3
fixes
worm-girl Dec 13, 2023
04ef9d8
desc
worm-girl Dec 13, 2023
2521412
Update furniture-storage.json
worm-girl Dec 13, 2023
6c61138
Update data/json/recipes/other/parts.json
worm-girl Dec 13, 2023
d67b82a
Update data/json/recipes/other/parts.json
worm-girl Dec 13, 2023
efed745
cargo_passable
worm-girl Dec 15, 2023
aea4dda
hm
worm-girl Dec 15, 2023
83dae5a
block NPC
worm-girl Dec 17, 2023
1925aef
Do it at character level
worm-girl Dec 17, 2023
3605c86
hmm
worm-girl Dec 18, 2023
87e2349
yeeeehaw
worm-girl Dec 18, 2023
be706f1
adjustments
worm-girl Dec 18, 2023
99bb823
Merge branch 'master' into storage-buff
worm-girl Dec 18, 2023
d070fa7
Updates
worm-girl Dec 19, 2023
62bb2ba
enum, clean up
worm-girl Dec 19, 2023
6930587
astyle
worm-girl Dec 19, 2023
9a3a971
linting
worm-girl Dec 19, 2023
13a1f97
linting2
worm-girl Dec 19, 2023
ed9f502
one last bugfix
worm-girl Dec 19, 2023
bb9775a
just kidding. Now it's ready.
worm-girl Dec 19, 2023
f7321ea
Update vehicle_parts.json
worm-girl Dec 20, 2023
b181ca3
make tests happy
worm-girl Dec 20, 2023
ee6753a
astyle
worm-girl Dec 20, 2023
dcc5ddc
Update src/character.cpp
worm-girl Dec 20, 2023
3f88c6b
Update src/character.cpp
worm-girl Dec 20, 2023
fcdcd5c
Update src/monmove.cpp
worm-girl Dec 20, 2023
eb4da6d
tests
worm-girl Dec 21, 2023
1663c8e
Update src/monster.cpp
worm-girl Dec 21, 2023
0212875
Update src/monster.cpp
worm-girl Dec 21, 2023
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
3 changes: 2 additions & 1 deletion data/json/furniture_and_terrain/furniture-storage.json
Original file line number Diff line number Diff line change
Expand Up @@ -1402,7 +1402,8 @@
"move_cost_mod": 3,
"coverage": 70,
"required_str": 16,
"flags": [ "CONTAINER", "PLACE_ITEM", "BLOCKSDOOR", "HIDE_PLACE", "NO_SIGHT", "FIRE_CONTAINER" ],
"max_volume": "1500 L",
"flags": [ "CONTAINER", "PLACE_ITEM", "BLOCKSDOOR", "HIDE_PLACE", "NO_SIGHT", "FIRE_CONTAINER", "LIQUIDCONT" ],
"deconstruct": {
"items": [
{ "item": "frame", "count": [ 2, 3 ] },
Expand Down
34 changes: 30 additions & 4 deletions data/json/items/vehicle/seating.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
{
"type": "GENERIC",
"id": "seat",
"name": { "str": "seat" },
"name": { "str": "bucket seat" },
"description": "A soft car seat made from synthetic fabric.",
"weight": "9071 g",
"to_hit": -4,
"color": "red",
"symbol": "0",
"material": [ "cotton", "steel" ],
"material": [ "nylon", "steel" ],
"volume": "7500 ml",
"category": "veh_parts",
"price": 35000,
Expand All @@ -19,9 +19,35 @@
"type": "GENERIC",
"copy-from": "seat",
"id": "seat_leather",
"name": { "str": "leather seat" },
"name": { "str": "leather bucket seat" },
"description": "A soft car seat covered with leather.",
"material": [ "leather", "cotton", "steel" ],
"material": [ "leather", "nylon", "steel" ],
"price": 60000,
"price_postapoc": 250
},
{
"type": "GENERIC",
"id": "seat_bench",
"name": { "str": "bench seat" },
"description": "A wide, flat seat like you'd find in the back of a sedan, upholstered with soft nylon.",
"weight": "9071 g",
"to_hit": -4,
"color": "red",
"symbol": "0",
"material": [ "nylon", "steel" ],
"volume": "7500 ml",
"category": "veh_parts",
"price": 35000,
"price_postapoc": 100,
"melee_damage": { "bash": 4 }
},
{
"type": "GENERIC",
"copy-from": "seat",
"id": "seat_bench_leather",
"name": { "str": "leather bench seat" },
"description": "A wide, flat seat like you'd find in the back of a sedan, upholstered with leather.",
"material": [ "leather", "nylon", "steel" ],
"price": 60000,
"price_postapoc": 250
},
Expand Down
52 changes: 50 additions & 2 deletions data/json/recipes/other/parts.json
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@
{ "proficiency": "prof_welding_basic", "skill_penalty": 0.5 },
{ "proficiency": "prof_welding" }
],
"components": [ [ [ "pipe", 4 ] ], [ [ "spring", 2 ] ], [ [ "cotton_patchwork", 20 ], [ "sheet", 1 ] ], [ [ "pipe_fittings", 4 ] ] ]
"components": [ [ [ "pipe", 4 ] ], [ [ "spring", 2 ] ], [ [ "nylon", 20 ], [ "sheet_nylon", 1 ] ], [ [ "pipe_fittings", 4 ] ] ]
worm-girl marked this conversation as resolved.
Show resolved Hide resolved
},
{
"type": "recipe",
Expand All @@ -790,7 +790,55 @@
[ [ "spring", 2 ] ],
[ [ "leather", 12 ], [ "fur", 12 ], [ "tanned_hide", 3 ], [ "tanned_pelt", 3 ] ],
[ [ "pipe_fittings", 4 ] ],
[ [ "cotton_patchwork", 8 ] ]
[ [ "nylon", 8 ] ]
]
},
{
"type": "recipe",
"activity_level": "MODERATE_EXERCISE",
"result": "seat_bench",
"category": "CC_OTHER",
"subcategory": "CSC_OTHER_PARTS",
"skill_used": "fabrication",
"difficulty": 1,
"time": "2 h",
"reversible": { "time": "20 m" },
"autolearn": true,
"//": "20cm weld",
"using": [ [ "sewing_standard", 50 ], [ "welding_standard", 20 ] ],
"proficiencies": [
{ "proficiency": "prof_metalworking" },
{ "proficiency": "prof_welding_basic", "skill_penalty": 0.5 },
{ "proficiency": "prof_welding" }
],
"components": [ [ [ "pipe", 4 ] ], [ [ "spring", 2 ] ], [ [ "nylon", 20 ], [ "sheet_nylon", 1 ] ], [ [ "pipe_fittings", 4 ] ] ]
worm-girl marked this conversation as resolved.
Show resolved Hide resolved
},
{
"type": "recipe",
"activity_level": "MODERATE_EXERCISE",
"result": "seat_bench_leather",
"category": "CC_OTHER",
"subcategory": "CSC_OTHER_PARTS",
"skill_used": "fabrication",
"difficulty": 1,
"time": "6 h",
"reversible": { "time": "20 m" },
"autolearn": true,
"//": "20cm weld",
"using": [ [ "sewing_standard", 50 ], [ "welding_standard", 20 ] ],
"proficiencies": [
{ "proficiency": "prof_metalworking" },
{ "proficiency": "prof_welding_basic", "skill_penalty": 0.5 },
{ "proficiency": "prof_welding" },
{ "proficiency": "prof_leatherworking_basic" },
{ "proficiency": "prof_leatherworking" }
],
"components": [
[ [ "pipe", 4 ] ],
[ [ "spring", 2 ] ],
[ [ "leather", 12 ], [ "fur", 12 ], [ "tanned_hide", 3 ], [ "tanned_pelt", 3 ] ],
[ [ "pipe_fittings", 4 ] ],
[ [ "nylon", 8 ] ]
]
},
{
Expand Down
36 changes: 19 additions & 17 deletions data/json/vehicleparts/seats.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"entries": [
{ "count": [ 2, 8 ], "item": "cotton_patchwork" },
{ "count": [ 2, 8 ], "item": "nylon" },
{ "count": [ 1, 3 ], "item": "pipe" },
{ "count": [ 0, 2 ], "item": "spring" },
{ "count": [ 3, 5 ], "item": "scrap" }
Expand All @@ -13,7 +13,7 @@
{
"entries": [
{ "count": [ 1, 5 ], "item": "leather" },
{ "count": [ 1, 3 ], "item": "cotton_patchwork" },
{ "count": [ 1, 3 ], "item": "nylon" },
{ "count": [ 1, 3 ], "item": "pipe" },
{ "count": [ 0, 2 ], "item": "spring" },
{ "count": [ 3, 5 ], "item": "scrap" }
Expand All @@ -31,15 +31,15 @@
"comfort": 2,
"damage_modifier": 60,
"damage_reduction": { "all": 2, "bash": 5 },
"description": "A place to sit, or sleep if you're desperate.",
"description": "A soft upholstered car seat, contoured to hold one person.",
"durability": 300,
"flags": [ "SEAT", "BOARDABLE", "CARGO", "BELTABLE" ],
"floor_bedding_warmth": 200,
"item": "seat",
"location": "center",
"looks_like": "reclining_seat",
"//": "weld repairs would mostly be the frame and springs of the seat, so low 6cm cost per quadrant",
"name": { "str": "seat" },
"name": { "str": "bucket seat" },
"requirements": {
"install": { "skills": [ [ "mechanics", 1 ] ], "time": "30 m", "using": [ [ "vehicle_wrench_2", 1 ] ] },
"removal": { "skills": [ [ "mechanics", 2 ] ], "time": "15 m", "using": [ [ "vehicle_wrench_2", 1 ] ] },
Expand All @@ -49,7 +49,7 @@
"using": [ [ "repair_welding_standard", 1 ], [ "sewing_standard", 8 ] ]
}
},
"size": "25 L",
"size": "63 L",
"type": "vehicle_part",
"variants_bases": [ { "id": "windshield", "label": "Windshield" }, { "id": "swivel_chair", "label": "Swivel Chair" } ],
"variants": [
Expand All @@ -67,19 +67,20 @@
"breaks_into": "ig_vp_seat_leather",
"copy-from": "seat",
"item": "seat_leather",
"name": { "str": "leather seat" },
"name": { "str": "leather bucket seat" },
"description": "A leather car seat for one.",
"type": "vehicle_part",
"variants_bases": [ { "id": "windshield", "label": "Windshield" } ]
},
{
"id": "reclining_seat",
"copy-from": "seat",
"comfort": 3,
"description": "A place to sit, with an adjustable backrest.",
"description": "A soft seat with an adjustable backrest, making it a reasonably comfortable place to sleep.",
"durability": 100,
"size": "62500 ml",
"floor_bedding_warmth": 350,
"name": { "str": "reclining seat" },
"size": "6250 ml",
"name": { "str": "reclining bucket seat" },
"extend": { "flags": [ "BED" ] },
"type": "vehicle_part",
"variants_bases": [ { "id": "windshield", "label": "Windshield" } ]
Expand All @@ -90,28 +91,29 @@
"copy-from": "reclining_seat",
"item": "seat_leather",
"looks_like": "seat_leather",
"name": { "str": "reclining leather seat" },
"name": { "str": "reclining leather bucket seat" },
"type": "vehicle_part",
"variants_bases": [ { "id": "windshield", "label": "Windshield" } ]
},
{
"id": "seat_back",
"copy-from": "seat",
"comfort": 4,
"description": "A benchlike seat. Mostly found in the second row, also known as the back or rear seat.",
"comfort": 3,
"description": "A soft, wide seat with a high back, the kind often used in back seats or older cars. It might be a decent place to sleep.",
"floor_bedding_warmth": 500,
"name": { "str": "back seat" },
"size": "30 L",
"item": "seat_bench",
"name": { "str": "bench seat" },
"size": "65 L",
"extend": { "flags": [ "BED" ] },
"type": "vehicle_part"
},
{
"id": "seat_back_leather",
"copy-from": "seat_back",
"breaks_into": "ig_vp_seat_leather",
"item": "seat_leather",
"item": "seat_bench_leather",
"looks_like": "seat_leather",
"name": { "str": "leather back seat" },
"name": { "str": "leather bench seat" },
"type": "vehicle_part"
},
{
Expand Down Expand Up @@ -165,7 +167,7 @@
},
{
"id": "metal_bench",
"copy-from": "seat",
"copy-from": "seat_back",
"breaks_into": "ig_vp_prison_bench",
"comfort": 0,
"floor_bedding_warmth": 0,
Expand Down
16 changes: 10 additions & 6 deletions data/json/vehicleparts/vehicle_parts.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
"damage_modifier": 60,
"durability": 95,
"description": "A small but comfortable bed.",
"size": "50 L",
"size": "70 L",
"item": "mattress",
"comfort": 4,
"floor_bedding_warmth": 700,
Expand Down Expand Up @@ -298,6 +298,7 @@
"color": "white",
"durability": 400,
"description": "An aisle.",
"size": "100 L",
"item": "sheet_metal",
"location": "center",
"//": "1m square sheet of metal, likely affixed with bolts in places, assume 200cm weld to install and 50cm weld to repair",
Expand All @@ -314,7 +315,7 @@
},
"repair": { "skills": [ [ "mechanics", 2 ] ], "time": "6 m", "using": [ [ "repair_welding_standard", 5 ] ] }
},
"flags": [ "AISLE", "BOARDABLE" ],
"flags": [ "AISLE", "BOARDABLE", "CARGO" ],
"breaks_into": "ig_vp_sheet_metal",
"damage_reduction": { "all": 28 },
"variants": [
Expand Down Expand Up @@ -348,7 +349,7 @@
"description": "A collapsible aisle.",
"folded_volume": "12500 ml",
"item": "foldwoodframe",
"flags": [ "AISLE", "BOARDABLE" ]
"flags": [ "AISLE", "BOARDABLE", "CARGO" ]
},
{
"type": "vehicle_part",
Expand All @@ -359,7 +360,7 @@
"color": "white",
"durability": 400,
"description": "An aisle. A hatch lets you access a cargo space beneath it.",
"size": "87500 ml",
"size": "100 L",
"item": "cargo_aisle",
"location": "center",
"//": "same requirements as aisle to install but higher repair costs due to more mass",
Expand Down Expand Up @@ -2471,7 +2472,7 @@
"broken_color": "brown",
"damage_modifier": 20,
"durability": 75,
"description": "A place to sit.",
"description": "A place to sit, barely.",
"item": "frame_wood_light",
"location": "center",
"requirements": {
Expand All @@ -2495,14 +2496,16 @@
"damage_modifier": 60,
"durability": 125,
"description": "A place to sit.",
"comfort": 1,
"item": "frame_wood",
"location": "center",
"size": "62500 ml",
"requirements": {
"install": { "skills": [ [ "mechanics", 1 ] ], "time": "30 m", "using": [ [ "vehicle_nail_install", 1 ] ] },
"removal": { "skills": [ [ "mechanics", 2 ] ], "time": "15 m", "using": [ [ "vehicle_nail_removal", 1 ] ] },
"repair": { "skills": [ [ "mechanics", 2 ] ], "time": "30 m", "using": [ [ "adhesive", 2 ] ] }
},
"flags": [ "SEAT", "BOARDABLE", "BELTABLE" ],
"flags": [ "SEAT", "BOARDABLE", "BELTABLE", "CARGO" ],
"breaks_into": [ { "item": "splinter", "count": [ 7, 9 ] } ],
"damage_reduction": { "all": 8 },
"variants": [ { "symbols": "#", "symbols_broken": "*" } ]
Expand All @@ -2513,6 +2516,7 @@
"name": { "str": "wooden bench" },
"copy-from": "seat_wood",
"durability": 150,
"size": "65 L",
"description": "A benchlike place to sit."
},
{
Expand Down
Loading