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

Start making debug recipes for tests that can use them #77749

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
22 changes: 22 additions & 0 deletions data/json/recipes/debug_recipes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"result": "helmet_scavenger",
"type": "recipe",
"activity_level": "LIGHT_EXERCISE",
"category": "CC_ARMOR",
"subcategory": "CSC_ARMOR_HEAD",
"skill_used": "tailor",
"difficulty": 8,
"skills_required": [ "fabrication", 3 ],
"time": "3 h",
"autolearn": true,
"using": [ [ "sewing_aramids", 32 ], [ "soldering_standard", 8 ] ],
"components": [
[ [ "hat_ball", 1 ], [ "hat_boonie", 1 ] ],
[ [ "mask_filter", 1 ] ],
[ [ "glasses_bal", 1 ], [ "goggles_ski", 1 ] ],
[ [ "sheet_kevlar_layered", 1 ] ]
],
"proficiencies": [ { "proficiency": "prof_millinery" }, { "proficiency": "prof_polymerworking" } ]
}
]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JSON & C++ formatters] reported by reviewdog 🐶

Suggested change
]
]

8 changes: 4 additions & 4 deletions tests/crafting_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static const recipe_id recipe_cudgel_slow( "cudgel_slow" );
static const recipe_id recipe_dry_meat( "dry_meat" );
static const recipe_id recipe_fishing_hook_basic( "fishing_hook_basic" );
static const recipe_id recipe_helmet_kabuto( "helmet_kabuto" );
static const recipe_id recipe_helmet_scavenger( "helmet_scavenger" );
static const recipe_id recipe_helmet_scavenger_debug( "helmet_scavenger_debug" );
static const recipe_id recipe_leather_belt( "leather_belt" );
static const recipe_id recipe_longbow( "longbow" );
static const recipe_id recipe_macaroni_cooked( "macaroni_cooked" );
Expand Down Expand Up @@ -1304,13 +1304,13 @@ TEST_CASE( "crafting_skill_gain", "[skill],[crafting],[slow]" )
}
SECTION( "lvl 8 -> 9" ) {
GIVEN( "nominal morale" ) {
test_skill_progression( recipe_helmet_scavenger, 66244, 0, true );
test_skill_progression( recipe_helmet_scavenger_debug, 66244, 0, true );
}
GIVEN( "high morale" ) {
test_skill_progression( recipe_helmet_scavenger, 54171, 50, true );
test_skill_progression( recipe_helmet_scavenger_debug, 54171, 50, true );
}
GIVEN( "very high morale" ) {
test_skill_progression( recipe_helmet_scavenger, 49610, 100, true );
test_skill_progression( recipe_helmet_scavenger_debug, 49610, 100, true );
}
}
SECTION( "lvl 9 -> 10" ) {
Expand Down
Loading