This commit is contained in:
Gurge44 committed 2026-05-23 13:32:44 +02:00
1 parent 85937eb0dd
commit e685137e47
2 files changed
+7 -2

No files matched your search

+5 -1
View File
@@ -3013,7 +3013,11 @@ public static class Options
], 0, TabGroup.GameSettings)
.SetColor(new Color32(100, 220, 255, byte.MaxValue));
AnagramWordLength = new IntegerOptionItem(23822, "AnagramWordLength", new(2, 15, 1), 5, TabGroup.GameSettings)
AnagramWordLength = new StringOptionItem(23822, "AnagramWordLength", [
"?",
"2", "3", "4", "5", "6", "7", "8", "9", "10",
"11", "12", "13", "14", "15"
], 0, TabGroup.GameSettings, noTranslation: true)
.SetColor(new Color32(100, 220, 255, byte.MaxValue));
AnagramDifficulty = new StringOptionItem(23823, "AnagramDifficulty", [
+2 -1
View File
@@ -1174,7 +1174,8 @@ internal static class ChatCommands
private static void AnagramCommand(PlayerControl player, string text, string[] args)
{
string langParam = GetLangParam();
int wordLength = Options.AnagramWordLength.GetInt();
int lengthIndex = Options.AnagramWordLength.GetValue();
int wordLength = lengthIndex == 0 ? 0 : lengthIndex + 1;
int difficulty = Options.AnagramDifficulty.GetValue() + 1;
Main.Instance.StartCoroutine(Main.GetRandomWord(CreateAnagram, langParam, wordLength, difficulty));