diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt index 4ea3e78987b1018a157fbe291a0e148f4a5b454c..f5227f5593c6e1a71547bdc63c4c1c3b0cad8f9f 100644 --- a/devNotes/twine JS.txt +++ b/devNotes/twine JS.txt @@ -29079,7 +29079,7 @@ window.disabilityRoll = function disabilityRoll(slave) { disList.push("seeNot"); disList.push("speakNot"); let disableCount = 0; - if (V.oneTimeDisableDisability === 0) { + if (V.oneTimeDisableDisability === 1) { while (disList.length > 0) { let rolled = jsEither(disList); switch (rolled) { diff --git a/src/js/slaveGenerationJS.tw b/src/js/slaveGenerationJS.tw index 7e2ecd8a62d2a693102615a7b032a6effea02957..0b1b39555af832ffb55c6ab76a8144c07f92df78 100644 --- a/src/js/slaveGenerationJS.tw +++ b/src/js/slaveGenerationJS.tw @@ -1270,7 +1270,7 @@ window.disabilityRoll = function disabilityRoll(slave) { disList.push("seeNot"); disList.push("speakNot"); let disableCount = 0; - if (V.oneTimeDisableDisability === 0) { + if (V.oneTimeDisableDisability === 1) { while (disList.length > 0) { let rolled = jsEither(disList); switch (rolled) { diff --git a/src/uncategorized/BackwardsCompatibility.tw b/src/uncategorized/BackwardsCompatibility.tw index cf0c30007451fb08b2630e39a1b43cabc3129adc..9279e98ea8a190fd26d6d2f88d96924790c55dab 100644 --- a/src/uncategorized/BackwardsCompatibility.tw +++ b/src/uncategorized/BackwardsCompatibility.tw @@ -3130,6 +3130,7 @@ Setting missing slave variables: <<for _bci = 0; _bci < $genePool.length; _bci++>> <<set _Slave = $genePool[_bci]>> <<if ndef _Slave.origSkin>><<set _Slave.origSkin = _Slave.skin>><</if>> + <<if ndef _Slave.origRace>><<set _Slave.origRace = _Slave.race>><</if>> <<if $genePool.map(function(s) { return s.ID; }).count(_Slave.ID) > 1>> /* first check for duplicate IDs, keep the first entry and delete the others */ <<for _bci2 = _bci + 1; _bci2 < $genePool.length; _bci2++>>