added semimak challenge

This commit is contained in:
Jack 2021-06-29 19:13:32 +01:00
parent b4f8c58d0e
commit 256ff870e8
2 changed files with 17 additions and 2 deletions

View file

@ -30,8 +30,7 @@ export async function setup(challengeName) {
UpdateConfig.setNumbers(true, true);
UpdateConfig.setPunctuation(true, true);
}
}
if (challenge.type === "customWords") {
} else if (challenge.type === "customWords") {
UpdateConfig.setWordCount(challenge.parameters[0], true);
UpdateConfig.setMode("words", true);
UpdateConfig.setDifficulty("normal", true);
@ -73,6 +72,18 @@ export async function setup(challengeName) {
if (challenge.parameters[3] !== undefined) {
UpdateConfig.setDifficulty(challenge.parameters[3], true);
}
} else if (challenge.type === "special") {
if (challenge.name === "semimak") {
// so can you make a link that sets up 120s, 10k, punct, stop on word, and semimak as the layout?
UpdateConfig.setMode("time", true);
UpdateConfig.setTimeConfig(120, true);
UpdateConfig.setLanguage("english_10k", true);
UpdateConfig.setPunctuation(true, true);
UpdateConfig.setStopOnError("word", true);
UpdateConfig.setLayout("semimak", true);
UpdateConfig.setKeymapLayout("overrideSync", true);
UpdateConfig.setKeymapMode("static", true);
}
}
ManualRestart.set();
TestLogic.restart(false, true);

View file

@ -260,4 +260,8 @@
"type": "customTime",
"parameters": [3600]
}
,{
"name": "semimak",
"type": "special"
}
]