New Trait: Hay Fever - #266
Open
battlecruiser12 wants to merge 4 commits into
Open
Conversation
Author
|
Turns out Rider adding the files to git as I make them doesn't actually include the code itself in the commit. I will fix this. |
pirakaplant
requested changes
Aug 4, 2026
pirakaplant
left a comment
Contributor
There was a problem hiding this comment.
As the maintainer responsible for traits, I like this one. It's simple but flavourful. I tested this and it works.
However, I do have a few critiques concerning the code. It all works, but there's room for improvement that I noticed.
… comments for clarity.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
About the PR
Adds a new trait called "Hay Fever", which causes the player to periodically have allergic reactions. The possible allergic reactions are itchy nose, itchy eyes, sneeze, and sneeze attack. Itchy nose and itchy eyes are purely popup-based, while sneeze and sneeze attack also causes the character to sneeze.
The code is heavily based on the Smoker trait from Funky, the PR for which is under the MIT license: funky-station/funky-station#3046
Why / Balance
Much like the smoker trait which the code is heavily based on, hay fever adds a new option for adding flavor to your character. While hay fever does not directly affect gameplay, it can lead to some funny moments, such as:
Technical details
Adds the HayFeverComponent.cs and its system, HayFeverSystem.cs. At a configurable interval, the system rolls a random number to determine if an allergic reaction will happen, and if one happens, which one.
Test plan
Media
The video was recorded with the ReactionInterval significantly reduced.
hayfever.mp4
Requirements
License
MIT
Breaking changes
Changelog
🆑 battlecruiser12