fixed textbox disapearing in interogation + npc not going neutral after question
This commit is contained in:
parent
fa554ef6e8
commit
71c54cdfa9
@ -206,7 +206,7 @@ async function askQuestion(buildAnswer) {
|
|||||||
document.querySelector(".suspect_answer").textContent = buildAnswer(
|
document.querySelector(".suspect_answer").textContent = buildAnswer(
|
||||||
getNpcLocationAndPartner(currentNpc));
|
getNpcLocationAndPartner(currentNpc));
|
||||||
|
|
||||||
showFirstClassElement("question_answer");
|
showFirstClassElement("suspect_answer");
|
||||||
|
|
||||||
document.getElementById("currentNpcPicure").src = NPC_REACTION_PATH + currentNpc;
|
document.getElementById("currentNpcPicure").src = NPC_REACTION_PATH + currentNpc;
|
||||||
|
|
||||||
@ -214,8 +214,8 @@ async function askQuestion(buildAnswer) {
|
|||||||
// Sleep for 4 sec
|
// Sleep for 4 sec
|
||||||
await new Promise(r => setTimeout(r, 4000));
|
await new Promise(r => setTimeout(r, 4000));
|
||||||
|
|
||||||
document.getElementById("currentNpcPicure").src = NPC_REACTION_PATH + currentNpc;
|
document.getElementById("currentNpcPicure").src = NPC_IMAGE_PATH + currentNpc;
|
||||||
hideFirstClassElement("question_answer");
|
hideFirstClassElement("suspect_answer");
|
||||||
|
|
||||||
document.querySelector(".suspect_answer").textContent = "";
|
document.querySelector(".suspect_answer").textContent = "";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user