Skip to content

added helper methods to get and directly set trauma - #15

Open
piedoom wants to merge 2 commits into
johanhelsing:mainfrom
piedoom:main
Open

added helper methods to get and directly set trauma#15
piedoom wants to merge 2 commits into
johanhelsing:mainfrom
piedoom:main

Conversation

@piedoom

@piedoom piedoom commented Jul 1, 2025

Copy link
Copy Markdown

In many cases, additive trauma is not desirable. This adds two methods to Shake that allow for user-defined control:

  • set_trauma: directly sets the trauma value
  • trauma: gets the current trauma value

This also adds the set_trauma to the Shakes convenience params.

This solves #8 as well

@johanhelsing

Copy link
Copy Markdown
Owner

Sorry, I forgot to check PRs before releasing. I guess your use-case probably makes sense, but I wonder if it's simpler to just make the field public. I think that's the common pattern in most bevy crates to keep it simple stupid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants