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

Print message for failed prying attempt regardless of whether terrain/furniture has breakable defined #77251

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Night-Pryanik
Copy link
Contributor

Summary

None

Purpose of change

Describe the solution

Do not exit early from handle_failure function if breakable field is not defined for furniture/terrain. Instead, make all calculations for bashing furniture/terrain on failure conduct only if breakable field is defined, and print failure message regardless of that check.

Describe alternatives you've considered

None.

Testing

Made my character 1 strength. Got a crowbar. Spawned closed coffin. Tried to pry it. Got a You pry, but the coffin remains closed. message on failure.

Additional context

None.

…e` field isn't defined for furniture/terrain

Instead, make all calculations for bashing furniture/terrain on failure only if `breakable` field is defined, and print failure message regardless of that check.
@Night-Pryanik Night-Pryanik added [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) Fields / Furniture / Terrain / Traps Objects that are part of the map or its features. labels Oct 22, 2024
@github-actions github-actions bot added 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 Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Fields / Furniture / Terrain / Traps Objects that are part of the map or its features. json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prying furniture / terrain doesn't show "failure": message
1 participant