Skip to content

Add new randomization options#783

Merged
MattEqualsCoder merged 3 commits into
mainfrom
additional-randomization-options
Apr 26, 2026
Merged

Add new randomization options#783
MattEqualsCoder merged 3 commits into
mainfrom
additional-randomization-options

Conversation

@MattEqualsCoder
Copy link
Copy Markdown
Collaborator

Fixes #772

{
if (Config.GameModeOptions.KeysanityMode == KeysanityMode.Random)
{
Config.GameModeOptions.KeysanityMode = (KeysanityMode)rnd.Next(0, 4);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have a way in C# to get the count of enum values? I'm worried we'll forget to increment these, if we add more values later.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be able to do Enum.GetValues, cast it to the underlying type (int) and then just use .Max.

Comment thread src/TrackerCouncil.Smz3.Shared/EnumUtils.cs Outdated
@MattEqualsCoder MattEqualsCoder merged commit c49181f into main Apr 26, 2026
4 checks passed
@MattEqualsCoder MattEqualsCoder deleted the additional-randomization-options branch April 26, 2026 22:12
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.

Add More Randomization Options

3 participants