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

Mood System Bug Fixes & Slight Refactor #4

Merged

Conversation

angelofallars
Copy link

Description

Fixes a bug surrounding the neutral threshold (50) being added twice in SetMood, resulting in 100 mood for everyone.

Fixes the NetMoodComponent field CurrentMoodLevel not being synced properly with MoodComponent.

This also refactors MoodSystem to centralize mood calculations to RefreshMood and SetMood.

For consistency reasons and due to the above refactor, death is now a moodlet that gets added upon death, and removed upon revival. Only RefreshMood should ever get to call SetMood.

I have more ideas on refactoring MoodSystem in separate PRs.

This PR is for this PR: Simple-Station#620

Fixes a bug surrounding the neutral threshold (50) being
added twice in `SetMood`, resulting in 100 mood for
everyone.

Fixes the `NetMoodComponent` field `CurrentMoodLevel` not being
synced properly with `MoodComponent`.

This also refactors `MoodSystem` to centralize mood calculations
to `RefreshMood` and `SetMood`.

For consistency reasons, death is now a moodlet that gets
added upon death, and removed upon revival. Only `RefreshMood`
should ever get to call `SetMood`.

I have more ideas on refactoring `MoodSystem` in separate PRs.
@VMSolidus VMSolidus merged commit 086ba65 into VMSolidus:Port-Morale-System Aug 10, 2024
6 of 7 checks passed
VMSolidus pushed a commit that referenced this pull request Oct 14, 2024
Fix MouseRotator on rotated grids (#29663)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants