mirror of
https://github.com/Max-Stevenson/jurassic-park-interface.git
synced 2024-10-16 20:24:15 +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) {
|
||||
chargeStatus.innerHTML = "Charged";
|
||||
chargeStatus.style.backgroundColor = "#f6e100";
|
||||
instructionStep++;
|
||||
showNextStep(powerInstructionsArr, instructionStep)
|
||||
} else {
|
||||
chargeStatus.innerHTML = "Discharged";
|
||||
}
|
||||
@ -114,6 +116,8 @@ const enablePower = () => {
|
||||
breakerStatus.style.backgroundColor = "red";
|
||||
chargeStatus.innerHTML = "Discharged";
|
||||
chargeStatus.style.backgroundColor = "white";
|
||||
instructionStep++;
|
||||
showNextStep(powerInstructionsArr, instructionStep);
|
||||
initCircuitBreakers();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user