fixed funbox challenges not loading correctly

This commit is contained in:
Jack 2021-09-02 20:47:18 +01:00
parent 9be96bd163
commit fc995e0baa
2 changed files with 3 additions and 3 deletions

View file

@ -186,7 +186,7 @@ export async function setup(challengeName) {
UpdateConfig.setMode("time", true);
UpdateConfig.setDifficulty("master", true);
} else if (challenge.type === "funbox") {
Funbox.activate(challenge.parameters[0]);
UpdateConfig.setFunbox(challenge.parameters[0], true);
UpdateConfig.setDifficulty("normal", true);
if (challenge.parameters[1] === "words") {
UpdateConfig.setWordCount(challenge.parameters[2], true);

View file

@ -536,7 +536,7 @@
"display": "I kInDa LiKe HoW iNeFfIcIeNt QwErTy Is",
"autoRole": true,
"type": "funbox",
"parameters": ["randomcase","time",3600],
"parameters": ["rAnDoMcAsE","time",3600],
"requirements" : {
"wpm": {
"min": 100
@ -544,7 +544,7 @@
"time": {
"min": 60
},
"funbox": "randomcase"
"funbox": "rAnDoMcAsE"
}
}
,{