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

Add flint and steel recipe #55842

Merged
merged 6 commits into from
Apr 22, 2022
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
4 changes: 4 additions & 0 deletions data/json/itemgroups/Locations_MapExtras/locations.json
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,7 @@
"entries": [
{ "item": "rock", "prob": 40 },
{ "item": "rock_flaking", "prob": 15 },
{ "item": "flint", "prob": 5 },
{ "item": "rock_large", "prob": 10 },
{ "item": "jackhammer", "prob": 2, "charges": [ 0, 1200 ] },
{ "item": "elec_jackhammer", "prob": 1 },
Expand Down Expand Up @@ -1244,6 +1245,7 @@
{ "item": "rock", "prob": 40, "count": [ 1, 10 ] },
{ "item": "rock_large", "prob": 10, "count": [ 1, 10 ] },
{ "item": "rock_flaking", "prob": 20, "count": [ 1, 10 ] },
{ "item": "flint", "prob": 5, "count": [ 1, 10 ] },
{ "item": "material_shrd_limestone", "prob": 40, "count": [ 1, 10 ] },
{ "item": "material_limestone", "prob": 40, "count": [ 1, 10 ] },
{ "item": "material_niter", "prob": 5, "count": [ 1, 10 ] },
Expand Down Expand Up @@ -1313,6 +1315,7 @@
"items": [
[ "rock", 40 ],
[ "rock_flaking", 10 ],
[ "flint", 5 ],
[ "rock_large", 5 ],
[ "sharp_rock", 5 ],
{ "group": "newspaper_recent", "prob": 5 },
Expand All @@ -1326,6 +1329,7 @@
"items": [
[ "rock", 40 ],
[ "rock_flaking", 5 ],
[ "flint", 2 ],
[ "rock_large", 5 ],
[ "stick", 95 ],
[ "pine_bough", 20 ],
Expand Down
1 change: 1 addition & 0 deletions data/json/itemgroups/Locations_MapExtras/mansion.json
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,7 @@
[ "stick", 50 ],
[ "rock", 50 ],
[ "rock_flaking", 5 ],
[ "flint", 1 ],
[ "rock_large", 5 ],
[ "plastic_shopping_bag", 40 ],
[ "sinew", 40 ],
Expand Down
1 change: 1 addition & 0 deletions data/json/itemgroups/misc.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
{ "item": "clay_lump", "count": [ 1, 4 ], "prob": 5 },
{ "item": "rock", "count": [ 1, 4 ], "prob": 10 },
{ "item": "rock_flaking", "count": [ 1, 4 ], "prob": 2 },
{ "item": "flint", "prob": 1 },
{ "item": "rock_large", "prob": 10 },
{ "item": "pebble", "count": [ 1, 4 ], "prob": 15 }
]
Expand Down
1 change: 1 addition & 0 deletions data/json/itemgroups/trash_and_debris.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"items": [
[ "rock", 80 ],
[ "rock_flaking", 80 ],
[ "flint", 20 ],
[ "stick", 80 ],
[ "acorns", 80 ],
[ "pinecone", 80 ],
Expand Down
4 changes: 2 additions & 2 deletions data/json/items/resources/misc.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@
"id": "sharp_rock",
"symbol": "*",
"color": "light_gray",
"name": { "str": "flint" },
"description": "A rock with sharp edges. Makes a passable melee weapon, and can also make sparks if struck against high-carbon steel.",
"name": { "str": "sharp rock" },
"description": "A baseball-sized rock with a somewhat sharp edge that also chips in a semi-predictable way if struck. With the right skills, you could give it a better edge.",
"material": [ "stone" ],
"weight": "500 g",
"volume": "250 ml",
Expand Down
7 changes: 7 additions & 0 deletions data/json/items/resources/stone.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
"to_hit": -1,
"effects": [ "NEVER_MISFIRES", "NON_FOULING", "RECOVER_60" ]
},
{
"type": "AMMO",
"id": "flint",
"copy-from": "rock_flaking",
"name": { "str": "flint" },
"description": "A chunk of flint, the kind of rock that can make sparks if stuck against high-carbon steel. It also chips in a semi-predictable way if struck, leaving a sharp edge."
},
{
"type": "GENERIC",
"id": "rock_large",
Expand Down
4 changes: 2 additions & 2 deletions data/json/items/tool/fire.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@
"id": "flint_steel",
"type": "TOOL",
"name": { "str": "flint and steel", "str_pl": "sets of flint and steel" },
"description": "This is a magnesium bar and a carbon steel striker. Use it to spark a flame.",
"description": "This is a flint and a hardened high carbon steel striker. Use it to spark a flame.",
"weight": "400 g",
"volume": "250 ml",
"price": 300,
"price_postapoc": 250,
"to_hit": -1,
"material": [ "stone", "steel" ],
"material": [ "stone", "hc_steel" ],
"symbol": ",",
"color": "dark_gray",
"initial_charges": 2000,
Expand Down
6 changes: 3 additions & 3 deletions data/json/recipes/recipe_ammo.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"autolearn": true,
"flags": [ "BLIND_EASY" ],
"qualities": [ { "id": "HAMMER", "level": 1 } ],
"components": [ [ [ "rock", 1 ], [ "sharp_rock", 1 ] ] ]
"components": [ [ [ "rock", 1 ], [ "rock_flaking_any", 1, "LIST" ] ] ]
},
{
"type": "recipe",
Expand Down Expand Up @@ -254,7 +254,7 @@
[ "ceramic_shard", 1 ],
[ "scrap", 2 ],
[ "nail", 10 ],
[ "sharp_rock", 1 ]
[ "rock_flaking_any", 1, "LIST" ]
],
[ [ "fletching", 1, "LIST" ] ]
]
Expand Down Expand Up @@ -427,7 +427,7 @@
[ "ceramic_shard", 1 ],
[ "scrap", 2 ],
[ "nail", 10 ],
[ "sharp_rock", 1 ]
[ "rock_flaking_any", 1, "LIST" ]
],
[ [ "fletching", 1, "LIST" ] ]
]
Expand Down
24 changes: 24 additions & 0 deletions data/json/recipes/recipe_deconstruction.json
Original file line number Diff line number Diff line change
Expand Up @@ -3565,6 +3565,30 @@
"qualities": [ { "id": "SAW_M", "level": 1 } ],
"components": [ [ [ "scrap", 7 ] ] ]
},
{
"result": "hc_steel_lump",
"type": "uncraft",
"activity_level": "BRISK_EXERCISE",
"time": "10 m",
"qualities": [ { "id": "SAW_M", "level": 2 } ],
"components": [ [ [ "hc_steel_chunk", 4 ] ] ]
},
{
"result": "mc_steel_lump",
"type": "uncraft",
"activity_level": "BRISK_EXERCISE",
"time": "10 m",
"qualities": [ { "id": "SAW_M", "level": 2 } ],
"components": [ [ [ "mc_steel_chunk", 4 ] ] ]
},
{
"result": "lc_steel_lump",
"type": "uncraft",
"activity_level": "BRISK_EXERCISE",
"time": "10 m",
"qualities": [ { "id": "SAW_M", "level": 2 } ],
"components": [ [ [ "lc_steel_chunk", 4 ] ] ]
},
{
"result": "pocketwatch",
"type": "uncraft",
Expand Down
20 changes: 20 additions & 0 deletions data/json/recipes/tools/tools_hand.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,26 @@
"tools": [ [ [ "hotcut", -1 ] ] ],
"components": [ [ [ "plastic_chunk", 2 ], [ "2x4", 1 ], [ "stick", 2 ] ] ]
},
{
"result": "flint_steel",
"type": "recipe",
"activity_level": "BRISK_EXERCISE",
"category": "CC_OTHER",
"subcategory": "CSC_OTHER_TOOLS",
"skill_used": "fabrication",
"difficulty": 4,
"time": "2 h",
"autolearn": true,
"using": [ [ "forging_standard", 2 ] ],
"proficiencies": [
{ "proficiency": "prof_metalworking" },
{ "proficiency": "prof_blacksmithing" },
{ "proficiency": "prof_toolsmithing" }
],
"qualities": [ { "id": "ANVIL", "level": 3 }, { "id": "HAMMER", "level": 3 } ],
"tools": [ [ [ "tongs", -1 ] ] ],
"components": [ [ [ "hc_steel_chunk", 1 ] ], [ [ "flint", 1 ] ] ]
},
{
"type": "recipe",
"activity_level": "MODERATE_EXERCISE",
Expand Down
23 changes: 12 additions & 11 deletions data/json/recipes/tools/tools_primitive.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"proficiencies": [ { "proficiency": "prof_knapping" }, { "proficiency": "prof_knapping_speed" } ],
"components": [
[ [ "stick", 1 ], [ "2x4", 1 ] ],
[ [ "rock_flaking", 1 ], [ "sharp_rock", 1 ] ],
[ [ "rock_flaking_any", 1, "LIST" ] ],
[ [ "cordage_short", 1, "LIST" ], [ "filament", 50, "LIST" ] ]
]
},
Expand Down Expand Up @@ -138,7 +138,7 @@
"autolearn": true,
"proficiencies": [ { "proficiency": "prof_knapping" }, { "proficiency": "prof_knapping_speed" } ],
"qualities": [ { "id": "HAMMER", "level": 1 }, { "id": "HAMMER_SOFT", "level": 1 }, { "id": "CHISEL_WOOD", "level": 1 } ],
"components": [ [ [ "stick", 1 ], [ "2x4", 1 ] ], [ [ "rock_flaking", 1 ], [ "sharp_rock", 1 ] ] ]
"components": [ [ [ "stick", 1 ], [ "2x4", 1 ] ], [ [ "rock_flaking_any", 1, "LIST" ] ] ]
},
{
"type": "recipe",
Expand Down Expand Up @@ -173,13 +173,14 @@
"difficulty": 2,
"time": "1 h",
"autolearn": true,
"qualities": [ { "id": "HAMMER", "level": 1 }, { "id": "CUT", "level": 2 } ],
"qualities": [
{ "id": "HAMMER", "level": 1 },
{ "id": "HAMMER_SOFT", "level": 1 },
{ "id": "PUNCH", "level": 1 },
{ "id": "CUT", "level": 2 }
],
"proficiencies": [ { "proficiency": "prof_knapping" }, { "proficiency": "prof_knapping_speed" } ],
"components": [
[ [ "stick", 1 ], [ "2x4", 1 ] ],
[ [ "rock", 1 ], [ "ceramic_shard", 1 ], [ "sharp_rock", 1 ] ],
[ [ "cordage_short", 2, "LIST" ], [ "filament", 100, "LIST" ] ]
]
"components": [ [ [ "stick", 1 ], [ "2x4", 1 ] ], [ [ "rock_flaking_any", 1, "LIST" ] ], [ [ "cordage_short", 2, "LIST" ] ] ]
},
{
"type": "recipe",
Expand All @@ -196,7 +197,7 @@
"proficiencies": [ { "proficiency": "prof_knapping" }, { "proficiency": "prof_knapping_speed" } ],
"components": [
[ [ "stick", 1 ], [ "2x4", 1 ] ],
[ [ "rock", 1 ], [ "ceramic_shard", 1 ], [ "sharp_rock", 1 ] ],
[ [ "rock", 1 ], [ "ceramic_shard", 1 ], [ "rock_flaking_any", 1, "LIST" ] ],
[ [ "cordage_short", 2, "LIST" ], [ "filament", 100, "LIST" ] ]
]
},
Expand Down Expand Up @@ -340,7 +341,7 @@
"autolearn": true,
"qualities": [ { "id": "HAMMER", "level": 1 } ],
"proficiencies": [ { "proficiency": "prof_knapping" }, { "proficiency": "prof_knapping_speed" } ],
"components": [ [ [ "rock_flaking", 1 ], [ "sharp_rock", 1 ] ] ]
"components": [ [ [ "rock_flaking_any", 1, "LIST" ] ] ]
},
{
"type": "recipe",
Expand All @@ -355,7 +356,7 @@
"autolearn": true,
"qualities": [ { "id": "HAMMER", "level": 1 }, { "id": "HAMMER_SOFT", "level": 1 } ],
"proficiencies": [ { "proficiency": "prof_knapping" }, { "proficiency": "prof_knapping_speed" } ],
"components": [ [ [ "rock_flaking", 1 ], [ "sharp_rock", 1 ] ] ]
"components": [ [ [ "rock_flaking_any", 1, "LIST" ] ] ]
},
{
"type": "recipe",
Expand Down
6 changes: 1 addition & 5 deletions data/json/recipes/weapon/piercing.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,7 @@
{ "proficiency": "prof_knapping_speed" },
{ "proficiency": "prof_carving", "fail_multiplier": 1.15 }
],
"components": [
[ [ "stick_long", 1 ] ],
[ [ "rock_flaking", 1 ], [ "sharp_rock", 1 ] ],
[ [ "cordage_short", 1, "LIST" ], [ "filament", 50, "LIST" ] ]
]
"components": [ [ [ "stick_long", 1 ] ], [ [ "rock_flaking_any", 1, "LIST" ] ], [ [ "cordage_short", 1, "LIST" ] ] ]
},
{
"result": "sharpened_pipe",
Expand Down
10 changes: 5 additions & 5 deletions data/json/recipes/weapon/ranged.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
{ "proficiency": "prof_carving", "time_multiplier": 1.5, "fail_multiplier": 1.15 }
],
"tools": [ [ [ "tongs", -1 ] ], [ [ "swage", -1 ] ] ],
"components": [ [ [ "2x4", 2 ] ], [ [ "pipe", 1 ] ], [ [ "sharp_rock", 1 ] ] ]
"components": [ [ [ "2x4", 2 ] ], [ [ "pipe", 1 ] ], [ [ "hc_steel_chunk", 1 ] ], [ [ "flint", 1 ] ] ]
},
{
"type": "recipe",
Expand Down Expand Up @@ -159,7 +159,7 @@
{ "proficiency": "prof_carving", "time_multiplier": 1.5, "fail_multiplier": 1.15 }
],
"tools": [ [ [ "tongs", -1 ] ], [ [ "hotcut", -1 ] ] ],
"components": [ [ [ "2x4", 2 ] ], [ [ "pipe", 1 ] ], [ [ "sharp_rock", 1 ] ] ]
"components": [ [ [ "2x4", 2 ] ], [ [ "pipe", 1 ] ], [ [ "hc_steel_chunk", 1 ] ], [ [ "flint", 1 ] ] ]
},
{
"type": "recipe",
Expand Down Expand Up @@ -188,7 +188,7 @@
{ "proficiency": "prof_carving", "time_multiplier": 1.5, "fail_multiplier": 1.15 }
],
"tools": [ [ [ "tongs", -1 ] ], [ [ "hotcut", -1 ] ] ],
"components": [ [ [ "2x4", 2 ] ], [ [ "pipe", 1 ] ], [ [ "sharp_rock", 1 ] ] ]
"components": [ [ [ "2x4", 2 ] ], [ [ "pipe", 1 ] ], [ [ "hc_steel_chunk", 1 ] ], [ [ "flint", 1 ] ] ]
},
{
"type": "recipe",
Expand Down Expand Up @@ -217,7 +217,7 @@
{ "proficiency": "prof_carving", "time_multiplier": 1.5, "fail_multiplier": 1.15 }
],
"tools": [ [ [ "tongs", -1 ] ], [ [ "hotcut", -1 ] ] ],
"components": [ [ [ "2x4", 1 ] ], [ [ "pipe", 1 ] ], [ [ "sharp_rock", 1 ] ] ]
"components": [ [ [ "2x4", 1 ] ], [ [ "pipe", 1 ] ], [ [ "hc_steel_chunk", 1 ] ], [ [ "flint", 1 ] ] ]
},
{
"result": "carbine_flintlock_double",
Expand All @@ -239,7 +239,7 @@
{ "proficiency": "prof_gunsmithing_antique" },
{ "proficiency": "prof_carving", "time_multiplier": 1.5, "fail_multiplier": 1.15 }
],
"components": [ [ [ "2x4", 2 ] ], [ [ "pipe", 2 ] ], [ [ "sharp_rock", 2 ] ] ]
"components": [ [ [ "2x4", 2 ] ], [ [ "pipe", 2 ] ], [ [ "hc_steel_chunk", 2 ] ], [ [ "flint", 2 ] ] ]
},
{
"result": "carbine_flintlock_double",
Expand Down
6 changes: 6 additions & 0 deletions data/json/requirements/materials.json
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,12 @@
"//": "Materials for use when forging atypically small items from steel",
"components": [ [ [ "steel_chunk", 1 ], [ "scrap", 5 ] ] ]
},
{
"id": "rock_flaking_any",
"type": "requirement",
"//": "Rocks that can be used for knapping.",
"components": [ [ [ "rock_flaking", 1 ], [ "sharp_rock", 1 ], [ "flint", 1 ] ] ]
},
{
"id": "waterproofing",
"type": "requirement",
Expand Down