From eeca43d9491cf58be3d4fb8aea600f8a407bf19c Mon Sep 17 00:00:00 2001
From: klorpa <30924131+klorpa@users.noreply.github.com>
Date: Wed, 22 Aug 2018 16:17:06 -0500
Subject: [PATCH] Fixing

---
 devNotes/twine JS.txt                       | 2 +-
 src/js/slaveGenerationJS.tw                 | 2 +-
 src/uncategorized/BackwardsCompatibility.tw | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt
index 4ea3e78987b..f5227f5593c 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 7e2ecd8a62d..0b1b39555af 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 cf0c3000745..9279e98ea8a 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++>>
-- 
GitLab