diff --git a/Input.js b/Input.js index 7ae2e9c..3fc4881 100644 --- a/Input.js +++ b/Input.js @@ -743,8 +743,8 @@ function doShowAutoXp(command) { } function doSetDefaultDifficulty(command) { - const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless"] - const difficultyScores = [30, 25, 20, 15, 10, 5] + const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless", "automatic"] + const difficultyScores = [30, 25, 20, 15, 10, 5, 0] const difficultyPatternNames = [...new Set(difficultyNames)] difficultyPatternNames.push("\\d+") @@ -983,8 +983,8 @@ function doFlipCommandAbility(command) { function doCheck(command) { const advantageNames = ["normal", "advantage", "disadvantage"] - const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless"] - const difficultyScores = [30, 25, 20, 15, 10, 5] + const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless", "automatic"] + const difficultyScores = [30, 25, 20, 15, 10, 5, 0] var character = getCharacter() var arg0 = null @@ -1039,8 +1039,8 @@ function doCheck(command) { function doTry(command) { const advantageNames = ["normal", "advantage", "disadvantage"] - const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless"] - const difficultyScores = [30, 25, 20, 15, 10, 5] + const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless", "automatic"] + const difficultyScores = [30, 25, 20, 15, 10, 5, 0] var character = getCharacter() var textIndex = 3 var failword = character.name == "You" ? "fail" : "fails" @@ -1114,8 +1114,8 @@ function doTry(command) { function doAttack(command) { const advantageNames = ["normal", "advantage", "disadvantage"] - const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless"] - const difficultyScores = [30, 25, 20, 15, 10, 5] + const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless", "automatic"] + const difficultyScores = [30, 25, 20, 15, 10, 5, 0] var character = getCharacter() var textIndex = 3 var missWord = character.name == "You" ? "miss" : "misses" @@ -1931,8 +1931,8 @@ function doRemoveSkill(command) { function doCastSpell(command) { const advantageNames = ["normal", "advantage", "disadvantage"] - const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless"] - const difficultyScores = [30, 25, 20, 15, 10, 5] + const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless", "automatic"] + const difficultyScores = [30, 25, 20, 15, 10, 5, 0] var character = getCharacter() const dontWord = character.name == "You" ? "don't" : "doesn't" const tryWord = character.name == "You" ? "try" : "tries" diff --git a/Output.js b/Output.js index 145ce71..2d97548 100644 --- a/Output.js +++ b/Output.js @@ -270,7 +270,7 @@ const modifier = (text) => { text += "\n Shows the value of the auto xp." 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#setdefaultdifficulty (difficulty_class or automatic|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). 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)." @@ -280,9 +280,9 @@ const modifier = (text) => { text += "\n Removes the character that has the indicated name." text += "\n\n--Character Checks--" - text += "\n#check (ability|skill) (advantage|disadvantage) (difficulty_class or effortless|easy|medium|hard|impossible)" + text += "\n#check (ability|skill) (advantage|disadvantage) (difficulty_class or automatic|effortless|easy|medium|hard|impossible)" text += "\n Rolls a d20 and compares the result (modified by the character's ability/skill) to the specified difficulty. The parameters can be listed in any order." - text += "\n#try (ability|skill) (advantage|disadvantage) (difficulty_class or effortless|easy|medium|hard|impossible) task" + text += "\n#try (ability|skill) (advantage|disadvantage) (difficulty_class or automatic|effortless|easy|medium|hard|impossible) task" text += "\n Attempts to do the task based on the character's ability/skill against the specified difficulty. Quotes are not necessary." text += "\n#attack (ranged) (advantage|disadvantage) (ac or effortless|easy|medium|hard|impossible) target" text += "\n Attacks the specified target with a melee (the default) or ranged attack. The roll is compared against the specified AC which will determine if the attack succeeds or misses. The parameters can be listed in any order, except the target must be listed last. Quotes are not necessary." diff --git a/README.md b/README.md index d70182e..14fbbbb 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ v. 0.2.0 * You may add flavor text to any hashtag by typing text after a line break after the hashtag (shift + enter on desktop). Thanks Xiron! * You may use commas in coordinates now * The scenario keeps track of how many days have passed since the adventure has started. See `#rest`, `#showday`, `#setday`. +* Added automatic difficulty which is DC 0 * Minor bug fixes and improvements v. 0.1.0