Skip to content

Commit

Permalink
Add warnings for text related settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Nifyr committed Oct 19, 2024
1 parent afb99ce commit ec579d0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ALittleSecretIngredient/Randomizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ static internal bool SettingsWarningCheck(RandomizerSettings settings, Func<stri
"To ensure the protagonist receives the correct animations, you must select the *visible option*."))
return false;

// Text shuffle is a bad idea
if (settings.Message.ShuffleMessages)
if (!continuePrompt("You have enabled *text shuffling*. " +
"This will render all UI and menus *unintelligible*, making navigation *significantly* more difficult. " +
"Such a feature is not recommended if you wish to play the game in a traditional manner."))
return false;

// Janky options warnings
if (settings.AssetTable.ModelSwap.GetArg<bool>(0) || settings.AssetTable.ModelSwap.GetArg<bool>(2)
|| settings.AssetTable.ModelSwap.GetArg<bool>(3))
Expand Down Expand Up @@ -105,6 +112,14 @@ static internal bool SettingsWarningCheck(RandomizerSettings settings, Func<stri
"This will render most enemies *unarmed*. Such a situation is... less than ideal."))
return false;

// Only english text is edited warning
if (settings.AssetTable.ModelSwap.GetArg<bool>(0) || settings.AssetTable.ModelSwap.GetArg<bool>(2)
|| settings.AssetTable.ModelSwap.GetArg<bool>(3) || settings.Message.ShuffleMessages)
if (!continuePrompt("Settings such as *model swaps* or *text shuffling* will modify text files. " +
"However, only English text data is currently supported. " +
"Any changes made will only be visible if the game is played in English."))
return false;

return true;
}

Expand Down

0 comments on commit ec579d0

Please sign in to comment.