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

Require player to have the recipe at all stages in crafting #29949

Merged
merged 1 commit into from
Apr 26, 2019

Conversation

ifreund
Copy link
Contributor

@ifreund ifreund commented Apr 26, 2019

Summary

SUMMARY: Bugfixes "Require player to have the recipe at all stages in crafting."

Purpose of change

Progress towards #29210
It doesn't make sense that you can continue working on crafts without having the recipe memorized or having the book with.

Describe the solution

Add a new function can_continue_craft() to player. I plan to expand this to also check for required tools and anything else that make sense in the future.

@ifreund ifreund added Crafting / Construction / Recipes Includes: Uncrafting / Disassembling [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) Mechanics: Character / Player Character / Player mechanics labels Apr 26, 2019
@ifreund
Copy link
Contributor Author

ifreund commented Apr 26, 2019

Not sure what's up with the tests failing on the mingw builds. They pass on the other build systems and locally.

@ZhilkinSerg ZhilkinSerg merged commit 4f778b5 into CleverRaven:master Apr 26, 2019
@ifreund ifreund deleted the craft-rec-check branch April 27, 2019 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Crafting / Construction / Recipes Includes: Uncrafting / Disassembling Mechanics: Character / Player Character / Player mechanics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants