summaryrefslogtreecommitdiffstats
path: root/rules.mjs
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2021-02-19 21:40:24 -0500
committerBrian Cully <bjc@kublai.com>2021-02-19 21:40:24 -0500
commit1f59514d74ade81df77005542da2a00377d48b69 (patch)
treeabcdc279b4c2f28c75ebef6c7e2b815034be6d61 /rules.mjs
parent07692a0787b9b25163f393336798875e3bce1727 (diff)
downloadmolsim2-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.mjs10
1 files changed, 5 insertions, 5 deletions
diff --git a/rules.mjs b/rules.mjs
index 9f6fb7d..f36a956 100644
--- a/rules.mjs
+++ b/rules.mjs
@@ -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
}