mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-19 15:51:58 +00:00
cat
This commit is contained in:
1 parent
85937eb0dd
commit
e685137e47
2 files changed
+7
-2
No files matched your search
@@ -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", [
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user