diff --git a/Input.js b/Input.js index f76f762..4ba498f 100644 --- a/Input.js +++ b/Input.js @@ -708,10 +708,8 @@ function doSetDefaultDifficulty(command) { const difficultyPatternNames = [...new Set(difficultyNames)] difficultyPatternNames.push("\\d+") var difficulty = getArgument(command, 0) - if (difficulty == null) { - state.show = "none" - return "\n[Error: Not enough parameters. See #help]\n" - } + if (difficulty == null) difficulty = "easy" + var difficultyIndex = difficultyNames.indexOf(difficulty) if (difficultyIndex >= 0 && difficultyIndex < difficultyNames.length) { difficulty = difficultyScores[difficultyIndex] diff --git a/Output.js b/Output.js index 52bb634..8f073cd 100644 --- a/Output.js +++ b/Output.js @@ -232,9 +232,9 @@ const modifier = (text) => { text += "\n#levelup" text += "\n Increases the character's experience by the exact amount needed to reach the next level." text += "\n#setdefaultdifficulty (difficulty_class or effortless|easy|medium|hard|impossible)" - text += "\n Sets the default difficulty for #check, #try, #attack, and #cast when a difficulty is not specified. The normal default is 10 (easy)" + text += "\n Sets the default difficulty for #check, #try, #attack, and #cast when a difficulty is not specified. The normal default is 10 (easy). If you do not pass any parameters, the default will be set to 10 (easy)." text += "\n#showdefaultdifficulty" - text += "\n Shows the default difficulty for #check, #try, #attack, and #cast when a difficulty is not specified. The normal default is 10 (easy)" + text += "\n Shows the default difficulty for #check, #try, #attack, and #cast when a difficulty is not specified. The normal default is 10 (easy)." text += "\n#showcharacters" text += "\n Lists all current characters and their classes/summaries." text += "\n#removecharacter name"