diff options
author | Brian Cully <bjc@kublai.com> | 2021-02-19 21:40:24 -0500 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2021-02-19 21:40:24 -0500 |
commit | 1f59514d74ade81df77005542da2a00377d48b69 (patch) | |
tree | abcdc279b4c2f28c75ebef6c7e2b815034be6d61 /rules.mjs | |
parent | 07692a0787b9b25163f393336798875e3bce1727 (diff) | |
download | molsim2-1f59514d74ade81df77005542da2a00377d48b69.tar.gz molsim2-1f59514d74ade81df77005542da2a00377d48b69.zip |
Finally get nucleotide selector working without hacks
At least, I think without hacks. I don’t know what I’m doing.
Diffstat (limited to 'rules.mjs')
-rw-r--r-- | rules.mjs | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -376,11 +376,11 @@ class Rules { // TODO: debugging if (false) { this._debugStartAtRollForMutation() - } else if (false) { - this._debugStartAtPerformMutation(3) + } else if (true) { + this._debugStartAtPerformMutation(9) } else if (false) { this._debugStartAtSelectAminoAcid() - } else if (true) { + } else if (false) { this._debugStartAtSelectLethality() } else if (false) { this._debugStartWithError() @@ -418,8 +418,8 @@ class Rules { }) this.currentState = new PerformMutation(this) - this.die.value = 15 - const nucleotide = this.currentGenome.nucleotides[15] + this.die.value = 18 + const nucleotide = this.currentGenome.nucleotides[this.die.value-1] this.currentGenome.selectedNucleotide = nucleotide } |