Merge pull request #68 from ThomasRubini/question_timeout

This commit is contained in:
Thomas Rubini 2023-02-03 14:24:42 +01:00 committed by GitHub
commit 2ceddbe860
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,7 @@ async function askTypeOneQuestion() {
show("question_answer");
document.getElementById("currentNpcPicure").src = "/api/v1//getNpcReaction?npcid="+currentNpc;
// Sleep for 5 sec
await new Promise(r => setTimeout(r, 5000));
await new Promise(r => setTimeout(r, 2000));
document.getElementById("currentNpcPicure").src = "/api/v1/getNpcImage?npcid="+currentNpc;
hide("question_answer");
document.getElementsByClassName("suspect_answer")[0].textContent = "";