Added synonyms for difficulty names.

This commit is contained in:
raeleus 2024-10-26 23:02:50 -07:00
parent ade4357de0
commit ce2eaa5932

View file

@ -1311,8 +1311,8 @@ function doShowAutoXp(command) {
}
function doSetDefaultDifficulty(command) {
const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless", "automatic"]
const difficultyScores = [30, 25, 20, 15, 10, 5, 0]
const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless", "veryeasy", "very easy", "automatic", "auto"]
const difficultyScores = [30, 25, 20, 15, 10, 5, 5, 5, 0, 0]
const difficultyPatternNames = [...new Set(difficultyNames)]
difficultyPatternNames.push("\\d+")
@ -1710,8 +1710,8 @@ function doFlipCommandAbility(command) {
function doCheck(command) {
const advantageNames = ["normal", "advantage", "disadvantage"]
const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless", "automatic"]
const difficultyScores = [30, 25, 20, 15, 10, 5, 0]
const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless", "veryeasy", "very easy", "automatic", "auto"]
const difficultyScores = [30, 25, 20, 15, 10, 5, 5, 5, 0, 0]
var character = getCharacter()
var arg0 = null
@ -1771,8 +1771,8 @@ function doTry(command) {
}
const advantageNames = ["normal", "advantage", "disadvantage"]
const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless", "automatic"]
const difficultyScores = [30, 25, 20, 15, 10, 5, 0]
const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless", "veryeasy", "very easy", "automatic", "auto"]
const difficultyScores = [30, 25, 20, 15, 10, 5, 5, 5, 0, 0]
var character = getCharacter()
var textIndex = 3
var failword = character.name == "You" ? "fail" : "fails"
@ -1846,8 +1846,8 @@ function doTry(command) {
function doAttack(command) {
const advantageNames = ["normal", "advantage", "disadvantage"]
const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless", "automatic"]
const difficultyScores = [30, 25, 20, 15, 10, 5, 0]
const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless", "veryeasy", "very easy", "automatic", "auto"]
const difficultyScores = [30, 25, 20, 15, 10, 5, 5, 5, 0, 0]
var character = getCharacter()
var textIndex = 3
var missWord = character.name == "You" ? "miss" : "misses"
@ -2494,8 +2494,8 @@ function doFlee(command) {
var difficulty = getArgument(command, 0)
if (difficulty != null) {
const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless", "automatic"]
const difficultyScores = [30, 25, 20, 15, 10, 5, 0]
const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless", "veryeasy", "very easy", "automatic", "auto"]
const difficultyScores = [30, 25, 20, 15, 10, 5, 5, 5, 0, 0]
const difficultyPatternNames = [...new Set(difficultyNames)]
difficultyPatternNames.push("\\d+")
@ -3056,8 +3056,8 @@ function doRemoveSkill(command) {
function doCastSpell(command) {
const advantageNames = ["normal", "advantage", "disadvantage"]
const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless", "automatic"]
const difficultyScores = [30, 25, 20, 15, 10, 5, 0]
const difficultyNames = ["impossible", "extreme", "hard", "medium", "easy", "effortless", "veryeasy", "very easy", "automatic", "auto"]
const difficultyScores = [30, 25, 20, 15, 10, 5, 5, 5, 0, 0]
var character = getCharacter()
const dontWord = character.name == "You" ? "don't" : "doesn't"
const tryWord = character.name == "You" ? "try" : "tries"