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

Add no damage message for ranged weakpoint hits #65183

Merged

Conversation

Zephanos
Copy link
Contributor

@Zephanos Zephanos commented Apr 19, 2023

Summary

Interface "Adds a message that details no damage hits against weakpoints with ranged weapons."

Purpose of change

To provide additional context for players when a shot fails to do damage to a monster especially when using low-powered weapons/rounds(eg. slings or .22) or when hitting strongpoints.

Describe the solution

Expanded the no damage line to check if a weakpoint is being hit and if so to display the appropriate message.

Describe alternatives you've considered

I had some trouble with phrasing to make it work with how weakpoints are named. I think what I got works but I'm down to change it if better or more desirable phrasing is conceived.

Testing

Spawned in a variety of armored monsters then shot them with .22 at various skill levels then checked the log to make sure the messages displayed. Had several monsters and npcs shoot other armored monsters (mostly the Titan Stag Beetle) as well. Also shot some unarmored monsters to make sure I didn't break anything.

Additional context

the shot

@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions labels Apr 19, 2023
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Apr 19, 2023
@DSeyka
Copy link
Contributor

DSeyka commented Apr 20, 2023

There's a double "the" in the example screenshot.

@Zephanos
Copy link
Contributor Author

There's a double "the" in the example screenshot.

Whoops thanks for catching that

@bombasticSlacks bombasticSlacks merged commit 6673ae5 into CleverRaven:master Apr 21, 2023
@Zephanos Zephanos deleted the no_dmg_weakspot_display_ranged branch April 25, 2023 03:12
katemonster33 pushed a commit to katemonster33/Cataclysm-DDA that referenced this pull request May 17, 2023
* Update creature.cpp

* Update creature.cpp

* Update src/creature.cpp

Co-authored-by: Alexey <[email protected]>

* Update creature.cpp

---------

Co-authored-by: Alexey <[email protected]>
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 [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants