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

Fix missing appliance removal prompt #56189

Merged
merged 1 commit into from
Mar 20, 2022

Conversation

dseguin
Copy link
Member

@dseguin dseguin commented Mar 18, 2022

Summary

None

Purpose of change

Fixes an oversight from #55583, where the requirements for removing an appliance are not communicated to the player.

Describe the solution

Fix the hammerspace check, which always evaluated to true (oops). Also replaces the skill check with a list of missing requirements:

prompt

Describe alternatives you've considered

Getting rid of removal requirements altogether (they're defined in JSON, so they could just be removed there).

Testing

See screenshot above. Using a wrench makes the removal successful.

Additional context

@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Mar 18, 2022
@Maleclypse Maleclypse added the Appliance/Power Grid Anything to do with appliances and power grid label Mar 18, 2022
@ZhilkinSerg ZhilkinSerg merged commit 9da10a0 into CleverRaven:master Mar 20, 2022
@dseguin dseguin deleted the fix_app_remove_prompt branch March 20, 2022 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Appliance/Power Grid Anything to do with appliances and power grid astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants