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

Furniture construction requires only one component item. #46

Closed
TheDarklingWolf opened this issue Feb 7, 2013 · 2 comments
Closed

Furniture construction requires only one component item. #46

TheDarklingWolf opened this issue Feb 7, 2013 · 2 comments
Labels
<Bug> This needs to be fixed Good First Issue This is a good first issue for a new contributor

Comments

@TheDarklingWolf
Copy link
Contributor

Dressers can be made with just nails, etc.

@kevingranade
Copy link
Member

The problem here is boolean handling in game::player_can_build(). The has_tool and has_components booleans are set to true the first time a tool or component is found, and not reset, so it automatically passes for subsequent tool checks.

Just reset has_tool after tool_required and has_component after component_required.

@kevingranade
Copy link
Member

Addressed by 9d4a1f2

Kodiologist pushed a commit to Kodiologist/Cataclysm-DDA that referenced this issue Oct 3, 2020
* Make localization part of COMPILING.md clealier

* Fix styling of COMPILING-CMAKE.md

* Correct the mistake in lang compiling explanation

* Fix grammar in COMPILING.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bug> This needs to be fixed Good First Issue This is a good first issue for a new contributor
Projects
None yet
Development

No branches or pull requests

2 participants