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

Use recipe difficulty for crafting check #13137

Merged
merged 1 commit into from
Aug 2, 2015
Merged
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
Use recipe difficulty for crafting check
And not the skill level of the book / for memorization.
  • Loading branch information
drbig committed Jul 30, 2015
commit 74a4d77f833c167622f7fb4d2520da6b1ee77001
6 changes: 3 additions & 3 deletions src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13057,9 +13057,9 @@ int player::has_recipe( const recipe *r, const inventory &crafting_inv ) const
continue;
}
if( ( r->skill_used == NULL ||
get_skill_level(r->skill_used) >= elem.skill_level ) &&
( difficulty == -1 || elem.skill_level < difficulty ) ) {
difficulty = elem.skill_level;
get_skill_level(r->skill_used) >= r->difficulty ) &&
( difficulty == -1 || r->difficulty < difficulty ) ) {
difficulty = r->difficulty;
}
}
} else {
Expand Down