mirror of
https://github.com/Max-Stevenson/jurassic-park-interface.git
synced 2024-09-29 10:54:29 +00:00
More progress on power instructions.
This commit is contained in:
parent
c9d8e317f8
commit
b3f7d25489
@ -99,6 +99,8 @@ const enablePower = () => {
|
|||||||
if (currentVoltage === targetVoltage) {
|
if (currentVoltage === targetVoltage) {
|
||||||
chargeStatus.innerHTML = "Charged";
|
chargeStatus.innerHTML = "Charged";
|
||||||
chargeStatus.style.backgroundColor = "#f6e100";
|
chargeStatus.style.backgroundColor = "#f6e100";
|
||||||
|
instructionStep++;
|
||||||
|
showNextStep(powerInstructionsArr, instructionStep)
|
||||||
} else {
|
} else {
|
||||||
chargeStatus.innerHTML = "Discharged";
|
chargeStatus.innerHTML = "Discharged";
|
||||||
}
|
}
|
||||||
@ -114,6 +116,8 @@ const enablePower = () => {
|
|||||||
breakerStatus.style.backgroundColor = "red";
|
breakerStatus.style.backgroundColor = "red";
|
||||||
chargeStatus.innerHTML = "Discharged";
|
chargeStatus.innerHTML = "Discharged";
|
||||||
chargeStatus.style.backgroundColor = "white";
|
chargeStatus.style.backgroundColor = "white";
|
||||||
|
instructionStep++;
|
||||||
|
showNextStep(powerInstructionsArr, instructionStep);
|
||||||
initCircuitBreakers();
|
initCircuitBreakers();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user