Update flipflop.js
This commit is contained in:
parent
6f592dc3ef
commit
024ababf3c
|
|
@ -22,13 +22,13 @@ elements.flipflop = {
|
||||||
Output.charge = 0
|
Output.charge = 0
|
||||||
if (pixel.powerstate == "true" && Input.charge > 0.2 && pixel.cooldown < 1) {
|
if (pixel.powerstate == "true" && Input.charge > 0.2 && pixel.cooldown < 1) {
|
||||||
Input.charge = 0
|
Input.charge = 0
|
||||||
pixel.cooldown = 3
|
pixel.cooldown = 7
|
||||||
pixel.powerstate = "false"
|
pixel.powerstate = "false"
|
||||||
pixel.color = "#CF300D"
|
pixel.color = "#CF300D"
|
||||||
Output.charge = 0
|
Output.charge = 0
|
||||||
} else if (pixel.powerstate == "false" && Input.charge > 0.2 && pixel.cooldown < 1) {
|
} else if (pixel.powerstate == "false" && Input.charge > 0.2 && pixel.cooldown < 1) {
|
||||||
Input.chare = 0
|
Input.chare = 0
|
||||||
pixel.cooldown = 3
|
pixel.cooldown = 7
|
||||||
pixel.powerstate = "true"
|
pixel.powerstate = "true"
|
||||||
pixel.color = "#94CF0D"
|
pixel.color = "#94CF0D"
|
||||||
Output.charge = 5
|
Output.charge = 5
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue