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

Allow debug menu to set the HP of custom bodyparts #71123

Merged
merged 3 commits into from
Jan 21, 2024

Conversation

Venera3
Copy link
Member

@Venera3 Venera3 commented Jan 20, 2024

Summary

None

Purpose of change

The debug menu used hardcoded bodypart ids. Those are bad and not limby.

Describe the solution

Added support to custom bodyparts.

Describe alternatives you've considered

Learn to code smarter.

Testing

Before the change a debug tail did not show up in the debug menu. After the change it did, setting all HP set all bodypart HPs to the desired amount, selective HP adjustment worked as well.

Additional context

Part of #70703

@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions labels Jan 20, 2024
@Venera3 Venera3 mentioned this pull request Jan 20, 2024
45 tasks
@github-actions github-actions bot added the astyled astyled PR, label is assigned by github actions label Jan 20, 2024
@Venera3 Venera3 added Code: Debug Debugging and troubleshooting the game, also includes the debug menu Limbs Limbs, mutable limbs, and code related to them. labels Jan 20, 2024
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Jan 20, 2024
@Maleclypse Maleclypse merged commit 43f25ec into CleverRaven:master Jan 21, 2024
26 checks passed
@Maleclypse
Copy link
Member

I probably should have squashed those commits together but I couldn't pass up on the two winners at the end.

@Venera3 Venera3 deleted the limb_debug_hp branch January 21, 2024 11:17
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` Code: Debug Debugging and troubleshooting the game, also includes the debug menu json-styled JSON lint passed, label assigned by github actions Limbs Limbs, mutable limbs, and code related to them.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants